1. Create four new partitions:
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/78/0C/wKioL1Z06AewiR0TAAP9dgRMOC4737.png "title=" 1.png " alt= "Wkiol1z06aewir0taap9dgrmoc4737.png"/>
2 , view partition file system with L, change with T, set to FD
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/78/0D/wKiom1Z06DTQ546SAAhatftZsVM744.png "title=" 2.png " Style= "Float:left;" alt= "Wkiom1z06dtq546saahatftzsvm744.png"/>
3 , save repartitioning
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/78/0D/wKiom1Z06I2yH9G0AAMfkObYUcM786.png "style=" float: none; "title=" 3.png "alt=" Wkiom1z06i2yh9g0aamfkobyucm786.png "/>
4 , create Raid
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/78/0C/wKioL1Z06J2jsqgjAACLm1umn3M876.png "title=" 4.png " Style= "Float:none;" alt= "Wkiol1z06j2jsqgjaaclm1umn3m876.png"/>
mdadm to create a command,-C creates a device file that automatically creates a target RAID device (yes), and-N 3 uses three blocks to create Raid,-x 1 to leave a free disk-L 5 level 5 (RAID-5),-C to specify the chunk size
5 , see if it is successful
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/78/0D/wKiom1Z06JTjaoCZAAEwtLJBcqQ935.png "title=" 5.png " Style= "Float:none;" alt= "Wkiom1z06jtjaoczaaewtljbcqq935.png"/>
6 , Format raid
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/78/0D/wKiom1Z06JXTiEyuAAA6ZdtpwxM047.png "title=" 6.png " Style= "Float:none;" alt= "Wkiom1z06jxtieyuaaa6zdtpwxm047.png"/>
7 , mount to the specified directory (this directory is to be built first)
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/78/0C/wKioL1Z06KvwsXzJAAIozdRCNcY239.png "title=" 7.png " Style= "Float:none;" alt= "Wkiol1z06kvwsxzjaaiozdrcncy239.png"/>
8 , see if the disk is formatted successfully
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/78/0D/wKiom1Z06KGyVPw0AAFNYRFjQv0181.png "title=" 8.png " Style= "Float:none;" alt= "Wkiom1z06kgyvpw0aafnyrfjqv0181.png"/>
9 , set up automatic mount, It's best to hang the UUID, because md0 may change.
Blkid/dev/md0
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/78/0C/wKioL1Z06LCQo4I2AABb3nlTvP4453.png "title=" 9.png " Style= "Float:none;" alt= "Wkiol1z06lcqo4i2aabb3nltvp4453.png"/>
vim/etc/ FS Tab
Ten , see if it works properly : mdadm-d/dev/md0 , the following result is normal
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/78/0D/wKiom1Z06KrAXIzpAALdBcDuck0428.png "title=" 10.png "Style=" Float:none; "alt=" Wkiom1z06kraxizpaaldbcduck0428.png "/>
One , test mark Sda7 as damaged
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/78/0D/wKiom1Z06aGQ9o0GAAF-IyXIr2M307.png "style=" float: none; "title=" 11.png "alt=" Wkiom1z06agq9o0gaaf-iyxir2m307.png "/>
View status: Watch-n1 ' Cat/proc/mdstat ' means to automatically invoke the command behind cat every second
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/78/0C/wKioL1Z06bDjtI9FAAEb7eu2ul8823.png "title=" 11-1. PNG "style=" Float:none; "alt=" Wkiol1z06bdjti9faaeb7eu2ul8823.png "/>
A , the result is identified as sda7 as faulty , for damage, while the SDA10 free disk automatically tops and updates the data synchronously
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/78/0D/wKiom1Z06arQT8PfAALMjEtbF9s824.png "title=" 12.png "Style=" Float:none; "alt=" Wkiom1z06arqt8pfaalmjetbf9s824.png "/>
- , remove the bad disk:
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/78/0C/wKioL1Z06bjRWypWAABT0x-TpWY394.png "title=" 13.png "Style=" Float:none; "alt=" Wkiol1z06bjrwypwaabt0x-tpwy394.png "/>
Up to two blocks (fewer disks are degraded, less in descending)
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/78/0D/wKiom1Z06a2A8bb4AAAe4NOZInc155.png "title=" 13-2. PNG "style=" Float:none; "alt=" Wkiom1z06a2a8bb4aaae4nozinc155.png "/>
- , add disk operation: The disc has been repaired, or a new one has been replaced (the bottom Sda7 in a repair operation, it will be perfectly normal after a while)
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/78/0C/wKioL1Z06cGCxaeYAALlRXZtXGY025.png "title=" 14.png "Style=" Float:none; "alt=" Wkiol1z06cgcxaeyaallrxztxgy025.png "/>
Create a RAID5 of 10G free space