Use this when you need to prove stored data has not silently changed, or when checksum or scrub errors appear.
Data Integrity
Data integrity means stored data stays exactly as written. Checksums, scrubbing, ECC memory and redundant copies detect and repair corruption from failing disks, firmware bugs or bit rot.
1. Data integrity: detect and correct corruption end to end.
2. Checksumming filesystems (ZFS, Btrfs, ReFS), scrubs, ECC RAM.
3. T10-PI/DIF on enterprise storage.
4. Investigate any checksum error.
5. Backups with verification.
write → checksum → storage → read verify → repair
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
- Hardware RAID only, with no end-to-end checksums.
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.
Subtopics
Go one level deeper into this subject.
A checksum is a short value computed from data (CRC32C, SHA-256, fletcher4) and stored with it.
Subtopic End-to-end ChecksummingEnd-to-end checksumming verifies data from the application or file system all the way to the disk and back, as in ZFS, Btrfs or T10 PI, so corruption anywhere on the path is detected.
Subtopic Silent Data CorruptionSilent data corruption is data that changes without any error being reported, from firmware bugs, misdirected writes, bad RAM or bit rot.
Subtopic Bit RotBit rot is gradual, silent corruption of stored data caused by media decay, magnetic or charge loss, or firmware faults.
Subtopic ScrubbingScrubbing is a scheduled background read of all data to verify checksums and repair bad blocks from redundant copies, for example zpool scrub, btrfs scrub or RAID consistency checks.
Subtopic Deep ScrubA deep scrub reads every stored copy of the data and compares full contents or checksums, not just metadata.
Subtopic ECC MemoryECC memory detects and corrects single-bit RAM errors. Storage servers, especially ZFS and Ceph nodes, use it so corruption in memory is not written to disk with a valid checksum.
Subtopic SMARTSMART data on a drive also serves data integrity: rising reallocated, pending or uncorrectable sector counts and CRC errors warn that the drive or cable is starting to corrupt or lose data.
Subtopic Data Integrity TroubleshootingTroubleshoot 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.
- Only checksumming storage can detect silent corruption.
- A repair needs a second good copy, such as a mirror or parity.
- Corruption copied into backups spreads to every backup generation.
zpool status -v— ZFS checksum errorsbtrfs device stats <mount>— Btrfsedac-util -v— memory errors (ECC)
ReferenceHow it works1 section · depth on demand
Reference
zpool scrub tank ; zpool status -v tank
btrfs scrub start /data
Get-FileIntegrity -FileName E:\file
ReferenceImportant terms & boundaries2 sections · depth on demand
How it works
Data integrity means data read back is exactly what was written. It is protected by checksums at several layers (drive ECC, transport CRCs, filesystem checksums) and by redundancy to repair errors that are found.
Reference
| Mechanism | Detects |
|---|---|
| Disk ECC | Media errors inside the drive |
| T10 PI / DIF | Corruption between HBA and disk |
| File system checksums (ZFS, Btrfs, ReFS) | Silent corruption end to end |
| Application checksums | Logical corruption |
| Scrubs | Latent errors |
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. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/209/final · confidence 94%