Storage · Ceph
Deep Scrub
Cheat sheet · https://pcornel.dk/topic.php?topic=4054
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 PGrados list-inconsistent-obj <pgid> --format=json-pretty— inconsistent objectsceph 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 boundary | What to verify | Proof limit |
|---|---|---|
| Control / placement | MON/map/auth, pool, PG and CRUSH context for the exact workload | Cluster visibility or one healthy daemon does not prove the data path |
| Data / redundancy | Acting OSD set, device/network state, capacity and replica/EC availability | Up/in or active state alone does not prove clean redundancy or integrity |
| Failure boundary | Deep 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 |
| Acceptance | Healthy 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