Storage · Data Integrity
Checksums
Cheat sheet · https://pcornel.dk/topic.php?topic=4311
Answer
A checksum is a short value computed from data (CRC32C, SHA-256, fletcher4) and stored with it. Recomputing it on read reveals corruption, and a redundant copy can then be used to repair the block.
Remember
- Checksums detect; redundancy repairs.
- Strong checksums for integrity, CRC for transport.
- Verify on read and during scrubs.
First checks
zpool status -v— CKSUM columnsha256sum <file>— file checksumbtrfs scrub status <mount>— scrub results
Verify in this order
data → checksum → verify on read
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.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4311