Introduction to RAID disk array features

Source: Internet
Author: User

First, RAID overview


RAID is an abbreviation for the English Redundant array of independent disks, which translates into Chinese as "redundant array of independent disks" or simply as a disk array. To put it simply, RAID is a combination of several separate physical hard disks or partitions in a different way to form a unified disk group at the logical level, providing higher storage performance and redundancy than a single hard drive. The different ways to make up a disk array are called RAID levels (RAID levels), and note that the difference in levels is only that their composition is different, without the merit or disadvantage of performance.


Second, RAID classification


The implementation of RAID is divided into hard raid and soft raid two, by hardware to achieve the RAID function is hard raid, mainly through the expansion card or computer motherboard integration and other hardware implementation.

      • External disk array: Adapter capability with expansion cards

      • Internal-Connection RAID: Motherboard integrated RAID controller

Software uses CPU to complete raid called soft raid, software RAID consumes high CPU resources, most of the server devices are hardware RAID.


Iii. characteristics of each level

Here are just a few of the frequently used RAID levels: RAID-0, RAID-1, RAID-5 ...

1) RAID0

According to the "stripe" the data is divided into n equal parts, and then put the data into each disk sequentially;

      • Read and write performance improvements;

      • )  

      • no fault tolerance

      • 2, Min.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/9D/wKiom1XoiUeRI4gUAAFYhPIfbb0327.jpg "title=" RAID0 " Width= "height=" border= "0" hspace= "0" vspace= "0" style= "width:320px;height:200px;" alt= " Wkiom1xoiueri4guaafyhpifbb0327.jpg "/>



2) RAID-1:

While reading and writing data in parallel, the original data is fully mirrored, that is, 1 copies of the data into 2 copies;

      • Read performance improvement, write performance slightly decreased;

      • free Space: 1*min (s1,s2,...)

      • Have redundancy capability

      • minimum number of disks: 2,

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/9D/wKiom1XojNGgqyKHAADu0lPcdrc000.jpg "title=" RAID1 " Width= "274" height= "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:274px;height:230px; "alt=" Wkiom1xojnggqykhaadu0lpcdrc000.jpg "/>

3) RAID-5 :

The data write is similar to RAID0, the difference is that, RAID5 in the process of data writing, in each disk also added a same bit check data (parity), this data will record the backup data of the other disk, used to worry about the disk damage when the calculation reply;

      • free space: Span style= "font-family: ' Comic Sans MS '; font-size:16px;" > (N-1) *min*n

      • 1 block disk

      • minimum number of disks:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/99/wKioL1Xoj73xMa69AAFoIe4ppcs675.jpg "title=" RAID5 " Width= "322" height= "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:322px;height:230px; "alt=" Wkiol1xoj73xma69aafoie4ppcs675.jpg "/>


4) Mixed type

4.1) RAID10 :

        • read, write performance improvements

        • free space: n*min/2

        • Span style= "font-family: ' Comic Sans MS '; font-size:16px;" > fault tolerance: Each group of mirrors can only be broken at most;

        • 4, 4+

      • /ul>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/9D/wKiom1Xojk_DUH1ZAAGRJsbV1e0222.jpg "title=" RAID10 "Width=" 288 "height=" "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:288px;height:230px; "alt=" Wkiom1xojk_ Duh1zaagrjsbv1e0222.jpg "/>


4.2) RAID01:

        • read, write performance improvements

        • Free space: n*min/2

        • fault tolerance: Each group of hard drives can only be bad 2 blocks;

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/99/wKioL1Xok_LCDGkzAAF_lyNuvIE318.jpg "title=" RAID01 "Width=" 322 "height=" "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:322px;height:230px; "alt=" Wkiol1xok_ Lcdgkzaaf_lynuvie318.jpg "/>



Ps:

      Create a free space for10Gof theRAID5equipment that requires itsChunksize is128k, the file system isExt4, there is a free disk, the boot can be automatically mounted to/backupdirectory;

A: The process of solving problems:fdiskCreating Partitions>=4(System type is adjusted toFD)àUsePatx(CENTOS6) command to reread the disk partition by the kernel (/proc/partitions)àUsefdisk–lTo see if the partition was successfulàUseMdadmCommand CreationRAIDàMKE2FSformatàAuto mount on boot (BlkidCheckUUIDWrite/etc/fstab)

~]# mdadm-c/dev/md0-a yes-l 5-c 128-x 1-n 3/dev/sda{5,6,7,8}












This article is from "snail" blog, please be sure to keep this source http://zhangwj.blog.51cto.com/10609913/1691256

Introduction to RAID disk array features

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.