Raid 4 and RAID 5

Source: Internet
Author: User

Raid 4:

At least three hard disks are required and a disk is designed to store verification codes. However, when data is requested to be written, data is first written to other disks, when the disk is verified, the verification code is calculated and then written to the disk. Then, the verification code is repeatedly written to other disks, and the verification code is repeatedly written to the disk, if the disk1 data disk is damaged and does not affect the system operation, you can calculate the data of disk2 based on the verification code of Disk 2 and verification disk, but it will affect the system operation performance, as shown below:

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4D/CE/wKioL1RaKBLjvS0CAADRNGIPp44043.jpg "Title =" 1.jpg" alt = "wkiol1rakbljvs0caadrngipp44043.jpg"/>


Conclusion: at least 3 Fast disks are required.

The read/write performance is the sum of the total number minus the sum of one disk, that is, (n-1)/n, but the write performance is not as good as the read performance, because the write verification code needs to be calculated.

Data security is provided, but data is not absolutely secure. Only one disk can be broken. When there are many data disks, the disk must be frequently accessed. Therefore, the redundancy capability is limited, the disk is heavily dependent on the verification disk.


RAID 5:

The optimization is based on raid 4. The verification is not stored on one disk, but distributed on each hard disk. In this way, the performance is maintained, it also solves the bottleneck of disk Verification:

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/4D/CF/wKiom1RaLPiysOV_AADcio7PQrg912.jpg "Title =" 1.jpg" alt = "wkiom1ralpiysov_aadcio7pqrg912.jpg"/>

Summary RAID5:

Requires at least 3 Fast Disks

The read/write performance is the sum of the total number minus the sum of one disk, that is, (n-1)/n, but the write performance is not as good as the read performance, because the write verification code needs to be calculated.

Data security is provided, but only one disk can be broken. The bottleneck is no longer the data verification disk, because the data verification is stored on average on each disk.


This article is from the "Linux" blog, please be sure to keep this source http://zhangshijie.blog.51cto.com/806066/1572706

Raid 4 and RAID 5

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.