Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Scrubbing · Ceph

Direct answer

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.

When to use this

Use it when configuring, checking or troubleshooting Scrubbing in Ceph.

First 30 seconds

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.

Operational verification

PG → compare replicas → report inconsistency

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and recovery traps

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.

Platform / version applicability
Ceph storage
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCeph storage
Scope / prerequisiteUse it when configuring, checking or troubleshooting Scrubbing in Ceph.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • Scrub ≠ backup.
  • Scrub ≠ recovery.
  • Scrub success ≠ every byte was deeply verified.
  • Detected inconsistency ≠ safe automatic repair in every case.
Key checks
  • ceph pg dump | awk '{print $1,$(NF-2)}' | head — last scrub stamps
  • ceph health detail | grep -i scrub — not scrubbed warnings
  • ceph 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCeph storage current

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%
Terminology layer

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.

Aliases that resolve here
ceph scrubpg scrubceph consistency scrub
Embedded reference data

Quick lookup tables

Ceph → Scrubbing Ceph map

Fast control-plane, placement, data-path and proof boundaries for Ceph → Scrubbing.

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 boundaryScrub 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
AcceptanceHealthy evidence: scheduled scrubs complete without errors and affected PGs remain consistent/available.Close only after original client operation plus redundancy/read-back verification
Confirmation

Confirm action

Continue?