PG States
Cheat sheet · https://pcornel.dk/topic.php?topic=4043
Answer
A PG can carry multiple state words simultaneously. Interpret availability (active/inactive), redundancy (clean/degraded/undersized), mapping (remapped) and background work (recovering/backfilling/scrubbing) as separate dimensions.
Remember
- active ≠ clean.
- degraded ≠ inactive.
- undersized ≠ necessarily unavailable.
- active+clean+inconsistent ≠ healthy data consistency.
First checks
ceph pg stat— states summaryceph pg dump_stuck unclean— stuck PGsceph pg <pgid> query— state detail
Commands
ceph -sceph pg <pgid> query
Verify in this order
PG peering → active → 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 → PG States 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 | A PG label describes state, not root cause; the same label can arise from OSD, network, capacity, CRUSH or history conditions. | Correlate Ceph, host, device and network evidence in the same time window |
| Acceptance | Healthy evidence: client-relevant PGs are active and, after expected maintenance/recovery, converge to the intended clean/consistent state. | 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=4043