RAID - sudo-arshia/tips_and_tricks GitHub Wiki

Comparison of RAID Modes

Introduction: RAID (Redundant Array of Independent Disks) is a technology used to combine multiple physical disk drives into a single logical unit for improved performance, reliability, or a combination of both. There are different RAID modes or levels available, each offering unique features and benefits. Let's compare various RAID modes and their features:

Comparison of RAID Modes:

RAID 0 RAID 1 RAID 5 RAID 6 RAID 10
Description Striped disk array without fault tolerance Mirrored disk array for improved redundancy Striped disk array with distributed parity Striped disk array with dual distributed parity Combination of RAID 1 and RAID 0 for performance and redundancy
Fault Tolerance No Yes Yes Yes Yes
Performance High Moderate Moderate Moderate High
Capacity High Moderate High High Moderate
Read Performance High High Moderate Moderate High
Write Performance High Low Moderate Low Moderate
Cost Low Moderate Moderate High High
Min Nodes for FT Support N/A 2 3 4 4

Please note that the Min Nodes for FT Support indicates the minimum number of nodes (disks or drives) required to achieve fault tolerance for each RAID mode.

Descriptions of RAID Modes:

  1. RAID 0:

    • Description: RAID 0 combines multiple disks into a single logical unit without fault tolerance.
    • Fault Tolerance: No fault tolerance.
    • Performance: High performance due to data striping across multiple disks.
    • Capacity: High capacity as all disks contribute to the overall storage space.
    • Read Performance: High read performance as data is striped across disks.
    • Write Performance: High write performance due to parallel writing across disks.
    • Cost: Low cost as no additional overhead for redundancy.
  2. RAID 1:

    • Description: RAID 1 creates a mirrored disk array by duplicating data on multiple disks.
    • Fault Tolerance: Provides fault tolerance as data is duplicated on separate disks.
    • Performance: Moderate performance due to data being written to multiple disks simultaneously.
    • Capacity: Moderate capacity as half of the total storage is used for redundancy.
    • Read Performance: High read performance as data can be read from either disk in the mirror.
    • Write Performance: Lower write performance compared to RAID 0.
    • Cost: Moderate cost as it requires additional disks for mirroring.
  3. RAID 5:

    • Description: RAID 5 stripes data across multiple disks and includes distributed parity.
    • Fault Tolerance: Provides fault tolerance by distributing parity information across disks.
    • Performance: Moderate performance due to parity calculations and striping.
    • Capacity: High capacity with the equivalent of one disk used for parity information.
    • Read Performance: Moderate read performance as data can be read from multiple disks in parallel.
    • Write Performance: Moderate write performance due to parity calculations.
    • Cost: Moderate cost as it requires additional disks for striping and parity.
  4. RAID 6:

    • Description: RAID 6 extends RAID 5 by using dual distributed parity.
    • Fault Tolerance: Provides higher fault tolerance compared to RAID 5.
    • Performance: Moderate performance similar to RAID 5 due to additional parity calculations.
    • Capacity: High capacity with the equivalent of two disks used for parity information.
    • Read Performance: Moderate read performance as data can be read from multiple disks in parallel.
    • Write Performance: Lower write performance compared to RAID 5 due to additional parity calculations.
    • Cost: Higher cost compared to RAID 5 due to additional parity calculations and disks.
  5. RAID 10:

    • Description: RAID 10 combines the benefits of RAID 1 and RAID 0 by mirroring striped data.
    • Fault Tolerance: Provides fault tolerance as data is mirrored across disks.
    • Performance: High performance due to both striping and mirroring.
    • Capacity: Moderate capacity as half of the total storage is used for mirroring.
    • Read Performance: High read performance as data can be read from multiple disks in parallel.
    • Write Performance: Moderate write performance as data needs to be written to multiple disks in the mirror.
    • Cost: Higher cost due to the need for additional disks for mirroring and striping.

Conclusion:

The choice of RAID mode depends on specific requirements such as performance, fault tolerance, capacity, and cost. RAID 0 offers high performance but lacks fault tolerance, while RAID 1 provides redundancy but with reduced write performance. RAID 5 and RAID 6 offer a balance between performance, capacity, and fault tolerance. RAID 10 combines the benefits of performance and redundancy but comes at a higher cost. It is essential to evaluate the needs of your storage environment and select the appropriate RAID mode accordingly.