linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] LILO+LVM:  Fatal: This version of LVM does not support boot LVs
@ 2002-02-15  9:20 Urs Thuermann
  2002-02-15 16:12 ` Andreas Dilger
  0 siblings, 1 reply; 2+ messages in thread
From: Urs Thuermann @ 2002-02-15  9:20 UTC (permalink / raw)
  To: linux-lvm

I installed lilo-22.2 and moved my /boot from /dev/sda1 to my root FS
which is on LVM /dev/vg0/root.  When running lilo I get the message

    Fatal: This version of LVM does not support boot LVs

I checked the source code and found in geometry.c

    #define DIFF 255
    
    	    lbmA.lv_dev = lbmB.lv_dev = device;
    	    lbmA.lv_block = 0;
    	    lbmB.lv_block = DIFF;
    
    	    lvm_bmap(&lbmA);
    	    lvm_bmap(&lbmB);
    	    if (lbmB.lv_block - lbmA.lv_block != DIFF)
    		die("This version of LVM does not support boot LVs");
    

which is from Andreas' LILO patch.  lilo checks wether the logical
blocks 0 and 255 are also 255 apart from each other on the physical
device (assuming the device is the same).

This clearly works only on non-striped and contigous LVs (which is why
it doesn't work for me since /dev/vg0/root is striped).
I suppose this is intended, but why?  Would it be so difficult to let
the lilo loader load blocks from different devices and blocks which
are not in ascending order?  The 5-byte structure describing the
blocks to load contains the device: (from lilo/README):

     sector    [1..63] plus 2 high bits of Cylinder
     cylinder  [0..1023] low eight bits in this byte
     device    [0..3] for floppies, [0x80..0x8F] for hard disks
     head      [0..254] no, the max is 254, not 255
     count     [1...] number of sectors to transfer

So, why not support booting from striped and non-contiguos LVs?


urs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-02-15 16:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-15  9:20 [linux-lvm] LILO+LVM: Fatal: This version of LVM does not support boot LVs Urs Thuermann
2002-02-15 16:12 ` Andreas Dilger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).