RAID getting created as /dev/md127
When I create software RAID with mdadm, it gets created as /dev/md127, instead of /dev/md0 I specified while creating RAID.
To fix this, you need to add RAID definition in /etc/mdadm/mdadm.conf, this can be done with
1 |
mdadm --detail --scan >> /etc/mdadm/mdadm.conf |
Now run command
1 |
update-initramfs -u |
Reboot the server, after reboot, RAID device will be named properly.