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工具对硬盘进行分区
2: Change the partition type to linuxraidauto type
3: Create md0 disk array, the type is raid1, the number of disks is 2, and the number of spare disks is 1
4: Permanently mount RAID
- Obtain the UUID of the raid
Note: The UUID registered by the device to the system - Start setting up mdadm.conf
5: Format
6: Get test information
Note: This UUID is a global UUID, used to uniquely represent this device
7: Set the startup item