Solution to md127 after md0 restart in Linux RHEL6

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.