Pcornel
Storage · Data Integrity

Bit Rot

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

Back to the Topic

Answer

Bit rot is gradual, silent corruption of stored data caused by media decay, magnetic or charge loss, or firmware faults. Only checksums and periodic scrubbing detect it before the bad data is read or backed up.

Remember

  • Bit rot gives no error when read.
  • Checksums plus scrubs detect it.
  • Backups can copy corrupted data.

First checks

  • zpool scrub <pool> — scrub
  • btrfs scrub start <mount> — scrub
  • smartctl -a — media errors

Verify in this order

stored data decays → scrub detects → 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=4314

Confirmation

Confirm action

Continue?