RAID real machine operation
- RAID5 creation
-
- Create four hard drives
- Enter fdisk -l to see if it has been added
- Use fdisk to divide the hard disk /dev/sdb, /dev/sdc, /dev/sdd, /dev/sde into primary partitions sdb1, sdc1, sdd1, sde1, and change the ID mark number of the partition type to "fd"
- Check whether the mdadm package is installed
- Create RAID device
- View disk details
- Format and mount
- Simulate failure and view disk status
- Remove and re-add sdb1
RAID5 creation
Create four hard drives
Enter fdisk -l to see if it has been added
Use fdisk to divide the hard disk /dev/sdb, /dev/sdc, /dev/sdd, /dev/sde into primary partitions sdb1, sdc1, sdd1, sde1, and change the ID mark number of the partition type to "fd"
sdb
sdc
sdd
sde
Enter fdisk -l to view
Check whether the mdadm package is installed
Create RAID device
View disk details
Format and mount
Simulate failure and view disk status
Found that /dev/sde1 replaced the location of /dev/sdb1