Bug#569358: MD_MODULES in initrd empty, RAID not started

Martin Michlmayr tbm at cyrius.com
Thu Feb 11 19:05:16 UTC 2010


Package: mdadm
Version: 3.1.1-1
Severity: serious

When I use the mdadm 3.1.1-1 udeb to install root on RAID1 the machine
doesn't boot - it waits for root because RAID is never started.

I tracked this down to empty values in /conf/conf.d/md:

| MD_HOMEHOST='NAS8C4EB8'
| MD_DEVPAIRS='/dev/md/0:'
| MD_LEVELS=''
| MD_DEVS=all
| MD_MODULES=''

MD_MODULES is empty, so no modules are loaded and /proc/mdstat doesn't
exist and so the script stops.

The reason why these values are empty is that the initramfs hook looks
for levels=XXX in /etc/mdadm/mdadm.conf, but my config file doesn't
contain anything about levels.  Maybe the format has changed with
metadata=1.1?

My /etc/mdadm/mdadm.conf looks like this:

| DEVICE partitions
| HOMEHOST <system>
| ARRAY /dev/md/0 metadata=1.1 UUID=f8d6999e:0d277d4a:ed6ff136:2bd5f46a name=NAS8C4EB8:0

-- 
Martin Michlmayr
http://www.cyrius.com/





More information about the pkg-mdadm-devel mailing list