[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: installing sarge to lvm



On Sat, Jul 02, 2005 at 06:48:42PM -0400, Rick Pasotto wrote:
> On Thu, Jun 30, 2005 at 04:56:46PM -0400, Ryan Schultz wrote:
> > 
> > I can second this -- don't put / or /boot under LVM control, just /'s
> > large subdirectories, like /usr, /var, /home, etc, but not /bin,
> > /sbin, /lib, or other directories that contain important system
> > recovery tools. For example, the LVM tools are in /sbin -- if you
> > break your LVM tools or kernel LVM support somehow (I've done it),
> > with / (and thus /sbin) on an LVM partition, you'll have quite a mess
> > to deal with when you reboot.
> 
> That certainly makes sense but HOW DO I DO IT? The installer gives me no
> option either to format (select fstype) the logical volumes nor to
> specify a mount point. The installer creates the volume groups and
> logical volumes but then does nothing with them.
> 
> The installer installs *everything* into /.
> 
> Do I have to accept that then manually format the logical volumes, copy
> the /usr, /var, /home directorys, edit /etc/fstab, and then reboot?
> 

It has been a few weeks since I did an install.  IIRC, in the
partitioner screen, you will create the partition and when you press
enter on it, instead of choosing use as /boot, /usr, or whatever, choose
"use as LVM physical volume."  After that, you go back to the
partitioner and choose "configure LVM" or something like that.  You tell
it to create a volume group and it will ask you which physical volume(s)
to use.  Select the one(s) you want and create the volume group with
whatever name you like.

After that, you create and name the logical volumes.  After that, you go
back to the partitioner and then the new LVM logical volumes will appear
at the bottom of the list.  Then you select them one at a time and
assign them to the partitions/whatever you want.

In my case, I have logical volumes called var, usr, local, and opt in a
volume group called vg00.  I have / and /boot on their own real
partitions, for good measure.  In the partitioner, I had to go and
select /dev/mapper/vg00-usr and tell it I wanted ext3 and to mount it as
/usr.  Once I figured out the correct sequence it was not too difficult.
Unfortunately that part of the install process seems a little too
unintuitive.

-Roberto
-- 
Roberto C. Sanchez
http://familiasanchez.net/~sanchezr

Attachment: pgpRUgHMa9FFp.pgp
Description: PGP signature


Reply to: