[linux-lvm] SuSE/LVM boot problem
mike at msede.com
Wed May 31 18:25:28 UTC 2000
Andi Kleen wrote:
> On Wed, May 31, 2000 at 06:13:08PM +0200, Christoph Hellwig wrote:
> > Andi Kleen schrieb:
> > > >
> > > > - lilo needs to understand about lvm and use the lvm provided ways to
> > > > get physical mappings.
> > >
> > > That's complicated. Someone did a similar hack for RAID0, but LVM is more
> > > complicated than MD RAID0. Better just supply the real block numbers to lilo
> > > and rerun it as needed (LVM could warn about it)
> > Don't use lilo, use grub. I'm trying to implement lvm support in grub. The idea
> > is that grub should read the first lvm on each pv. This first lv must be only on
> > this pv. (and have a special name, eg lv_root, so grub can find it)
> Limiting to the ``first LV'' sounds ugly. When you read the first, is it
> that hard to read the second (and allow arbitary names) ?
You need to distinguish 'bootable' LV from others. This could either
by LV name or a 'bootable' flag. However if we need a flag anyway and
could accept the restriction to have to root fs contigous on a single
and non striped we could simply save the starting block and size as
This is not that different from a partition.
For example HP-UX has a simple hack in the boot area which holds
the start and size of the /stand fs such that the boot loader
and the kernel could simply handle this as a partition equivalent
It should be possible to detect this 'bootable' flag and the
in the LVM init code without causing much kernel bloat and create the
equivalent of a partition using a fixed major/minor. vgscan could then
in user space create the device files accordingly such that the
major/minor of the LV holding the root fs is mapped accordingly.
AFAIR someone already did something similar by hacking the partition
table and creating an overlapping partition which just happened to
map to the root LV.
Michael Marxmeier Marxmeier Software AG
E-Mail: mike at msede.com Besenbruchstrasse 9
Phone : +49 202 2431440 42285 Wuppertal, Germany
Fax : +49 202 2431420 http://www.msede.com/
More information about the linux-lvm