Pcornel
Storage · Ceph

Recovery

Cheat sheet · https://pcornel.dk/topic.php?topic=4050

Back to the Topic

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 progress
  • ceph osd pool stats — recovery rates per pool
  • ceph 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 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 boundaryRecovery 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?