Pcornel
Storage · Ceph

PG States

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

Back to the Topic

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 summary
  • ceph pg dump_stuck unclean — stuck PGs
  • ceph pg <pgid> query — state detail

Commands

ceph -s
ceph 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 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 boundaryA 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?