Pcornel
Storage

Data Integrity

Cheat sheet · https://pcornel.dk/topic.php?topic=4310

Back to the Topic

Answer

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.

Remember

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

First checks

  • zpool status -v — ZFS checksum errors
  • btrfs device stats <mount> — Btrfs
  • edac-util -v — memory errors (ECC)

Verify in this order

write → checksum → storage → read verify → repair

Where it usually breaks

First mismatch in media/provider → controller/pool → logical object → path/protocol → filesystem/share/object namespace → consumer workload; preserve identity/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4310

Confirmation

Confirm action

Continue?