Use it when configuring, checking or troubleshooting Recovery in Ceph.
Recovery
When a PG identifies missing objects/shards, OSDs transfer required data from authoritative peers to destinations. Recovery competes with client I/O for device, CPU and network resources and should be evaluated against redundancy risk and service objectives.
1. Recovery restores missing object copies after failures.
2. Uses log-based recovery when possible.
3. Competes with client I/O — tune throttles.
4. Don't take more OSDs down during recovery.
5. Wait for HEALTH_OK.
failure → degraded PGs → recovery → clean
Context & applicabilityCommon mistakes · platform/version boundaries
Recovery counters show data movement, not that the root failure is fixed, sufficient redundancy has returned everywhere or client SLOs are met.
Suspicious evidence: recovery stalls, repeats after flapping OSDs, saturates network/media, is blocked by full ratios or leaves PGs degraded/inactive.
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
failure/state change → PG identifies missing/stale content → authoritative source OSD → recovery transfer → target shard/replica → PG clean
Healthy evidence: recovery makes steady progress, source/destination paths are healthy, PG redundancy returns and workload impact remains within accepted bounds.
Step 2 Where it fails Narrow the fault
Recovery should repair the earliest failing step and retain a reversible path. Avoid widening permissions, clearing metadata, forcing imports/assemblies, removing members or destroying snapshots solely to make status green. Those actions can erase the evidence or the only good copy.
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.
- Recovery ≠ backfill in every context.
- Recovery progress ≠ client performance acceptable.
- Slower recovery ≠ safer automatically.
- active+clean after recovery ≠ application integrity proof.
ceph -s— recovery progressceph osd pool stats— recovery rates per poolceph config get osd osd_recovery_max_active— recovery throttle
ReferenceWhy it matters1 section · depth on demand
How it works in operation
Recovery/backfill can preserve availability while changing latency and redundancy margin, and a healthy PG state does not show the client path or filesystem layer.
ReferenceHow it works1 section · depth on demand
How it works
How it works: Ceph maps client objects through pool/PG and CRUSH placement to acting OSDs; monitors provide cluster maps and managers expose telemetry. Recovery/backfill can preserve availability while changing latency and redundancy margin, and a healthy PG state does not show the client path or filesystem layer.
ReferenceImportant terms & boundaries2 sections · depth on demand
Placement and what the checks show
Recovery counters show data movement, not that the root failure is fixed, sufficient redundancy has returned everywhere or client SLOs are met.
Recovery/backfill can preserve availability while changing latency and redundancy margin, and a healthy PG state does not show the client path or filesystem layer.
In depth
Ceph recovery is the process where OSDs restore the configured number of copies after an OSD, host or disk fails or returns. Ceph first marks a failed OSD down, then out after a timeout (default 10 minutes), and then re-replicates its placement groups to other OSDs. Backfill moves data when the CRUSH map changes, for example when OSDs are added.
| PG state | Meaning |
|---|---|
| degraded | Fewer copies than configured |
| recovering | Copying changed objects to returning OSDs |
| backfilling | Moving whole PGs to new locations |
| undersized | Fewer OSDs in the acting set than pool size |
Recovery competes with client I/O; options like osd_mclock_profile (high_client_ops vs high_recovery_ops) balance the two. During planned maintenance, set noout so Ceph does not start unnecessary rebalancing.
ceph osd set noout # before maintenance
ceph -w
ceph pg stat
ceph osd unset noout
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 → Recovery. 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 → Recovery Ceph map
Fast control-plane, placement, data-path and proof boundaries for Ceph → Recovery.
| 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 | Recovery counters prove data movement, not that the root failure is fixed, sufficient redundancy has returned everywhere or client SLOs are met. | Correlate Ceph, host, device and network evidence in the same time window |
| Acceptance | Healthy evidence: recovery makes steady progress, source/destination paths are healthy, PG redundancy returns and workload impact remains within accepted bounds. | Close only after original client operation plus redundancy/read-back verification |