Detailed illustration of the actual operation process of RAID creation and troubleshooting in the initial stage of Linux experiment

RAID5 creation

Create four hard drives

Enter fdisk -l to see if it has been added

Insert picture description here

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

Insert picture description here

sdc

Insert picture description here

sdd

Insert picture description here

sde

Insert picture description here

Enter fdisk -l to view

Insert picture description here

Check whether the mdadm package is installed

Insert picture description here

Create RAID device

Insert picture description here

View disk details

Insert picture description here

Format and mount

Insert picture description here

Simulate failure and view disk status

Insert picture description here
Insert picture description here
Found that /dev/sde1 replaced the location of /dev/sdb1

Remove and re-add sdb1

Insert picture description here

Guess you like

Origin blog.csdn.net/m0_53497201/article/details/113783352