Parity
Cheat sheet · https://pcornel.dk/topic.php?topic=3916
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 levelecho check > /sys/block/md0/md/sync_action— parity checkcat /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 boundary | What to verify | Proof limit |
|---|---|---|
| Layout / topology | RAID level, member grouping, effective member size and stripe/mirror/parity structure | The label alone does not prove current member health or exact failure tolerance |
| Protection state | Array state, members, spares, cache protection and active rebuild/consistency work | Optimal/online state does not prove backup or application integrity |
| Failure boundary | Valid 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 |
| Acceptance | Healthy 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