Parity pollution
Parity pollution is propagation of incorrect data into redundancy information through parity calculations.
Pollution occurs when a parity update uses wrong data, including a stale block after a lost write. Data and parity can then agree, while the original content is no longer reconstructable from the remaining stripe. [1]
In the FAST 2008 model, a checksum in a parent block is available on user reads but not on the modeled maintenance reads. A scrub or additive parity update can therefore consume unchecked data; a later user read detects corruption after usable redundancy has been lost. This is a check-path assumption, not an inherent defect of every parent-checksum design. [1]
For four data disks and one parity disk, Table 3 estimates 0.486% detectable loss with parental checksums and scrubs versus 0.153% without scrubs, about 3.2 times by division. The weighting uses first encounters with an erroneous stripe: 20% reads, 20% writes and 60% scrubs, with partial-stripe write widths equally likely. This is not a measured fleet rate or advice to disable scrubbing. [1]
A pure redundancy check cannot expose a polluted stripe that already agrees. Linux md check compares redundancy and may also repair for some RAID levels; repair explicitly requests checking and repair. mismatch_cnt counts sectors rewritten or that would be rewritten, not necessarily distinct corrupt sectors. [1] [3]
Relations
- related
- Lost write, Misdirected write, Data scrubbing, RAID 5, Parity inconsistency, RAID consistency check, Version mirroring
Advantages
- In the model, checking stored physical identity detects misdirection, not lost writes; comparing versions mirrored in parity supplies a separate freshness check and still requires identity validation. [1]
Limitations
- mismatch_cnt can exceed the number of actual errors by the number of sectors in a page, because most RAID levels work in pages. [3]
- The model injects a single error and excludes checksum collisions. Its probability estimates add historical error rates and workload assumptions; they do not quantify the benefit of scrubbing against multiple errors. [1]
Citations
- Krioukov et al. Parity Lost and Parity Regained. FAST 2008, sections 3-5.
- Linux kernel documentation. RAID arrays (md): sync_action and mismatch_cnt. Documentation/admin-guide/md.rst, v6.16
Further reading
Sources & caveats
- parity is the FAST 2008 paper by Krioukov, Bairavasundaram, Goodson, Srinivasan, Thelen, Arpaci-Dusseau and Arpaci-Dusseau (University of Wisconsin-Madison, NetApp), read in sections 3 to 5.
- md is the Linux kernel md documentation at tag v6.16, read in the sync_action and mismatch_count entries.
- Section 5 and Table 3 supply the two approximate loss estimates and first-encounter weights. This source review does not reproduce the model checker or measure an array.
- The combined version-mirroring, identity, block-checksum and RAID scheme removed all failure paths in the single injected error model, not under arbitrary faults. [1]