Red Hat Bugzilla – Bug 237438
dmraid fails to detect at boot
Last modified: 2013-02-28 23:05:46 EST
Description of problem:
dmraid (not root partition) is failing to detect at boot. The function
resolve_dm_name() in /etc/init.d/functions called by /etc/rc.sysinit, depends on
"dmsetup table" to return available devices but "dmsetup table" seems to only
see already active devices, thus a chicken or egg situation where no device is
returned for activation.
Version-Release number of selected component (if applicable):
Create a hardware based raid utilizing dmraid. Reboot.
Steps to Reproduce:
1.Create a raid utilizing "fakeraid" hardware.
2.Test for active raid devices, dmraid -tay
Although /etc/rc.sysinit is supposed to pass the available raid devices to
dmraid to activate via resolve_dm_name(), they fail to get recognized and the
raid device does not get created under /dev/mappper.
Ah, I figured it out and resolved my problem by updating the initrd.
I would not have thought that it would require a mkinitrd to set up to use
fakeraid drivers for a non-root partition. Technically, not a bug, although I'd
think m'be the design could be better. That is, unless I'm missing something.
Init script expect already existing dm device.
mkinitrd also prepare possible kernel modules for underlying storage drivers.
If you think that it is bug, please report/reopen bug to initscripts component.