Pcornel
Storage · Ceph

HEALTH_ERR

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

Back to the Topic

Answer

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.

Remember

  • 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.

First checks

  • ceph health detail — errors
  • ceph pg dump_stuck inactive — inactive PGs
  • ceph osd df | sort -k17 -n | tail — full OSDs

Commands

ceph pg deep-scrub <pgid>
smartctl
ceph pg repair <pgid>
ceph pg <pgid> query
ceph pg <pgid> list_unfound
ceph osd lost
ceph health detail
ceph pg <id> query
ceph pg repair

Verify in this order

error → data at risk → urgent recovery

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 → HEALTH_ERR 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 boundaryHEALTH_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
AcceptanceHealthy 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

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4058

Confirmation

Confirm action

Continue?