Mdadm set a RAID disk array and how to rebuild after a partition failure

Source: Internet
Author: User

First, Fdisk establishes a different partition and is set to the FD format

Secondly

5 5 /dev/sda1/dev/sdb1/dev/sdc1/dev/sdd1/dev/sde1

-C: Create a disk array

-L: Disk array RAID5

-N: Using 5 disks to create a

This creates a disk array/dev/md0

The disk array is then formatted

Mkfs.ext3/dev/md0

You can use this disk array after you mount it.

If any of the partitions are damaged, first set this partition to fail

Mdadm/dev/md0--SET-FAULTY/DEV/SDC1

And then remove the damaged partition

Mdadm/dev/md0--REMOVE/DEV/SDC1

And then add a new partition

Mdadm/dev/md0--ADD/DEV/SDC1

The new partition data is now rebuilt, and you can view the rebuild progress by mdadm-d/dev/md0

Once the rebuild is complete, we can use the disk mount.

Mdadm set a RAID disk array and how to rebuild after a partition failure

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.