raid-write-hole · shipping · also Parity write hole

RAID write hole

The RAID write hole is the risk that an interrupted stripe update leaves data and parity inconsistent, so reconstructing a missing member returns wrong data.

A stripe write involves several member disks, and an unclean shutdown can stop it after only some of them were updated. With all members present, a resync recomputes parity from data, but a further crash or a member loss before the resync completes exposes stripes whose parity no longer matches. Blocks that were not written during the interrupted update can then be reconstructed incorrectly, which is silent corruption rather than a reported error. [2] [4]

Linux md therefore refuses by default to start an array that is both dirty and degraded. The md-mod.start_dirty_degraded=1 boot parameter bypasses the check, for example to boot a root file system from such an array, but it does not repair parity. [1]

Partial Parity Log closes the hole for RAID5 by first writing the XOR of the stripe chunks that a write leaves unchanged. The log sits in the metadata area of each stripe's parity drive and needs no dedicated device. Write performance drops by up to 30-40%, and an array may have at most 64 member disks. [2]

A journal device for RAID 4/5/6 is the other md method. In write-through mode, supported since Linux 4.4, data and parity reach the log before the member disks, and several hundred megabytes of log are enough. Write-back mode, supported since Linux 4.10, acknowledges a write once it is in the log and later flushes aggregated full-stripe writes, so losing the log device loses data. [4]

Relations

related
RAID 5, Parity RAID, Partial Parity Log, Write-intent bitmap, Crash consistency, Read-modify-write, Parity pollution, RAIDZ

Advantages

  • PPL recovery at start-up after an unclean shutdown with all disks present removes the need to resync the whole array. [2]

Limitations

  • PPL is not a journal for in-flight data: if the disk that received a stripe's new data is lost, that stripe is not recovered and its written part may hold arbitrary data. [2]
  • PPL and a write-intent bitmap cannot be enabled together on the same array. [2]

Citations

  1. Linux v6.12: RAID arrays, dirty/degraded assembly and bitmap metadata (accessed 2026-10-23)
  2. Linux v6.12: Partial Parity Log (accessed 2026-10-23)
  3. Linux v6.12: RAID 4/5/6 cache (raid5-cache.rst), write-through and write-back journal modes (accessed 2026-10-23)

Further reading

  1. Hesela: RAID write hole, bitmap and PPL (accessed 2026-10-11)
Sources & caveats
  • md, ppl and r5cache are Linux v6.12 kernel documentation files, with ppl and r5cache read in full and md read in the boot-parameter and consistency_policy sections.
  • The 30-40% figure is stated in ppl without a test configuration or workload.
  • r5cache gives several hundred megabytes for a write-through journal and at least several gigabytes for write-back mode as recommendations, not as a sizing formula.

JSON: /data/terms/raid-write-hole.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. RAID write hole. Hesela. 2026-10-23. https://hesela.dev/terms/raid-write-hole/