If we use the/DEV/SDB1 and/DEV/SDC1 two partitions to establish a RAID1 device/dev/md0:
# mdadm--create/dev/md0--level=1--raid-devices=2/dev/sd[bc]1
# mkfs.ext4/dev/md0
After rebooting, the/DEV/MD0 device will automatically become the/dev/md127 device.
Workaround: Modify the configuration file/etc/mdadm.conf the second column of the device name is md0.
# mdadm--detail--scan >>/etc/mdadm.conf
# vim/etc/mdadm.conf
Reference
ARRAY /dev/md/godben:0 metadata=1.2 name=godben:0 Uuid=c250f478:6e6de973:05a10768:503480be
Change the second column, the red part, to/dev/md/md0, as follows:
ARRAY /dev/md/md0 metadata=1.2 name=godben:0 Uuid=c250f478:6e6de973:05a10768:503480be
Takes effect after restarting the computer.
This article is from the "Godben" blog, make sure to keep this source http://godben.blog.51cto.com/8919725/1708632
Solution to md127 after md0 restart in Linux RHEL6