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

Re: LVM enabled boot disks ?

Hi Grzegorz,

On Sun, Oct 07, 2001 at 01:37:30PM +0200, Grzegorz Prokopski wrote:
> In my dreams it would be ideal if I had boot floppy that would allow
> me to install fresh Woody on ReiserFS sitting on LVM (and prefferably

I am developing a procedure for installing Debian on systems with
LVM for work and  I've just been looking into adding support for LVM
partitions to the boot floppies code.  Unfortunately, it is not really
feasible without major changes to the way block devices are handled[1].
In addition, the libraries for the LVM userland tools are huge and will
never fit on the root disk.  I can't imagine it will be done for the
Woody floppies, but hopefully it will be in the new installer for Sid.

What I do is boot from a custom rescue floppy with 2.4.10-ac11 patched
for the latest LVM.  If the root is not on LVM, mount it.  Then switch to
the alternate console, mount a floppy containing the LVM utilities and
libraries, create the logical volumes and build filesystems on them.
If the root is on an LV, mount it on /target and copy the keyboard
settings to the new root:

	mkdir /target/root
	chmod 0700 /target/root
	cp /tmp/keybd_settings /root/dbootstrap_settings

Then mount your other filesystems (below /target), creating the mount-
points as required.  If /tmp will be a mount-point, set its mode to 01777
(before mounting /target/tmp).

At this point you should be able to resume the normal install process.
Check your lilo.conf (and make sure your LILO understands LVM) before
rebooting!  Remember that root on LVM requires an initrd to run vscan
and vgchange before mounting the real root.

Good luck!


[1] The fundamental problems stem from assumptions in fdisk.c,
partition_config.c and select_not_mounted.c that all block devices
to be formatted or mounted are partitions of larger block devices,
and that only type "Linux Native" partitions can have filesystems.
The same issues apply to (un-partitioned) MD devices.

Reply to: