RAID 6

On this page 7

RAID 6 is a redundant array level that stripes data across at least four drives and stores two independent parity blocks for every stripe, so the array keeps working after the simultaneous failure of any two drives. In server storage, it is the standard choice when large-capacity disks make a second failure during a rebuild a realistic risk.

RAID 6 extends the idea of RAID 5 with an additional parity calculation. The price of this double fault tolerance is the capacity of two drives and a higher write cost, which makes it a capacity-oriented level for archives, backups, file servers and media storage rather than for latency-sensitive databases.

How dual parity protects a RAID 6 array

Each stripe in RAID 6 contains data blocks plus two parity blocks, usually called P and Q. The P parity is a simple XOR of the data blocks, identical to RAID 5. The Q parity uses Reed-Solomon coding over a Galois field, so it is mathematically independent of P and allows the controller to solve for two unknown blocks instead of one.

Parity blocks rotate across all drives from stripe to stripe. This distribution prevents a single dedicated parity disk from becoming a bottleneck, which was the main weakness of the older RAID 3 and RAID 4 designs. Some implementations use alternative schemes such as row-diagonal parity, but the protection goal is the same.

The table below shows how the array reacts to different failure states.

Failed drivesArray stateData access
NoneOptimalFull speed, both parities current
OneDegradedReads rebuilt from P parity, still protected by Q
TwoCritically degradedReads rebuilt from P and Q, no remaining redundancy
Three or moreFailedData lost, restore from backup required
RAID 6 behavior by number of failed drives

Capacity, performance and key parameters

Usable capacity in RAID 6 equals (n minus 2) times the smallest drive size, where n is the number of drives. The overhead is therefore 50 percent with four drives but falls to about 17 percent with twelve, which is why RAID 6 becomes more efficient as arrays grow.

Performance depends on the operation type. Reads are served from all drives in parallel, but every small random write triggers a read-modify-write cycle that reads old data and both parities, then writes new data and both parities. This produces a write penalty of six I/O operations per logical write, compared with four for RAID 5 and two for RAID 1.

ParameterTypical valueWhat it affects
Minimum drives4Smallest possible array
Usable capacityn minus 2 drivesStorage efficiency
Write penalty6 back-end I/O per writeRandom write IOPS
Stripe unit size64 KB to 1 MBSequential throughput and small-write cost
Practical array width6 to 16 drivesRebuild time and failure exposure
Main RAID 6 parameters

Large sequential writes avoid the penalty when the controller can write full stripes, computing both parities from new data without reading anything back. A battery-backed or flash-protected write cache on a hardware RAID controller helps by coalescing small writes into full-stripe writes.

RAID 6 compared with RAID 5, RAID 10 and ZFS RAID-Z2

RAID 6 trades write speed for protection, while its neighbors make different compromises. The comparison helps match the level to the workload.

LayoutFault toleranceCapacity efficiencyRandom write cost
RAID 5Any one driven minus 1 drivesMedium, penalty of 4
RAID 6Any two drivesn minus 2 drivesHigh, penalty of 6
RAID 10One per mirror pair, sometimes more50 percentLow, penalty of 2
RAID-Z2 in ZFSAny two drives per vdevn minus 2 drivesVariable stripe width, no write hole
RAID 6 and related layouts

RAID-Z2 in ZFS provides the same two-drive tolerance but integrates parity with the file system, using copy-on-write and end-to-end checksums to avoid the classic RAID write hole, where a power loss leaves data and parity inconsistent. Traditional RAID 6 relies on cache protection or journaling to address that risk.

Why RAID 6 matters with large drives

The strongest argument for RAID 6 is rebuild exposure. When one drive in a RAID 5 array fails, every remaining drive must be read completely to rebuild the replacement. With drives of 16 TB or more, a rebuild can take a day or longer, and during that window a second failure or an unreadable sector destroys the array.

Drives in the same array often share a manufacturing batch, age and workload, so correlated failures are more common than independent statistics suggest. Unrecoverable read errors during a rebuild are another concern: RAID 6 can still correct a bad sector on a surviving drive while one disk is missing, whereas RAID 5 cannot.

The following decision table summarizes when RAID 6 is the appropriate choice.

SituationRecommendationReason
Backup target with large HDDsRAID 6High capacity with safe rebuilds
Media or file archiveRAID 6 with hot spareRebuild starts immediately after failure
Transactional databaseRAID 10Low write latency matters more than capacity
Very wide array above 16 drivesSplit into several RAID 6 groupsLimits rebuild time and blast radius
Software-defined storage clusterErasure coding or ZFSRedundancy handled across nodes
When to choose RAID 6

Limitations and common mistakes

RAID 6 improves availability but is not a backup. Deletion, ransomware, file system corruption and controller faults affect all drives at once, so an independent backup copy remains mandatory.

  • Using RAID 6 for write-heavy databases produces poor random write performance and high latency.
  • Ignoring degraded alerts wastes the second level of protection; replace a failed drive promptly or configure a hot spare.
  • Skipping periodic scrubbing lets latent sector errors accumulate until a rebuild exposes them.
  • Building very wide single arrays lengthens rebuilds and raises the chance of a third failure.

Rebuild activity also reduces performance for hours or days, so administrators often limit rebuild priority during business hours and accept a longer exposure window in exchange for responsive service.

In everyday language

Imagine a team that writes down important notes and keeps two separate cheat sheets that can reconstruct anything that goes missing. If one notebook is lost, either cheat sheet fills the gap. If two notebooks are lost at the same time, the two cheat sheets together still recover everything.

RAID 6 does the same with hard drives. You can lose any two disks and still keep all your data. The trade-off is that two disks worth of space hold the safety information, and saving small changes takes a little longer.

Seen in the real world

A regional video production company stores raw footage on a file server with twelve 18 TB hard drives configured as RAID 6. The array provides about 180 TB of usable space, and a thirteenth drive sits in the chassis as a hot spare. Editors mostly read and write large sequential files, so the write penalty has little visible effect.

One night a drive fails, and the controller starts rebuilding onto the spare. The rebuild takes roughly 30 hours, and on the second day a sector on another disk returns a read error. Because the array still has the second parity, the controller corrects the bad sector and completes the rebuild without data loss. With RAID 5, the same event would have forced a restore of the affected footage from backup.