Thursday, 12 February 2015

mdadm changes the name of my new array to md127... topic






Hello everyone,

This has been bugging me for some time now. Every time I create a new array using mdadm the name is changed from what I originally specified.

Here's what I'm doing.

Created the array from two new disks:


Code:


mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sdc1 /dev/sdd1

Made the filesystem:


Code:


mkfs.ext3 /dev/md0

Updated mdadm.conf:


Code:


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

Added the array to /etc/fstab:


Code:


/dev/md0 /mnt/mymountpoint ext3 defaults 0 1

Everything looks great... until I reboot the machine.

Upon reboot I receive the message that the filesystem on /dev/md0 is either missing or busy. I skip this... and then discover that my new array is no longer called /dev/md0.

Now, it is /dev/md127.

What am I doing wrong? This happens every time I create an array and on multiple different systems. I'm assuming that I'm just being an idiot here but your help is greatly appreciated as I would prefer for my arrays to retain the name I specify when creating them.

Thank you!






No comments:

Post a Comment