Use it when configuring, checking or troubleshooting PG States in Ceph.
PG States
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.
1. States: active+clean (good); degraded (missing copies); undersized; peering; backfilling/recovering; incomplete/down (bad).
2. Degraded during recovery is normal.
3. Inactive/incomplete stops I/O — urgent.
4. Query the PG to see blocking OSDs.
5. Don't mark OSDs lost without understanding.
PG peering → active → recovery → clean
Context & applicabilityCommon mistakes · platform/version boundaries
A PG label describes state, not root cause; the same label can arise from OSD, network, capacity, CRUSH or history conditions.
Suspicious evidence: inactive, stale, incomplete, prolonged peering, degraded/undersized without progress, inconsistent or recovery states that stop changing.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
cluster event → PG peering/state labels → availability/redundancy/consistency interpretation → OSD/failure-domain evidence → recovery progress
Healthy evidence: client-relevant PGs are active and, after expected maintenance/recovery, converge to the intended clean/consistent state.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- active ≠ clean.
- degraded ≠ inactive.
- undersized ≠ necessarily unavailable.
- active+clean+inconsistent ≠ healthy data consistency.
ceph pg stat— states summaryceph pg dump_stuck unclean— stuck PGsceph pg <pgid> query— state detail
ReferenceImportant terms & boundaries3 sections · depth on demand
Placement and what the checks show
A PG label describes state, not root cause; the same label can arise from OSD, network, capacity, CRUSH or history conditions.
In depth
active+clean is the goal; every other state tells you what Ceph is doing
# ceph pg stat
512 pgs: 498 active+clean, 10 active+undersized+degraded, 4 peering; 2.1 TiB data
# ceph pg dump_stuck inactive
States from the Ceph documentation
| State | Meaning |
|---|---|
| active | The PG is processing client requests |
| clean | Every object has the full number of replicas |
| peering | The OSDs holding the PG are agreeing on its state |
| degraded | Some objects have fewer replicas than they should |
| undersized | Fewer copies than the pool's replication level |
| recovering | Objects are being synchronised |
| backfilling | The whole PG is being rescanned and copied |
| backfill_toofull | Backfill waits because the target OSD is above its backfillfull ratio |
| remapped | Temporarily served by OSDs other than CRUSH's choice |
| stale | Monitors have not received updates for the PG |
| inconsistent | Replicas disagree or are damaged |
| incomplete | Lacks write history or healthy copies |
| down | A replica with needed data is offline |
Which states need action
| Combination | Typical cause | Action |
|---|---|---|
active+undersized+degraded | An OSD is down | Recovery runs when it returns or is marked out |
active+remapped+backfilling | CRUSH change, new OSD | Wait; watch ceph -s |
backfill_toofull | OSDs nearly full | Add capacity, rebalance |
stale | All OSDs of the PG down | Start the OSDs |
peering stuck, down, incomplete | Needed OSD offline | ceph pg <pgid> query → peering_blocked_by |
inconsistent | Scrub found differing copies | See the PG troubleshooting guide before repairing |
Clients can still read and write while PGs are active; inactive PGs block I/O to their objects.
*The placement-group counts illustrate a mixture of clean, degraded and peering states rather than a live cluster report.*
PG states
| PG state | Meaning |
|---|---|
| active+clean | Serving I/O, all replicas consistent |
| degraded | Fewer copies than size exist |
| undersized | Fewer OSDs in the acting set than size |
| peering | OSDs agreeing on PG state; I/O blocked briefly |
| recovering / backfilling | Copying data to restore redundancy or rebalance |
| remapped | Data temporarily served from other OSDs than CRUSH wants |
| inconsistent | Scrub found replicas that differ |
| incomplete / down | Not enough OSDs with authoritative data — I/O blocked |
| stale | Primary OSD has not reported to the MONs |
ceph pg stat
ceph pg dump_stuck unclean
ceph pg 2.1f query | less
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Ceph → PG States. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.ceph.com/en/latest/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Ceph → PG States Ceph map
Fast control-plane, placement, data-path and proof boundaries for Ceph → PG States.
| 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 |