Use this when checksum or scrub errors appear and you must find the cause.
Data Integrity Troubleshooting
Troubleshoot data integrity by checking checksum and scrub errors (zpool status, btrfs scrub status, Ceph health), SMART and kernel I/O errors, then cables, controllers and RAM, and restore damaged files from a good copy.
1. Find where corruption comes from: disk, cable, controller, RAM, software.
2. Check all layers.
3. Restore damaged files from backup.
4. Replace faulty components.
5. Scrub after fixing.
corruption detected → source found → fixed → scrub clean
Context & applicabilityCommon mistakes · platform/version boundaries
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 Common mistakes Narrow the fault
- Replacing disks before checking RAM and controllers.
- Errors on one device point to that device or its path.
- Errors across devices suggest controller or RAM.
- Restore unrepairable files from backup.
zpool status -v— errors and damaged filesdmesg | grep -i -e csum -e 'I/O error'— kerneledac-util -v; smartctl -a— RAM and disks
ReferenceHow it works2 sections · depth on demand
How it works
Start by finding where corruption appears (one disk, one controller, many disks), read checksum/scrub results and SMART, check RAM (ECC events) and cabling, then restore damaged files from redundancy or backup.
Reference
| Symptom | Likely cause |
|---|---|
| Checksum errors on one disk | Disk or cable |
| Errors on many disks | Controller, RAM, backplane |
| Application-level corruption only | Application bug or bad writes |
ReferenceImportant terms & boundaries1 section · depth on demand
Reference
1. zpool status -v / btrfs device stats / scrub results.
2. SMART and dmesg for disk errors.
3. Memory errors (EDAC).
4. Restore affected files from a known good copy.
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 → Data Integrity Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/209/final · confidence 94%