Linux mdraid device names not kept after reboot

We all know that to have the array device names persist you have to do:

 mdadm --detail --scan >>/etc/mdadm/mdadm.conf

However this is not enough, this has to be also updated in initram, so the easiest way to do it, is by running:

dpkg-reconfigure mdadm

This will automatically update the initram.

(I do not mention here, that after piping the array list to /etc/mdadm/mdadm.conf, it is very practical to manually check if everything is correct, to avoid duplicate arrays or old not-any-more existing arrays.)

Comments

Popular posts from this blog

Setting ethernet interface speed in /etc/network/interfaces