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

Re: installing sarge to lvm

On Sat, Jul 02, 2005 at 09:29:15PM -0400, Roberto C. Sanchez wrote:
> 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.

This is what I've done.

> 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.

Nope. All I see are the four disk partitions. 

The 'Modify Logical Volumes' gives only 'Create' and 'Delete' as
options. It seems strange that the only way to see a list of logical
volumes already created is to pretend you want to delete one of them.
This shows the list to select from and shows that the file systems are
unknown and there is no mount point.

> 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.

Yes, that's pretty much what I want to do.

> 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.

Rather than simply unintuitive I think it's either non-existent or
superbly hidden.

An inconvenience is only an adventure wrongly considered; an adventure is
only an inconvenience rightly considered. -G.K. Chesterton 
    Rick Pasotto    rick@niof.net    http://www.niof.net

Reply to: