Use this when relying on checksums to detect corrupted data.
Checksums · Data Integrity
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.
1. Checksums detect corruption.
2. Block-level (ZFS/Btrfs), file-level (sha256), transport (CRC).
3. Need redundancy to repair.
4. Verify backups with checksums.
5. Store checksums separately.
data → checksum → verify on read
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Checksums without redundancy (detection but no repair).
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Checksums detect; redundancy repairs.
- Strong checksums for integrity, CRC for transport.
- Verify on read and during scrubs.
zpool status -v— CKSUM columnsha256sum <file>— file checksumbtrfs scrub status <mount>— scrub results
ReferenceHow it works1 section · depth on demand
Reference
| Algorithm | Use |
|---|---|
| CRC32C | Fast, network/storage protocols |
| Fletcher4 | ZFS default |
| SHA-256 / BLAKE3 | ZFS with dedup, strong integrity |
| xxhash | Btrfs option |
ReferenceImportant terms & boundaries3 sections · depth on demand
In depth
Checksums detect corruption; redundancy repairs it
zfsprops(7) describes the checksum property as the algorithm used to verify data integrity. The values are on, off, fletcher2, fletcher4, sha256, noparity, sha512, skein, edonr and blake3. on lets ZFS choose, currently fletcher4.
# zfs get checksum,dedup tank/data
NAME PROPERTY VALUE SOURCE
tank/data checksum on default
tank/data dedup off default
# zfs set checksum=sha256 tank/secure
# zpool status -v tank | grep -A3 CKSUM
Documented points
| Point | Detail |
|---|---|
off | Disables integrity checking on user data; the documentation says this is not recommended |
noparity | Also stops parity maintenance; for internal use by dump devices only |
| sha512, skein, edonr, blake3 | Need the matching pool feature enabled |
| Scope | Changing the property affects only newly written data |
| Dedup | The dedup checksum (default sha256) overrides this property |
Where checksums sit
ZFS stores each block's checksum in the parent block pointer, not next to the data. A block that returns wrong data, or is written to the wrong place, therefore fails verification. Per-sector disk ECC alone cannot catch that.
Reading CKSUM errors
| Pattern | Likely cause |
|---|---|
| CKSUM errors on one disk | That disk, its cable or its slot |
| CKSUM errors on several disks behind one HBA | Controller, backplane or RAM |
Errors repaired, No known data errors | Redundancy fixed it; still investigate the hardware |
Permanent errors listed by -v | Damage could not be repaired; restore those files |
Illustrative example (not a system capture).
How it works
A checksum is computed when data is written and stored separately; on read it is recomputed and compared. A mismatch reveals corruption, and with redundancy the system can read a good copy instead.
Reference
Checksums (CRC32C, Fletcher4, SHA-256, BLAKE3) let the system detect changed data. With redundancy (mirror/RAID-Z/replicas) the bad copy is repaired automatically.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Data Integrity → Checksums. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/209/final · confidence 94%