Pcornel
Storage · Ceph

Placement Groups

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

Back to the Topic

Answer

An object hashes into one PG; CRUSH maps that PG to an acting set of OSDs. PG peering determines authoritative history and active state, while recovery/backfill restores intended redundancy when mappings or availability change.

Remember

  • PG ≠ pool.
  • PG count ≠ replica count.
  • PG active ≠ PG clean.
  • One PG state ≠ whole-cluster state.

First checks

  • ceph pg stat — PG summary
  • ceph osd pool autoscale-status — recommended pg_num
  • ceph pg dump pgs_brief | head — PG to OSD mapping

Commands

ceph pg dump pgs_brief
Per-PG brief state/up/acting mapping.
ceph pg <pgid> query
Detailed state/history for one PG.
ceph pg stat
Compact placement-group state summary.
ceph osd df
ceph -s

Verify in this order

object hash → PG → acting set

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 → Placement Groups 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 boundaryPG state proves distributed state for that placement group at that time; it does not prove every object/application or unrelated PG is healthy.Correlate Ceph, host, device and network evidence in the same time window
AcceptanceHealthy evidence: required PGs are active with intended clean/redundant state and acting sets align with CRUSH policy.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=4042

Confirmation

Confirm action

Continue?