Create raid1 under linux system-detailed steps

To create raid1 under the Linux system, a hot spare disk is required. After the Raid volume is created, the detailed information of the raid is displayed and the configuration is required

1:用fdisk工具对硬盘进行分区

Insert picture description here

2: Change the partition type to linuxraidauto type

Insert picture description here
Insert picture description here

3: Create md0 disk array, the type is raid1, the number of disks is 2, and the number of spare disks is 1

Insert picture description here

4: Permanently mount RAID

  1. Obtain the UUID of the raid
    Insert picture description here
    Note: The UUID registered by the device to the system
  2. Start setting up mdadm.conf

Insert picture description here
Insert picture description here

5: Format

Insert picture description here

6: Get test information

Insert picture description here
Note: This UUID is a global UUID, used to uniquely represent this device

7: Set the startup item

Insert picture description here
Insert picture description here

8: Let /etc/fstab take effect

Insert picture description here

9: Test

Insert picture description here

Insert picture description here

Guess you like

Origin blog.csdn.net/Houtieyu/article/details/108213095