<div dir="ltr"><div><div><div><div><span style="font-family:arial,helvetica,sans-serif"><font size="2">Hi everyone,<br><br></font></span></div><span style="font-family:arial,helvetica,sans-serif"><font size="2">I had quite some trouble with mdadm degrading my RAID during every reboot.<br></font></span><span style="font-family:arial,helvetica,sans-serif"><font size="2">I'm using two USB drives in a RAID 1 array.</font></span><br><span style="font-family:arial,helvetica,sans-serif"></span></div><span style="font-family:arial,helvetica,sans-serif"><font size="2"><br></font></span></div><span style="font-family:arial,helvetica,sans-serif"><font size="2">Eventually I had a look at <span style="background:transparent none repeat scroll 0% 0%">/usr/share/initramfs-tools/scripts/local-top/mdadm</span><span style="background:transparent none repeat scroll 0% 0%"> and found a "wait_for_udev 10" almost at the very end of the file.<br><br></span></font></span></div><div><span style="font-family:arial,helvetica,sans-serif"><font size="2"><span style="background:transparent none repeat scroll 0% 0%">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.<br><br></span></font></span></div><div><span style="font-family:arial,helvetica,sans-serif"><font size="2"><span style="background:transparent none repeat scroll 0% 0%">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.<br></span></font></span><span style="font-family:arial,helvetica,sans-serif"><font size="2"><span style="background:transparent none repeat scroll 0% 0%"><br>OS</span></font></span><br><span style="font-family:arial,helvetica,sans-serif"><font size="2"><span style="background:transparent none repeat scroll 0% 0%"></span></font></span><span style="font-family:arial,helvetica,sans-serif"><font size="2"><span style="background:transparent none repeat scroll 0% 0%"><span style="font-family:arial,helvetica,sans-serif"><font size="2"><span style="background:transparent none repeat scroll 0% 0%"></span></font></span></span></font></span><div><span style="font-family:arial,helvetica,sans-serif"><font size="2"><span style="background:transparent none repeat scroll 0% 0%">Raspbian GNU/Linux 8 (jessie)<br><br></span></font></span></div><span style="font-family:arial,helvetica,sans-serif"><font size="2"><span style="background:transparent none repeat scroll 0% 0%">Package info<br>Architecture: armhf<br>Version: 3.3.2-5+deb8u1</span></font></span></div><div><span style="font-family:arial,helvetica,sans-serif"><font size="2"><span style="background:transparent none repeat scroll 0% 0%"><br></span></font></span></div><div><span style="font-family:arial,helvetica,sans-serif"><font size="2"><span style="background:transparent none repeat scroll 0% 0%">Best regards,<br></span></font></span></div><div><span style="font-family:arial,helvetica,sans-serif"><font size="2"><span style="background:transparent none repeat scroll 0% 0%">Jan<br></span></font></span></div><span style="font-family:arial,helvetica,sans-serif"><font size="2"><span style="background:transparent none repeat scroll 0% 0%"></span></font></span>

</div>