RAID 10 configuration process

1. Add 5 more hard disks to the virtual machine:

Share a picture

2.fdisk -l can view Current disk conditions in the virtual machine.

share picture

3. Use the mdadm command to create RAID10 with the name “/dev/md0″.

-C represents the creation operation, -v displays the creation process, -a yes checks RAID name, -n is the number of hard disks used, -l is to define the RAID level and write the name of the hard disk to be added to the array at the end.

share pictures

4. Format the RAID disk array to ext4 format:

Type mkfs.ext4 /dev/md0

Share a picture

5. Create a mount directory

mkdir /media/rid

Share pictures

6. Mount the file system

mount /dev/md0 /media/rid

Share pictures

7.View Disk Mounting information:

# df -h

< span style="font-family: Song Ti; font-size: 18px;">Share a picture

8. Setting this disk array mounting information to still take effect after restarting:

# echo “/dev/md0 /media/rid ext4 defaults 0 0” >> /etc/fstab

9.Parameter-D View the detailed information of the RAID array:

mdadm-D /dev/md0

You can see that all 5 disks have been mounted successfully.

share picture

10. You can see that the virtual machine has been configured successfully.

share pictures

Leave a Comment

Your email address will not be published.