Linux system common disk array RAID5

Source: Internet
Author: User
RAID5 is composed of at least 3 hard disks, each hard disk capacity, the data stored in the disk array of each hard disk, one of the hard disk storage data check bit, when the loss of one of them, RAID1 can through the algorithm, using other two-bit data to calculate the lost data to restore, So RAID5 can only allow a piece of hard disk damage, visible disk utilization is (N-1)/n, the security of the data is guaranteed, most people choose to use RAID5 combination way to do disk array.
The following is a AID5 disk array on Linux that combines 3 drives into r, simulating that when one of the 3 hard drives is damaged, the fourth hard disk will be replaced with a backup.
First prepare the experiment environment, add 4 20G hard disks on Linux, right click on the left list virtual machine name "Redhat6-1", click "Settings", go to the Virtual Machine settings boot box, click "Add", select "Hard disk", follow the default options to complete, then do 4 times to add the hard drive, Click OK, then enter "Init 6" command on the terminal to restart the Linux system so that 4 disks are added successfully.

Then use Xshell to connect to the Linux system remotely, then use the Fdisk tool to view the disk list information, and then use the Fdisk tool to partition the new four hard disk/DEV/SDB/DEV/SDC/DEV/SDD/DEV/SDE. The four hard disks were divided into SDB1 partitions, SDC1 partitions, SDD1 partitions, sde1 partitions.




Then use the Mdadm tool to combine the/DEV/SDB/DEV/SDC/DEV/SDD three hard drives into RAID5 mode, one of which is/dev/sde as a backup disk.

The Mdadm tool needs to see if the RAID5 volume has been successfully created. To see the Mdstat file under the/proc path, you can see that three drives are synchronizing, wait a while, and then use the Mdadm tool to view the details of the RAID5 volume.


The RAID5 volume is then formatted and mounted

Finally, the emulation realizes one of the disk corruption, the replacement disk auto-replace the function, will/dev/sdb1 the hard disk partition to destroy, the spare hard disk partition/dev/sde1 automatically replaces on.

At this point, the Linux system made RAID5 volume experiment successfully.

Linux system common disk array RAID5

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.