[linux-lvm] Migrating to an LVM system (boot/root) disk
steve.wray at the.net.nz
Sun Jun 3 10:59:35 UTC 2001
> Behalf Of Brian J. Murrell
> On Sun, Jun 03, 2001 at 05:02:41PM +1200, Steve Wray wrote:
> > 2. Having a /boot on LVM *is* possible, BUT you will need to boot
> > from floppy.
> No you don't. There are several in depth discussions in the archive
> about doing this including a posting (several times in fact) of a
> patch to Lilo to help it locate the kernel and initrd on an LVM /boot.
> Please see the archives for details.
Cool, I'll check it out!
> > 3. to get over your night horrors, make a boot disk
> disks! My initrd is 1.3MB alone!
compressed? Two disks (1 for kernel 1 for root) is not unusual.
> > that includes the LVM
> > tools. A good starting point is miniroot. I posted a URL to it on this
> > list a little while ago. I don't have it to hand but it'll be in the
> > archive!
> Yeah, I realize that making boot diskettes is what I have to do, but
> the "automated" mkbootdisk that some distros ship as well as the
> various root/boot kits out there sure are not going to inclue the LMV
> tools. Having to manually craft the pair is a pain. :-)
Given the miniroot.gz file, one uncompresses it, mounts it
mount -o loop miniroot /mnt/loop/
then simply copy the lvm tools over to /mnt/loop/sbin
You can change the init script too.
Then just unmount it and regzip it and rerun lilo.
The lvm initramdrive can be mounted in the same way.
It should give some clues.
> Perhaps just like LVM has a nice little script for creating the
> initrd, they can ship with a nice little script for creating root/boot
Yes and I hope the mkinitrd (whatever its called...) is fixed so that
it copies sed to the ramdrive...
> Of course a lot of this headache goes away if the kernel had the
> "auto-detection" code like it does for MDs.
ahhhh that would be cool!
Shoudn't be too far off?
More information about the linux-lvm