Detailed steps for quick installation of Soft RAID on Linux
Physical Environment: Virtual Machine CentOS6.4
Configuration: 8 GB memory, 2x2 core cpu, 3 virtual hard disks (sda, sdb, sdc, sdb, and sdc are identical) in the actual production environment, system hard disks are separated from databases and applications, which is conducive to system maintenance and data application usage. In this environment, sda is used as the system disk, and sdb + sdc is used as the soft RAID 0 (if RAID5 is used, you only need to add a hard disk that is exactly the same as that of sdb, select level 5 when creating a RAID ). The configuration of the software disk array is very simple, because the value needs to use a command. This is mdadm. The common parameters are as follows: parameter -- create new RAID -- auto = yes determines the name of the disk array device after the new disk is created, that is,/dev/md [0-9] -- raid-devices = N use several disks as the disk array device -- spare-devices = N use several disks as the backup device -- level = 【 015: set detailed information of the Disk Array Device borrowed. Step 1: step 2: view disk array information Step 3: Format and mount a disk Step 4: Set the RAID to enable the software RAID to have its own configuration file, this configuration file is in/etc/mdadm. in conf, you only need to know the UUID of/dev/md0 to set this file: Set automatic mounting upon startup, and add the following line to/etc/fstab: Mount test: Step 5: how does yum install hdparm to test the disk array read/write speed? The read/write speed of the entire disk column is not only slower than that of a single disk, but also slower than that of a system disk. The read/write speed of the disk array should be a combination of a single disk, why? In fact, this is because our sdb and sdc are both Virtual Disks and a physical disk shared with sda, writing data on different Virtual Disks on the same physical disk is certainly slower than writing data on a virtual disk; sdc is faster than sda because it is a new virtual disk. Step 6: Disable software RAID (especially after the system disk is used as a RAID lab using virtual partitions) (1) umount/dev/md0 (2) vi/et/fstab (3) mdadm -- stop/dev/md0 (4) cat/proc/mdstat (5) vi/etc/mdadm. conf complete!
How to build a RAID 10 array on Linux
Debian soft RAID Installation notes-use mdadm to install RAID1
Common RAID technology introduction and demo (Multi-chart)
The most common disk array in Linux-RAID 5
RAID0 + 1 and RAID5 Performance Test Results
Getting started with Linux: disk array (RAID)
This article permanently updates the link address: