This is my /etc/mdadm/mdadm.conf
ARRAY /dev/md/root metadata=1.2 name=root UUID=331728d9:c4d12r4f:f589d3ze:01ab3c17
ARRAY /dev/md/backup metadata=1.2 name=backup UUID=429845f1:d5e24f5g:8135dgte:120ff5c0
find report this situation:
find /dev/md -ls
1656 0 drwxr-xr-x 2 root root 80 nov 8 05:30 /dev/md
1784 0 lrwxrwxrwx 1 root root 8 nov 8 05:30 /dev/md/ibmlinux:backup -> ../md127
1657 0 lrwxrwxrwx 1 root root 8 nov 8 05:30 /dev/md/ibmlinux:root -> ../md126
as you can see we have md126 and md127, is possible to force it to name md0 and md1? I have tried to create duplicate arrays in mdadm.conf but don't work. System is Debian SID.
I want a result like this: preserve the /dev/md/name and have md0 and md1 instead of md127 and md126
find /dev/md -ls
1656 0 drwxr-xr-x 2 root root 80 nov 8 05:30 /dev/md
1784 0 lrwxrwxrwx 1 root root 8 nov 8 05:30 /dev/md/ibmlinux:backup -> ../md1
1657 0 lrwxrwxrwx 1 root root 8 nov 8 05:30 /dev/md/ibmlinux:root -> ../md0
Now I try this mdadm.conf
ARRAY /dev/md0 metadata=1.2 name=root UUID=331728d9:c4d12r4f:f589d3ze:01ab3c17
ARRAY /dev/md1 metadata=1.2 name=backup UUID=429845f1:d5e24f5g:8135dgte:120ff5c0
and after update initramfs and reboot...
find /dev/md -ls
9250 0 drwxr-xr-x 2 root root 80 nov 8 05:50 /dev/md
9299 0 lrwxrwxrwx 1 root root 8 nov 8 05:50 /dev/md/ibmlinux:root -> ../md126
9251 0 lrwxrwxrwx 1 root root 8 nov 8 05:50 /dev/md/ibmlinux:backup -> ../md127
Same thing.