Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Data Corruption

Direct answer

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.

When to use this

Use it when the symptom is “Data Corruption”: work through the layers in order and stop at the first one that fails.

First 30 seconds

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.

Operational verification

corruption → affected data → restore → fix source

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and recovery traps

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.

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 · Linux / coreutils
Key commandsha256sum -c checksums.txt
Scope / prerequisiteUse it when the symptom is “Data Corruption”: work through the layers in order and stop at the first one that fails.
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Storage command reference

Primary Commands

Configuration and operational commands for this Topic.

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 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 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
  • 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.
Key checks
  • zpool status -v / btrfs device stats — checksum errors
  • dmesg | grep -i -e corrupt -e csum — kernel
  • sha256sum 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

EvidenceLayer
ZFS/Btrfs/Ceph checksum errorsBelow the file system: disk, controller, cable, RAM
Same file bad on several copiesWritten corrupt (application bug, bad RAM before checksum)
No checksum errors, file content wrongApplication or user error
md RAID mismatch_cnt > 0Copies 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).

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

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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 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%
Terminology layer

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.

Aliases that resolve here
data corruptionstorage corruptionsilent data corruptionchecksum mismatch troubleshooting
Embedded reference data

Quick lookup tables

Storage Troubleshooting → Data Corruption proof map

Fast scope, dependency, failure-boundary and acceptance checks for Storage Troubleshooting → Data Corruption.

Troubleshooting boundaryWhat to verifyProof limit
Scope / identityExact workload, object/device identity, affected hosts and incident windowSymptom naming alone is not root-cause proof
Dependency pathExpected application data → file/object/block validation → filesystem → volume/pool → checksum/redundancy → controller/path → media → independent recovery copy → read-backHealthy adjacent layers do not prove end-to-end health
Failure boundaryA 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
AcceptanceHealthy 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
Confirmation

Confirm action

Continue?