I had a fully working server.
I booted with SystemRescueCD, without writing anything. I didn't even mounted a partition. Then rebooted the server.
The server no longer boot correctly because some partitions don't mount.
I see this is because the RAID partitions are not named as before.
/dev/md1 became /dev/md126
and /dev/md2 became /dev/127
I know how to rename a md device:
mdadm --stop /dev/126 mdadm --assemble --verbose --update=super-minor /dev/md1 /dev/sda6 /dev/sdb6 mount /dev/md1 /mnt/ echo 'dummy' > /mnt/dummy # to be sure the kernel updates the superblock. See manpage
After that, the md1 device is okay... until I reboot.
After reboot it is returned to /dev/md126
Question 1: what's the magic behind the fact SystemRescueCD changed that ?
Question 2: what can I do to rename those md device as I want ?