Pcornel
Storage · RAID

Parity

Cheat sheet · https://pcornel.dk/topic.php?topic=3916

Back to the Topic

Answer

Parity RAID spreads data and parity across a stripe. Small writes may require read-modify-write or reconstruct-write work, while full-stripe writes can reduce that overhead. Single- and dual-parity layouts differ in how many member failures per protected stripe/group they can tolerate.

Remember

  • Parity ≠ checksum-based end-to-end integrity.
  • Parity protection ≠ backup.
  • Parity write penalty is workload- and implementation-dependent rather than one fixed universal number.
  • A parity-consistent stripe ≠ proof that the stored logical data is semantically correct.

First checks

  • mdadm --detail /dev/md0 | grep -i level — RAID level
  • echo check > /sys/block/md0/md/sync_action — parity check
  • cat /sys/block/md0/md/mismatch_cnt — mismatches

Verify in this order

data → parity computed → stored across disks

Where it usually breaks

First mismatch in member media → metadata/layout → allocation/placement → redundancy/recovery → logical object → consumer; preserve identity/pre-state before mutation.

RAID → Parity RAID map

RAID boundaryWhat to verifyProof limit
Layout / topologyRAID level, member grouping, effective member size and stripe/mirror/parity structureThe label alone does not prove current member health or exact failure tolerance
Protection stateArray state, members, spares, cache protection and active rebuild/consistency workOptimal/online state does not prove backup or application integrity
Failure boundaryValid parity can reconstruct missing data within the layout's tolerance; it does not provide an independent historical copy or automatically detect every corruption source.Failure tolerance must be evaluated against the exact layout and failure pattern
AcceptanceHealthy evidence: parity state is consistent, all required members are healthy, no uncorrectable read errors occur and degraded reconstruction behaves as designed.Close only after the original workload/data check succeeds

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3916

Confirmation

Confirm action

Continue?