CentOS configuration soft RAID

Install dmadm
CentOS configuration software Raid
fdisk -l view disk information, 6 A 100GB disk, namely /dev/sdb, /dev/sdc, /dev/sdd, /dev/sde, /dev/sdf, /dev/sdg
CentOS configuration soft Raid
Create raid5, two hot spare disks
-C create Raid
-v display process
-n specify Number of Raid Disks
-l Specify Raid level
-x Specify the number of hot spare disks
CentOS configuration soft Raid
Use mdadm -D /dev/md0 to view Raid information, Raid is rebuilding
CentOS configuration soft Raid
Use mdadm -D /dev/md0 to view Raid information in about 3 minutes, Raid initialization is complete
CentOS configuration soft Raid
Format
CentOS configuration software Raid
Mount the partition
CentOS configuration software Raid
Simulate failure
CentOS configuration soft Raid
/dev/sdg convert from hot spare disk rebuiding to raid disk
CentOS configuration soft Raid

Leave a Comment

Your email address will not be published.