On Fri, Aug 31, 2001 at 10:27:03AM +0400, Andrej Borsenkow wrote:
> Short introduction, please :-)
Well, you can put everything you want on an LVM LV *except* the
rootfs. I am working on fixing that currently. I have been
distracted for the last few days but should be getting back to it
today (hopefully). I am in the final stages -- adding LV detection in
MDK's initrd_helper. I have it working in the shell version of
linuxrc (usually used on non-x86 boxen).
Beware that MDK's LVM is pretty old (well as old as that which comes
with the kernel anyway :-) and there are some errors spewed at the
bootup that I think should go away with a later release. I think they
have to do with the use of devfs[d].
Anyway, the long and short of it is, to create (say) /home on an LVM
LV, you have to create a partition (at least as big as /home) and give
it "type" 8e. Once you do that you can click on the newly created
partition and the "Add to LVM" it. Give the LV a name and once you do
that, you will have a new "disk" tab. Change to that and partition it
up with /home (and whatever else you want) just as you would a
separate disk.
The abstraction for an LVM LV in the installer/diskdrake is a physical
disk -- which is correct, IMHO.
Oh, before you create any "type 8e" partitions, create your boot
filesystem, right at the beginning of the disk, as you normally would.
To say it another way DO NOT put /boot in the LVM partition. There
are some further patches to allow putting /boot in the LVM but I am
not sure I see a whole lot of point to it (a change in attitude for me
from a few months ago BTW).
Here is the layout of the disk on the machine that I am working to get
the rootfs into an LVM LV:
[root@pc root]# fdisk -lu /dev/hdg
Disk /dev/hdg: 16 heads, 63 sectors, 38792 cylinders
Units = sectors of 1 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdg1 * 63 39311 19624+ 83 Linux
/dev/hdg2 33242832 39102335 2929752 83 Linux
/dev/hdg3 39312 33242831 16601760 8e Linux LVM
Partition table entries are not in disk order
hdg1 == /boot
hdg3 == LVM partition:
/
swap
hdg2 == hd install image
Of course when I get all of my work done and install from a CD rather
than the hard disk, hdg2 will be the LVM partition and will be the
whole disk minus the /boot.
Good luck.
b.
--
Brian J. Murrell