Pcornel
Storage · Filesystems

Checksums

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

Back to the Topic

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 errors
  • btrfs device stats <mount> — corruption counters
  • Get-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 boundaryWhat to verifyProof limit
Identity / attachmentFilesystem type, source/backing object, mount/attachment target and effective optionsPresence or mount state alone does not prove consistency or lower-layer health
Capacity / metadataData space, metadata/inodes, quotas/reservations and filesystem stateFree bytes at one layer do not prove allocation can succeed end to end
Failure boundaryA 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?