Checksums
Cheat sheet · https://pcornel.dk/topic.php?topic=3961
Answer
A checksum is calculated when protected content is written and validated on read or scrub. Detection becomes self-healing only when the system also has another trusted copy from which it can reconstruct the damaged content.
Remember
- Checksum detection ≠ automatic repair.
- Checksum success ≠ authenticity against a malicious writer with metadata access.
- Metadata checksum ≠ data checksum unless both are protected.
- No checksum error ≠ every block has recently been read.
First checks
zpool status -v— checksum errorsbtrfs device stats <mount>— corruption countersGet-FileIntegrity <file>— ReFS integrity
Verify in this order
read → checksum verify → repair from redundancy
Where it usually breaks
First mismatch in media/provider → controller/pool → logical object → path/protocol → filesystem/share/object namespace → consumer workload; preserve identity/pre-state before mutation.
Filesystems → Checksums filesystem map
| Filesystem boundary | What to verify | Proof limit |
|---|---|---|
| Identity / attachment | Filesystem type, source/backing object, mount/attachment target and effective options | Presence or mount state alone does not prove consistency or lower-layer health |
| Capacity / metadata | Data space, metadata/inodes, quotas/reservations and filesystem state | Free bytes at one layer do not prove allocation can succeed end to end |
| Failure boundary | A matching checksum proves the read content matches the stored integrity value under that algorithm; it does not prove independent backup, freshness or that unvisited blocks are healthy. | Correlate filesystem evidence with the backing volume/path/backend before repair |
| Acceptance | Healthy evidence: checksums validate on representative reads/scrubs, error counters are stable and redundant repair sources are healthy where self-healing is expected. | Close only after the original path/workload and read-back check succeeds |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3961