CentOS 7 RAID RAID disk arrays combat 0

RAID is divided into different levels, different levels of RAID are made different trade-offs on the read and write performance and data reliability. In practice, you can choose a different RAID schemes based on actual demand.

0 the RAID
the RAID storage 0 is called striping, he consecutive bits or bytes of data segmentation, segments the data stored in the respective hard disk.
Advantages: In the state of RAID 0, stored data is divided into two parts respectively stored on two hard disks, removable hard disk storage speed theory at this time is twice the one-disk, the actual capacity is equal to two times the hard disk capacity of 2 .
Disadvantages: one hard disk fails, the data on the entire RAID will not be restored.
Composition condition: two of the same size disk
CentOS 7 RAID RAID disk arrays combat 0

Because the constitution requires two raid0 disk, we need to add two disks in the system and its partition, but remember to modify the file system type for the raid.
CentOS 7 RAID RAID disk arrays combat 0
CentOS 7 RAID RAID disk arrays combat 0

Before creating raid volume we have the same preparation work needs to be done, and that is to see if we create volume raid mdadm tool system has been installed, if not installed we can use "yum install mdadm" command yum install from source.
CentOS 7 RAID RAID disk arrays combat 0

In front of the preparatory work has been completed, and now we can be created in the raid0. Here we create raid0 volume called md0 in the dev directory. The command to create raid0 "mdadm -C -v / dev / mdo -l0 -n2 / dev / sd [bc] 1"
CentOS 7 RAID RAID disk arrays combat 0

Remember created using the command "mdadm -D / dec / md0" to create the result view.
CentOS 7 RAID RAID disk arrays combat 0

Command "cat / proc / mdstat" create the same results can be viewed, but biased in favor of this command to view disk status.
CentOS 7 RAID RAID disk arrays combat 0

raid volume has been built has been completed, but we have to really use to format and mount, here we are formatted and mounted on the raid volume md0. Formatting commands "mkfs.xfs / dev / md0", the mount command "mount / dev / md0 / opt / md0".
CentOS 7 RAID RAID disk arrays combat 0

Guess you like

Origin www.linuxidc.com/Linux/2019-08/160367.htm