Possible bug in initramfs config, mdadm not actually waiting for udev?

Jan Schawo jan.schawo at gmail.com
Sat Jul 9 20:10:38 UTC 2016


Hi everyone,

I had quite some trouble with mdadm degrading my RAID during every reboot.
I'm using two USB drives in a RAID 1 array.

Eventually I had a look at
/usr/share/initramfs-tools/scripts/local-top/mdadm and found a
"wait_for_udev 10" almost at the very end of the file.

I moved this line up a little bit so that the wait_for_udev call is done
right before calling mkdir /mnt/md and all the RAID configuration.

Now my RAID works fine, even after reboot. Which made me wonder if there is
a general problem with wait_for_udev being called at the end of the file.
To me it looks like waiting for udev happens *after* all the RAID config,
which was probably not intended.

OS
Raspbian GNU/Linux 8 (jessie)

Package info
Architecture: armhf
Version: 3.3.2-5+deb8u1

Best regards,
Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20160709/193dafeb/attachment.html>


More information about the pkg-mdadm-devel mailing list