RAID Level | Description | Pros and Cons | Scenarios (Recommended) |
RAID 0 | Storage mode: Data are striped and stored in different disks.
Virtual disk size: the combined capacity of all disks in the array. | Require a higher level of I/O performance, and have backed up data through other means or there is no need for data backup. | |
RAID 1 | Storage mode: Data are stored through image memory into disks.
Virtual disk size: depends on the capacity of the disk with the smallest one in the array. | Require high read performance and backups of written data. | |
RAID 01 | First deal with data through RAID0, then RAID1. | Pros: Take into both RAID0 and RAID1 advantages. Cons: Costs are relatively high and it is essential to use at least 4 disks. The damage of a single disk will make the other disks unavailable in the same array. | - |
RAID 10 | Build RAID 1 with multiple disks, and then build RAID 0 with more than one RAID 1. | Pros: Take into both RAID0 and RAID1 advantages. Cons: Costs are relatively high and it is essential to use at least 4 disks. | |

yum install mdadm -y

mdadm --create /dev/md0 --level=0 --raid-devices=4 /dev/vd[cdef]1

mkfs.ext3 /dev/md0

mkdir md0/mount /dev/md0 md0/tree md0

c5d8a204:c28853ba:3882e9f8:62d078de as an example) as shown below:mdadm --detail --scan

vi /etc/mdadm.conf
DEVICE /dev/disk/by-id/virtio-ID of elastic cloud disk 1-part1DEVICE /dev/disk/by-id/virtio-ID of elastic cloud disk 2-part1DEVICE /dev/disk/by-id/virtio-ID of elastic cloud disk 3-part1DEVICE /dev/disk/by-id/virtio-ID of elastic cloud disk 4-part1ARRAY logical device path metadata= UUID=
DEVICE /dev/disk/by-id/virtio-ID of elastic cloud disk 1-part1DEVICE /dev/disk/by-id/virtio-ID of elastic cloud disk 2-part1DEVICE /dev/disk/by-id/virtio-ID of elastic cloud disk 3-part1DEVICE /dev/disk/by-id/virtio-ID of elastic cloud disk 4-part1ARRAY /dev/md0 metadata=1.2 UUID=3c2adec2:14cf1fa7:999c29c5:7d739349
:wq to save and exit.Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback