RAID 5 vs RAID 6 - Comparing Fault Tolerance, Performance, Pros and Cons (2024)

Configuration

RAID 5 configuration

The definition of a RAID 5 storage system, according to the Storage Networking Industry Association (SNIA) is:

A placement policy using parity-based protection for storing stripes of 'n' logical blocks of data and one logical block of parity across a set of 'n+1' independent storage devices where the parity and data blocks are interleaved across the storage devices.Data stored using this form of RAID is able to survive a single storage device failure without data loss.

In a RAID 5 configuration, data is striped — i.e., split and stored across multiple physical disks. In addition, a special parity block is used for redundancy. For each combination of data blocks in RAID 5, a parity block is calculated and stored. Each individual parity block resides on only one disk; however, parity blocks are stored in a round-robin fashion, distributed equally across all the physical disks.

Example of a RAID 5 configuration. Data and parity blocks are grouped by color to easily identify which parity block is associated with which data blocks.

Considering that data blocks are striped across at least two disks and the parity block is written on a separate disk, we can see that a RAID 5 configuration requires at least 3 physical drives.

RAID 6 configuration

According to the SNIA, RAID 6 is defined as:

A RAID 6 or RAID Level 6 storage system is a placement policy using parity-based protection that allows stored data to survive any two storage device failures without data loss.

A RAID 6 configuration is similar to RAID 5 in that it uses striping and parity blocks. The difference is that it stores two parity blocks, allowing for extra redundancy so that even if two of the disks fail, information is still recoverable.

The video below explains the differences in RAID 5 and RAID 6 levels.

What are RAID 5-5, RAID 5-9, RAID 6-6 and RAID 6-10?

RAID 5-5 means there are 5 physical disks in a RAID 5 configuration. Similarly, RAID 5-9 means data is striped across 9 physical disks in a RAID 5 configuration.

RAID 6-6 means data is striped across 6 disks in a RAID 6 system. There are 4 data segments and 2 parity segments for each stripe. Similarly, RAID 6-10 uses 10 physical disks; there are 8 data segments and 2 parity segments for each stripe.

Redundancy, Fault Tolerance and Parity Blocks

Both RAID 5 and RAID 6 are fault tolerant systems. i.e., data is not lost even when one of the physical disks fails. RAID 5 can tolerate the failure of any one of its physical disks while RAID 6 can survive two concurrent disk failures.

What's more, both RAID 5 and RAID 6 can continue being used when the failed disk is being replaced. This is called hot-swapping.

Understanding striping in RAID

In RAID 0, data is split into blocks stored across multiple disks.

Striping is a technique to split data into blocks that are stored across different physical disks. A good example of this is RAID 0, which uses striping.

The advantage of striping is that reads and writes are very fast because they happen from multiple physical disks in parallel. This is especially advantageous in HDD disks because they use mechanical components for reading and writing.

The disadvantage of simple striping is that if one of the disks fails, all the data is lost. There is no way to reconstruct the information if certain data blocks are missing.

Fault Tolerance in RAID

In order to make a RAID system fault tolerant, it would need to store information in a redundant fashion. i.e., the same information would have to be stored on multiple disks. So if one of the disks fails, data is still present and recoverable from another of the surviving disks.

There are ways to implement redundancy. A simple way would be to store a copy of each block of data on two physical disks. That is how RAID 1 is structured.

In a RAID 1 setup, redundancy is achieved by storing multiple copies of the data on different physical disks.

Another way to make a RAID configuration redundant is to use parity information. This is what both RAID 5 and RAID 6 use for more efficient redundancy.

RAID 5 Fault Tolerance

RAID 5 can tolerate the failure of 1 disk. Data and parity information stored on the failed disk can be recalculated using the data stored on the remaining disks.

Technical details on how parity works are outside the scope of this comparison. But put simply, a parity block is computed from all the individual data blocks. If there are n physical disks in the RAID, there will be n-1 data blocks and 1 parity block. If any of the n-1 data blocks goes missing (e.g., if the physical disk that it is stored on fails), all the information of that data block can still be reconstructed using the other n-2 data blocks plus the parity block. If the disk containing the parity block fails, it can be recomputed using all the n-1 data blocks.

What happens when a disk fails in RAID 5?

Not only can data be recovered when one of the disk fails, the RAID 5 system remains operational throughout because data is accessible and reads are possible from a RAID 5 even when one of the drives has failed and is being rebuilt. However, such reads will be slow because part of the data (the part that was on the failed drive) gets computed in real time using the parity block, rather than simply being read from disk.

Fault Tolerance in RAID 6

RAID 6 has better fault tolerance than RAID 5 because RAID 6 can survive the simultaneous failure of 2 of its disks. This comes at the cost of higher redundancy. Since two parity blocks are needed for each data stripe, storage capacity of two RAID 6 disks is spent on fault tolerance.

Space Efficiency in RAID 5 vs. RAID 6

The capacity efficiency of a RAID system is the fraction of the physical storage capacity that can be productively used to store data. It is calculated by taking the disks that are not parity or mirror and dividing them by the total disks in the set.

