Redundant RAID 5 disk arrays

The following experiment five hard drives, three good dish, two bad disk 1. 2. Create added first five hard disk RAID5 virtual machine using the mdadm command in which the name is / dev / md0 (dev into the following general equipment), using the following command mdadm -Cv / dev / md0 -a -yes -n 3 -l 5 -x after 2 / dev / sdb / dev / sdc / dev / sdd / dev / sde / dev / sdf 3. format for hanging upload command is as follows mkfs.ext4 / dev / md0 (mkfs formatted disk is ext4 format) 4. create a directory mkdir /bbb.txt/ mount the file mount mount / dev / md0 /bbb.txt5. df -h See the mount information to    6. See details RAID array mdadm -D / dev / md0 7. analog damaged after a hard mounted file has changed mdadm / dev / md0 -f / dev / sdb ( here not necessarily sdb other hard disk can also be created, but it also changed accordingly below) 8. after the damage is still normal use (the difference between RAID5 and RAID10 is raid5 is to repair raid10 algorithm is based on the file backup storage space is also correspondingly less)

Legend is as follows:

 

Guess you like

Origin www.cnblogs.com/zhao-yang/p/11722947.html