Pcornel
Storage · Ceph

Deep Scrub

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

Back to the Topic

Answer

Deep scrub increases device I/O and can reveal latent media or replica inconsistency not detected by metadata-oriented checks. Scheduling and workload impact matter in large or busy clusters.

Remember

  • Deep scrub ≠ backup restore test.
  • Deep scrub ≠ zero performance impact.
  • Checksum mismatch ≠ root cause identified.
  • Repair command ≠ guaranteed correct authoritative copy.

First checks

  • ceph pg deep-scrub <pgid> — deep scrub one PG
  • rados list-inconsistent-obj <pgid> --format=json-pretty — inconsistent objects
  • ceph health detail | grep inconsistent — inconsistent PGs

Verify in this order

PG data read → checksum compare → errors reported

Where it usually breaks

First mismatch in member media → metadata/layout → allocation/placement → redundancy/recovery → logical object → consumer; preserve identity/pre-state before mutation.

Ceph → Deep Scrub Ceph map

Ceph boundaryWhat to verifyProof limit
Control / placementMON/map/auth, pool, PG and CRUSH context for the exact workloadCluster visibility or one healthy daemon does not prove the data path
Data / redundancyActing OSD set, device/network state, capacity and replica/EC availabilityUp/in or active state alone does not prove clean redundancy or integrity
Failure boundaryDeep scrub provides stronger object-data consistency evidence than regular scrub but does not prove backup recoverability or identify causation alone.Correlate Ceph, host, device and network evidence in the same time window
AcceptanceHealthy evidence: deep scrubs complete in expected windows without inconsistencies and device/OSD counters remain normal.Close only after original client operation plus redundancy/read-back verification

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

Confirmation

Confirm action

Continue?