For a RAID 5 system with n disks, the storage efficiency is (n-1)/n because 1 disk worth of storage is taken up by parity blocks, leaving n-1 disks for data storage.

For a RAID 6 system with n disks, the storage efficiency is (n-2)/n because 2 disks worth of storage is taken up by parity blocks, leaving n-1 disks for data storage.

The picture below compares the storage efficiency of RAID 5 with either 5 or 9 disks, and RAID 6 with either 6 or 10 disks.

A comparison of the storage efficiency of some RAID 5 and RAID 6 configurations with RAID 10. Chart from Dell.

Performance

RAID 5 and RAID 6 both offer fast reads because of striping. Data is read from multiple disks in parallel, which speeds up reads. Write performance is slow, however, due to the overhead of calculating parity information. RAID 6 is a little slower than RAID 5 for write performance.

Pros and Cons

Both RAID 5 and RAID 6 offer fast reads and are hot-swappable, i.e., the system is functional and continues to support reads even when a failed disk is being replaced.

RAID 5 is more common than RAID 6. The advantages of RAID 5 over RAID 6 include:

  • RAID 5 offers a good balance of many features: fault-tolerance (single disk), performance, cost and storage efficiency.
  • Writes are slow with RAID 5 but not as slow as RAID 6.
  • RAID 5 provides higher storage efficiency compared with RAID 6.
  • Potentially faster recovery from failure compared to RAID 6 because of only one parity block.

The disadvantages of RAID 5 are:

  • RAID 6 supports two concurrent disk failures while RAID 5 can only survive a single disk failure at a time.

Applications

RAID 5 provides a healthy balance of efficient storage, decent performance, failure resistance and good security. It is the most popular RAID configuration for enterprise NAS devices and business servers. RAID 5 is ideal for file and application servers that have a limited number of data drives. If the number of physical disks in the RAID is very large, the probability of at least one of them failing is higher. RAID 6 is a better option in such cases where it is important to have a higher degree of fault tolerance.

References

RAID 5 vs RAID 6 - Comparing Fault Tolerance, Performance, Pros and Cons (2024)

References

Top Articles
Stock-Split Watch: Is ASML Next? | The Motley Fool
Amsterdam, NY Detainee Lookup
Christian McCaffrey loses fumble to open Super Bowl LVIII
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Repentance (2 Corinthians 7:10) – West Palm Beach church of Christ
Songkick Detroit
Bellinghamcraigslist
Roblox Developers’ Journal
CSC error CS0006: Metadata file 'SonarAnalyzer.dll' could not be found
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Aquatic Pets And Reptiles Photos
272482061
Soccer Zone Discount Code
Evil Dead Rise - Everything You Need To Know
Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
Craigslist Maui Garage Sale
Aaa Saugus Ma Appointment
Caledonia - a simple love song to Scotland
Viha Email Login
O'Reilly Auto Parts - Mathis, TX - Nextdoor
Walmart Near South Lake Tahoe Ca
8005607994
Inbanithi Age
Danielle Ranslow Obituary
Craigslist Wilkes Barre Pa Pets
Craigslist Panama City Beach Fl Pets
Sofia the baddie dog
Bra Size Calculator & Conversion Chart: Measure Bust & Convert Sizes
Meijer Deli Trays Brochure
10 Best Quotes From Venom (2018)
Half Inning In Which The Home Team Bats Crossword
Fridley Tsa Precheck
Jay Gould co*ck
AsROck Q1900B ITX und Ramverträglichkeit
Oxford Alabama Craigslist
Hindilinks4U Bollywood Action Movies
Craigslist Tulsa Ok Farm And Garden
Fifty Shades Of Gray 123Movies
Academy Sports New Bern Nc Coupons
Bunkr Public Albums
Coroner Photos Timothy Treadwell
Nami Op.gg
2024-09-13 | Iveda Solutions, Inc. Announces Reverse Stock Split to be Effective September 17, 2024; Publicly Traded Warrant Adjustment | NDAQ:IVDA | Press Release
Levi Ackerman Tattoo Ideas
Senior Houses For Sale Near Me
Breaking down the Stafford trade
Gt500 Forums
Colin Donnell Lpsg
Used Sawmill For Sale - Craigslist Near Tennessee
De Donde Es El Area +63
North Park Produce Poway Weekly Ad
Latest Posts
Article information

Author: Greg Kuvalis

Last Updated:

Views: 6132

Rating: 4.4 / 5 (75 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Greg Kuvalis

Birthday: 1996-12-20

Address: 53157 Trantow Inlet, Townemouth, FL 92564-0267

Phone: +68218650356656

Job: IT Representative

Hobby: Knitting, Amateur radio, Skiing, Running, Mountain biking, Slacklining, Electronics

Introduction: My name is Greg Kuvalis, I am a witty, spotless, beautiful, charming, delightful, thankful, beautiful person who loves writing and wants to share my knowledge and understanding with you.