Use it when the symptom is “Data Corruption”: work through the layers in order and stop at the first one that fails.
Data Corruption
Trace expected data semantics → file/object/block checksum or known-good value → filesystem → logical volume/object layer → redundancy/checksum layer → path/controller → media → independent backup/recovery point.
1. Data corruption: identify affected data and source.
2. Restore from backup.
3. Replace faulty hardware (disk, RAM, cable).
4. Scrub.
5. Review integrity protections.
corruption → affected data → restore → fix source
Context & applicabilityCommon mistakes · platform/version boundaries
A checksum or application validation failure shows data differs from the expected value at that point; it does not by itself establish where or when corruption originated.
Suspicious evidence includes checksum mismatches, uncorrectable reads, repeated corruption on the same device/path, inconsistent replicas or restored data differing from application expectations.
Operational reference
Fast context before you go deeper.
sha256sum -c checksums.txtPrimary Commands
Configuration and operational commands for this Topic.
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 Verification path Verify boundary
Expected application data → file/object/block validation → filesystem → volume/pool → checksum/redundancy → controller/path → media → independent recovery copy → read-back
Healthy evidence shows data matching the trusted expected value after recovery, stable lower-layer integrity checks and no recurring corruption under controlled writes/reads.
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.
- Unreadable data ≠ corruption automatically; permissions, path and availability can mimic it.
- Checksum mismatch proves content differs from expected at that checksum boundary, not the original cause.
- Redundancy ≠ guaranteed repair if all copies share the same corruption.
- Repairing metadata ≠ restoring correct application data.
zpool status -v / btrfs device stats— checksum errorsdmesg | grep -i -e corrupt -e csum— kernelsha256sum against known good— verify files
ReferenceImportant terms & boundaries3 sections · depth on demand
Scope and what the checks show
A checksum or application validation failure shows data differs from the expected value at that point; it does not by itself establish where or when corruption originated.
In depth
First prove corruption, then find the layer, then restore
Symptoms such as applications reporting bad data, archives that fail to extract or databases reporting page errors can come from the application, the file system or the hardware. Checksumming storage tells you which.
# zpool status -v tank
errors: Permanent errors have been detected in the following files:
/tank/data/projects/2026/model.bin
# zpool scrub -e tank # re-scrub only files with known errors (head_errlog feature)
# journalctl -k | grep -iE 'I/O error|checksum|ata[0-9]|nvme'
# smartctl -a /dev/sdc
zpool-scrub(8) documents -e. It scrubs only the files with known errors listed by zpool status -v, provided the pool has the head_errlog feature and has been scrubbed at least once.
Locate the layer
| Evidence | Layer |
|---|---|
| ZFS/Btrfs/Ceph checksum errors | Below the file system: disk, controller, cable, RAM |
| Same file bad on several copies | Written corrupt (application bug, bad RAM before checksum) |
| No checksum errors, file content wrong | Application or user error |
md RAID mismatch_cnt > 0 | Copies disagree, but md cannot tell which is correct |
Recovery
1. Stop writes to affected data if possible.
2. Fix the hardware cause first: replace the disk, reseat or replace the cable, test RAM with memtest86+.
3. With redundancy: scrub so good copies repair bad ones.
4. Without a good copy: restore the listed files from backup and verify by hash.
5. Scrub again and confirm No known data errors.
Keep backups long enough to reach before the corruption started. Silent corruption is often found weeks after it happened.
Illustrative example (not a system capture).
Method
Data corruption (wrong data returned without I/O errors) investigation:
1. Scope: one file, one volume, one host, or many? Same time window?
2. Detecting layer: application checksum (database page errors), filesystem checksum (ZFS/Btrfs/ReFS), array scrub, backup verification.
3. Path: RAM (ECC events), CPU, HBA/NIC firmware, cables (CRC counters), array controller, disk.
4. Contain: stop writes, keep the corrupted copy for analysis, restore from the last verified-good backup or snapshot.
zpool status -v # files with permanent errors
ras-mc-ctl --errors # memory errors (rasdaemon)
DBCC CHECKDB WITH NO_INFOMSGS # SQL Server example
Without end-to-end checksums, corruption can propagate into backups unnoticed — keep long retention and verify restores.
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 Storage Troubleshooting → Data Corruption. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/block/index.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Storage Troubleshooting → Data Corruption proof map
Fast scope, dependency, failure-boundary and acceptance checks for Storage Troubleshooting → Data Corruption.
| Troubleshooting boundary | What to verify | Proof limit |
|---|---|---|
| Scope / identity | Exact workload, object/device identity, affected hosts and incident window | Symptom naming alone is not root-cause proof |
| Dependency path | Expected application data → file/object/block validation → filesystem → volume/pool → checksum/redundancy → controller/path → media → independent recovery copy → read-back | Healthy adjacent layers do not prove end-to-end health |
| Failure boundary | A checksum or application validation failure proves data differs from the expected value at that point; it does not by itself establish where or when corruption originated. | Correlate evidence for the same operation and timestamps |
| Acceptance | Healthy evidence shows data matching the trusted expected value after recovery, stable lower-layer integrity checks and no recurring corruption under controlled writes/reads. | Close only after the original workload/recovery test and regression check |