Recovery
Cheat sheet · https://pcornel.dk/topic.php?topic=4050
Answer
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.
Remember
- Recovery ≠ backfill in every context.
- Recovery progress ≠ client performance acceptable.
- Slower recovery ≠ safer automatically.
- active+clean after recovery ≠ application integrity proof.
First checks
ceph -s— recovery progressceph osd pool stats— recovery rates per poolceph config get osd osd_recovery_max_active— recovery throttle
Verify in this order
failure → degraded PGs → recovery → clean
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 → Recovery 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 | 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4050