Use it when configuring, checking or troubleshooting Scrubbing in Ceph.
Scrubbing · Ceph
OSDs schedule PG scrubs and compare metadata/attributes and selected consistency information among copies. A scrub can expose latent inconsistency even while a PG remains available to clients.
1. Scrubbing compares object metadata across replicas.
2. Light scrub daily, deep scrub weekly by default.
3. Inconsistent PGs need repair investigation.
4. Schedule scrubs off-peak.
5. Don't disable scrubbing permanently.
PG → compare replicas → report inconsistency
Context & applicabilityCommon mistakes · platform/version boundaries
Scrub shows consistency checks within its scope; it does not replace deep data verification, backup or application-level integrity testing.
Suspicious evidence: scrub errors, active+clean+inconsistent, repeated mismatches on one OSD/device, long overdue scrub or repair requested before source evidence is understood.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
scheduled/manual PG scrub → compare replicas/shards metadata/integrity → inconsistency result → diagnosis/repair → re-scrub verification
Healthy evidence: scheduled scrubs complete without errors and affected PGs remain consistent/available.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Scrub ≠ backup.
- Scrub ≠ recovery.
- Scrub success ≠ every byte was deeply verified.
- Detected inconsistency ≠ safe automatic repair in every case.
ceph pg dump | awk '{print $1,$(NF-2)}' | head— last scrub stampsceph health detail | grep -i scrub— not scrubbed warningsceph config get osd osd_scrub_begin_hour— scrub window
ReferenceImportant terms & boundaries2 sections · depth on demand
Placement and what the checks show
Scrub shows consistency checks within its scope; it does not replace deep data verification, backup or application-level integrity testing.
Scrubbing owns regular PG consistency checks; Deep Scrub owns deeper data checksum verification; Ceph Troubleshooting owns root-cause workflow.
In depth
Light scrubbing compares object metadata (sizes, attributes) between the replicas of a PG, by default about daily per PG. It catches metadata mismatches cheaply but does not read object data.
ceph pg scrub 2.1f
ceph config get osd osd_scrub_begin_hour
ceph config set osd osd_scrub_begin_hour 22; ceph config set osd osd_scrub_end_hour 6
PG_NOT_SCRUBBED warnings mean scrubs are falling behind — usually because the scrub window is too short or the cluster is busy with recovery.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Ceph → Scrubbing. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.ceph.com/en/latest/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Ceph → Scrubbing Ceph map
Fast control-plane, placement, data-path and proof boundaries for Ceph → Scrubbing.
| 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 | Scrub proves consistency checks within its scope; it does not replace deep data verification, backup or application-level integrity testing. | Correlate Ceph, host, device and network evidence in the same time window |
| Acceptance | Healthy evidence: scheduled scrubs complete without errors and affected PGs remain consistent/available. | Close only after original client operation plus redundancy/read-back verification |