Pcornel
Storage · Data Integrity

Deep Scrub

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

Back to the Topic

Answer

A deep scrub reads every stored copy of the data and compares full contents or checksums, not just metadata. In Ceph it finds bit-level inconsistencies between replicas that a light scrub misses.

Remember

  • Deep scrub reads all data; light scrub checks metadata.
  • It is I/O heavy; schedule off-peak.
  • In Ceph it finds replica inconsistencies.

First checks

  • ceph pg deep-scrub <pgid> — Ceph deep scrub
  • zpool scrub <pool> — ZFS full scrub
  • array consistency check — controller

Commands

ceph pg repair
ceph config get osd <option>
ceph pg repair <pg>

Verify in this order

data read → compare/verify → report

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

Confirmation

Confirm action

Continue?