Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Checksums · Data Integrity

Direct 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.

When to use this

Use this when relying on checksums to detect corrupted data.

First 30 seconds

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.

Operational verification

data → checksum → verify on read

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Storage architecture and operations
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformStorage architecture and operations
Scope / prerequisiteUse this when relying on checksums to detect corrupted data.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • Checksums detect; redundancy repairs.
  • Strong checksums for integrity, CRC for transport.
  • Verify on read and during scrubs.
Key checks
  • zpool status -v — CKSUM column
  • sha256sum <file> — file checksum
  • btrfs scrub status <mount> — scrub results
ReferenceHow it works1 section · depth on demand

Reference

AlgorithmUse
CRC32CFast, network/storage protocols
Fletcher4ZFS default
SHA-256 / BLAKE3ZFS with dedup, strong integrity
xxhashBtrfs 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

PointDetail
offDisables integrity checking on user data; the documentation says this is not recommended
noparityAlso stops parity maintenance; for internal use by dump devices only
sha512, skein, edonr, blake3Need the matching pool feature enabled
ScopeChanging the property affects only newly written data
DedupThe 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

PatternLikely cause
CKSUM errors on one diskThat disk, its cable or its slot
CKSUM errors on several disks behind one HBAController, backplane or RAM
Errors repaired, No known data errorsRedundancy fixed it; still investigate the hardware
Permanent errors listed by -vDamage could not be repaired; restore those files

Illustrative example (not a system capture).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docStorage architecture and operations current

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%
Confirmation

Confirm action

Continue?