Pcornel
Storage · Data Integrity

Data Integrity Troubleshooting

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

Back to the Topic

Answer

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.

Remember

  • Errors on one device point to that device or its path.
  • Errors across devices suggest controller or RAM.
  • Restore unrepairable files from backup.

First checks

  • zpool status -v — errors and damaged files
  • dmesg | grep -i -e csum -e 'I/O error' — kernel
  • edac-util -v; smartctl -a — RAM and disks

Commands

sha256sum -c checksums.txt
Operational command for Verify file checksums against a manifest. Focus fields: file path and OK/FAILED checksum result.
zpool status -v

Verify in this order

corruption detected → source found → fixed → scrub clean

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=4319

Confirmation

Confirm action

Continue?