[Lilo-devel] problem reinstalling lilo (mdadm raid-1, not all raids metadata is 0.9 version)
Ракуленко Александр Г
Ракуленко Александр Г
Sat Jan 8 11:07:59 UTC 2011
Hello!
I'm using debian squeeze/sid with lilo and software raid-1 (mdadm).
I have two raid volumes:
Personalities : [raid1]
md124 : active (auto-read-only) raid1 sda1[0] sdb1[1]
240832 blocks [2/2] [UU]
md10 : active raid1 sda2[0] sdb2[1]
38836041 blocks super 1.2 [2/2] [UU]
unused devices: <none>
md124 is for boot and md10 is for everything else (LVM).
Here is the verbose scan:
root at lucky-star:~# mdadm --examine --scan -v
ARRAY /dev/md124 level=raid1 num-devices=2
UUID=de5fa4a6:39058a9d:fd66ca52:4451c0ef
devices=/dev/sdb1,/dev/sda1
ARRAY /dev/md/md10 level=raid1 metadata=1.2 num-devices=2
UUID=1ad20f04:ff83a95e:2970359f:7d4619f1 name=lucky-star:md10
devices=/dev/sdb2,/dev/sda2
I belive that the metadata version of my boot partition (md124) is 0.9
that is the default for mdadm in debian, and therefor LILO can use it.
In fact now LILO is working fine now.
My problem is that I forgot to put «compact» option and LILO boots
slowly. I tried to add option to lilo.conf and this is what I got:
root at lucky-star:~# lilo -t
Warning: LBA32 addressing assumed
Fatal: Inconsistent Raid version information on /dev/md10
root at lucky-star:~#
So the probably buggy moment is that LILO checks metadata version for
all raid volumes, disregarding what is said in lilo.conf:
root at lucky-star:~# grep md /etc/lilo.conf
boot=/dev/md124
image=/boot/vmlinuz-2.6.32-5-amd64
initrd=/boot/initrd.img-2.6.32-5-amd64
root at lucky-star:~#
As you can see there is nothing about /dev/md10 in LILO conf.
My LILO version is:
root at lucky-star:~# dpkg -l | grep lilo
ii lilo 1:22.8-10 LInux LOader - The Classic OS loader can load Linux
and others
which is I belive the most «fresh» in Debian.
Please tell me — is it a bug? Is there a simple workaround? As for now I
only can reinstall LILO when booting from a livecd and not assembling
the md10 array (thats bad).
P.S. I don't know how I managed to install LILO in the past.
More information about the Lilo-devel
mailing list