1. Add 5 more hard disks to the virtual machine:
2.fdisk -l can view Current disk conditions in the virtual machine.
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.
4. Format the RAID disk array to ext4 format:
Type mkfs.ext4 /dev/md0
5. Create a mount directory
mkdir /media/rid
6. Mount the file system
mount /dev/md0 /media/rid
7.View Disk Mounting information:
# df -h
< span style="font-family: Song Ti; font-size: 18px;">
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.
10. You can see that the virtual machine has been configured successfully.