I have seen this behaviour a number of times on Ubuntu and Debian. After you create the array you need to update mdadm.conf. However, this is not enough as you also need to update the version in initrd.img. This might happen automatically if you subsequently do some updates. I find the easiest way to force it is to call
dpkg-reconfigure mdadm -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/964052 Title: mdadm: created as /dev/md0, becomes /dev/md127 after reboot. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/964052/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs