Use it when configuring, checking or troubleshooting HEALTH_ERR in Ceph.
HEALTH_ERR
Critical checks can include unavailable/incomplete PGs, severe capacity conditions, monitor/quorum issues or other states that require preserving evidence and prioritizing data availability over cosmetic cleanup.
1. HEALTH_ERR: data unavailable or at risk (inactive PGs, full OSDs, damaged objects).
2. Stop non-essential writes.
3. Fix full OSDs by adding capacity or adjusting ratios temporarily.
4. Bring down OSDs back if possible.
5. Get expert help before destructive actions.
error → data at risk → urgent recovery
Context & applicabilityCommon mistakes · platform/version boundaries
HEALTH_ERR shows Ceph detected a critical condition, not that a particular repair is safe or that data is irretrievably lost.
Suspicious evidence: forced marking or PG repair without preserved evidence, full OSDs, incomplete/inactive PGs, quorum loss or health summary improved while data remains inaccessible.
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
critical component condition → named health error → HEALTH_ERR aggregate → availability/integrity triage → evidence-preserving recovery → workload/read-back
Healthy evidence: critical checks are resolved through explained remediation, affected PGs/data are available with intended redundancy and application read-back succeeds.
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.
- HEALTH_ERR ≠ proof of data loss.
- HEALTH_ERR ≠ permission to force PG/OSD state.
- Client outage ≠ every pool unavailable.
- Health clear after force operation ≠ integrity proof.
ceph health detail— errorsceph pg dump_stuck inactive— inactive PGsceph osd df | sort -k17 -n | tail— full OSDs
ReferenceImportant terms & boundaries3 sections · depth on demand
Placement and what the checks show
HEALTH_ERR shows Ceph detected a critical condition, not that a particular repair is safe or that data is irretrievably lost.
HEALTH_ERR owns critical-state interpretation; Ceph Troubleshooting owns staged triage; Backup/DR owns independent recovery when data cannot be reconstructed safely.
In depth
Inconsistent PGs: find out what is wrong before repairing
The commonest integrity-related HEALTH_ERR is a scrub error that leaves a PG inconsistent. The Ceph PG troubleshooting guide gives this sequence.
# ceph health detail | grep inconsistent
pg 2.1f is active+clean+inconsistent, acting [7,3,11]
# rados list-inconsistent-obj 2.1f --format=json-pretty
{
"inconsistents": [
{ "object": { "name": "rbd_data.1a2b3c.0000000000000412" },
"errors": [], "union_shard_errors": ["read_error"],
"shards": [ { "osd": 7, "errors": ["read_error"] }, { "osd": 3, "errors": [] }, { "osd": 11, "errors": [] } ] }
]
}
What the guide says
| Point | Detail |
|---|---|
| No scrub information returned | Run ceph pg deep-scrub <pgid> first, then list again |
read_error on one shard | Usually a failing drive — check dmesg and smartctl, consider replacing the OSD |
ceph pg repair <pgid> | Deep scrub, choose an authoritative copy, recover the others |
| Mismatch with no shard error | Repair keeps the primary's copy, which may be the damaged one |
| No authoritative copy | Object stays unrepaired; PG shows failed_repair |
Stuck and unfound
ceph pg dump_stuck stale|inactive|uncleanlists stuck PGs.ceph pg <pgid> query→recovery_stateshows what blocks peering.ceph pg <pgid> list_unfoundlists unfound objects;mark_unfound_lost revert|deleteis a last step, after all possible locations have been queried.
Do not
Mark OSDs lost (ceph osd lost) to clear an error quickly — the guide warns that data consistency can then not be guaranteed.
*The inconsistent-object JSON illustrates shard-level read errors; it was not retrieved from a real RADOS pool.*
Method
HEALTH_ERR means data is unavailable or at risk. Act in order:
1. ceph health detail — identify the exact check (PG_AVAILABILITY, OSD_FULL, inconsistent PGs, MON quorum lost).
2. Stop the bleeding: for OSD_FULL (95 %) writes are blocked — free space or temporarily raise full_ratio slightly while adding capacity.
3. For inactive/down/incomplete PGs, bring back the OSDs that held them; ceph pg <id> query lists which OSDs it is waiting for.
4. For inconsistent PGs, identify the bad replica before ceph pg repair.
Avoid destructive commands (osd lost, mark_unfound_lost delete, force-create-pg) until all original OSDs have been tried — they accept data loss.
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 → HEALTH_ERR. 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 → HEALTH_ERR Ceph map
Fast control-plane, placement, data-path and proof boundaries for Ceph → HEALTH_ERR.
| 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 | HEALTH_ERR proves Ceph detected a critical condition, not that a particular repair is safe or that data is irretrievably lost. | Correlate Ceph, host, device and network evidence in the same time window |
| Acceptance | Healthy evidence: critical checks are resolved through explained remediation, affected PGs/data are available with intended redundancy and application read-back succeeds. | Close only after original client operation plus redundancy/read-back verification |