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.

RAID /dev/md127

To fix this, you need to add RAID definition in /etc/mdadm/mdadm.conf, this can be done with

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

Now run command

update-initramfs -u

Reboot the server, after reboot, RAID device will be named properly.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *