RAID Write Hole: The Failure Mode Parity Cannot Fix


The RAID write hole is a window during a parity update when a power loss can leave data and parity inconsistent. The array still works, the file system still mounts, and the damage stays invisible until a disk fails and the controller tries to rebuild from parity that no longer matches.

It is not a bug in one controller. It is a property of how parity RAID writes data, and it explains why serious arrays pair parity with battery-backed cache or a journal.

What the Write Hole Is

In RAID 5, every write touches a data block and the parity block for that stripe. The controller must read the old data and old parity, compute the new parity, then write the new data and the new parity. Those writes do not land at the same instant.

If power fails between them, one block may be new and the other old. The stripe is now internally inconsistent. Nothing complains immediately, because each block is readable on its own.

How an Update Goes Wrong

  1. The controller reads the old data and the old parity for the stripe.
  2. It computes the new parity in memory.
  3. It writes the new data block.
  4. Power fails before the new parity is written.
  5. On restart, the stripe contains new data and old parity.

While all disks are present, the array can still serve reads, because it reads the data block directly. The inconsistency only matters when a disk is missing and the controller must reconstruct a block from parity.

Which RAID Levels Are Exposed

LevelExposedWhy
RAID 0No parityNo redundancy to reconstruct, but no parity to corrupt either
RAID 1 / 10NoMirrors write identical copies; there is no parity calculation
RAID 5YesSingle parity per stripe and a multi-step update
RAID 6YesTwo parity blocks, same window, more complex update

RAID 6 tolerates more failures, but it does not remove the write hole. The mitigation is the same: make the update atomic or make it recoverable.

Stacking parity groups changes the arithmetic but not the exposure. RAID 60 stripes data across double-parity groups, so it survives two failures inside one group, yet an interrupted update can still leave that group's parity out of date.

How the Gap Is Closed

Software RAID without a protected cache is the most exposed configuration. A desktop mirror is fine; a desktop parity array without a UPS is a calculated risk.

Why a Backup Still Matters

Every mitigation above reduces the chance of an inconsistent stripe. None of them protects against deletion, ransomware or a controller failure. A backup taken before a rebuild is the only way to recover when the array cannot reconstruct a block.

A RAID hot spare shortens the dangerous window: the controller starts rebuilding as soon as a member fails, instead of waiting for someone to notice the degraded array and insert a disk.

Qiling Disk Master can image the volume while the array is healthy or degraded.

Step 1. Connect a destination drive and open the Backup and Recovery tab.

open Disk/Partition backup before working on a RAID array

Step 2. Tick the RAID volume as the source and click the folder icon.

select the RAID volume as the backup source

Step 3. Choose a folder on the external drive and click OK.

choose the backup destination folder

Step 4. Click Proceed and confirm the image opens before you change any array setting.

disk backup running in Qiling Disk Master

Can a scrub detect the write hole?

Only if the scrub recomputes parity and compares it. A read-only surface scan cannot see the inconsistency, because both blocks are readable.

Does RAID 6 fix it?

No. RAID 6 tolerates two disk failures, but an interrupted update can still leave both parity blocks out of date.

Is a UPS enough?

It removes the most common cause, but a controller crash or a firmware bug can still interrupt an update. Protected cache or journaling is the stronger fix.

Related Articles


Is this information helpful?     

What can we do to improve this information? (Optional)
Refresh Please enter the verification code!


QilingTech uses cookies to ensure you get the best experience on our website.  Learn more  Got it