Bug#567019: kpartx: multipath partition devices are missing
Ferenc Wagner
wferi at niif.hu
Wed Jan 27 15:46:11 UTC 2010
Guido Günther <agx at sigxcpu.org> writes:
> Could you add a "sleep 10" at the end of the multipath local-top
> initramfs script? It's possible that lvm "grabs" the sd* devices before
> multipath had a chance to assemble the multipath maps. That would at
> least look like the above.
Sure I could, but I think I already avoided that by putting
filter = [ "a|^/dev/mapper/nfs2$|", "r/.*/" ]
in /etc/lvm/lvm.conf (and propagated that into the initramfs).
I was bitten by such things previously, it took some time to find out
what's up... Anyway, now the boot says (excluding some irrelevant
kernel messages, but none during the sleep):
libdevmapper: libdm-common.c(462): Created /dev/mapper/nfs
done.
Sleeping for #567019...done.
Volume group "nfs" not found
Skipping volume group nfs
Unable to find LVM volume nfs/root
done.
Begin: Waiting for root file system ... done.
Gave up waiting for root device. Common problems:
[...]
(initramfs) multipath -ll
nfs (360060160ec612000f6f237e09406df11) dm-0 DGC ,RAID 5
[size=5.0G][features=1 queue_if_no_path][hwhandler=1 emc]
\_ round-robin 0 [prio=2][active]
\_ 0:0:1:0 sde 8:64 [active][ready]
\_ 1:0:1:0 sdd 8:48 [active][ready]
\_ round-robin 0 [prio=0][enabled]
\_ 0:0:0:0 sdc 8:32 [active][ready]
\_ 1:0:0:0 sdb 8:16 [active][ready]
(initramfs) ls -l /dev/mapper
crw-rw---- 1 0 0 10, 58 Jan 27 15:37 control
brw-rw---- 1 0 0 254, 0 Jan 27 15:37 nfs
(initramfs) kpartx -a /dev/mapper/nfs
(initramfs) ls -l /dev/mapper
crw-rw---- 1 0 0 10, 58 Jan 27 15:37 control
brw-rw---- 1 0 0 254, 0 Jan 27 15:37 nfs
brw-rw---- 1 0 0 254, 1 Jan 27 15:39 nfs1
brw-rw---- 1 0 0 254, 2 Jan 27 15:39 nfs2
(initramfs) vgchange -ay nfs
7 logical volume(s) in volume group "nfs" now active
(initramfs) Begin: Running /scripts/local-premount ... kinit: name_to_dev_t(/dev/disk/by-uuid/aa793924-bde5-417c-8e8f-eb55bfb665e5) = dev(254,4)
kinit: trying to resume from /dev/disk/by-uuid/aa793924-bde5-417c-8e8f-eb55bfb665e5
kinit: No resume image, doing normal boot...
done.
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.86 booting
[...]
--
Thanks,
Feri.
More information about the pkg-lvm-maintainers
mailing list