Pcornel
Storage · Ceph

Ceph Troubleshooting

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

Back to the Topic

Answer

Start from the exact workload symptom and timestamp, then use ceph status and health detail only as broad triage. Narrow to affected service, pool/PG and acting OSDs before any force, repair, reweight, out/in or destructive replacement operation.

Remember

  • Symptom ≠ root cause.
  • HEALTH_WARN/ERR ≠ diagnosis.
  • OSD down ≠ failed disk automatically.
  • Temporary recovery ≠ durable fix.

First checks

  • ceph health detail — first
  • ceph -w — live log
  • ceph daemon osd.<id> dump_historic_slow_ops — slow ops detail

Commands

ceph -s
Compact Ceph health/status summary.
ceph health detail
Show detailed Ceph health checks.
ceph osd perf
ceph pg dump_stuck
ceph pg <pgid> query
ceph df
ceph osd df

Verify in this order

symptom → health detail → component → fix

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 → Ceph Troubleshooting 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 boundaryTroubleshooting is complete only when the first failed boundary and causal mechanism are explained and the original workload plus redundancy checks succeed; a green health summary or restarted daemon alone is not root-cause proof.Correlate Ceph, host, device and network evidence in the same time window
AcceptanceHealthy evidence: the original failing workload succeeds, health state is explained, PG redundancy is restored as intended and no regression appears on adjacent clients/services.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=4061

Confirmation

Confirm action

Continue?