Use it when an OSD is down, a disk must be replaced, a host needs a reboot, or one OSD is slow or full.
OSD
An OSD is the Ceph daemon that stores data on one disk. It has two independent states: up or down (is it running?) and in or out (is data assigned to it?).
1. An OSD stores data on one device and replicates/recovers with peers.
2. Down and out are different: down = not responding, out = not holding data.
3. Slow OSDs drag the whole cluster.
4. Balance usage (balancer module).
5. Replace failed disks promptly.
PG → acting OSDs → BlueStore → device
Context & applicabilityCommon mistakes · platform/version boundaries
- "The OSD is up, so its disk is healthy." A failing disk can keep the daemon running while making every request slow; check
ceph osd perf. - "An OSD went down and nothing happened, so it does not matter." Recovery starts after ten minutes.
- "Down and out are the same." Down is liveness; out is whether data is assigned to it.
- "Rebooting a host is harmless." Without
noout, a reboot longer than ten minutes starts a rebalance. - "
nooutcan stay set." While it is set, a real failure is never repaired. - "The cluster has free space, so no OSD can be full." OSDs fill unevenly; one full OSD blocks writes to its pools.
- "Marking an OSD out is instant and free." It triggers data movement off that OSD.
OSD state flags describe liveness/placement eligibility, not data completeness, media integrity or workload latency by themselves.
Suspicious evidence: down/out flaps, nearfull/full skew, slow ops, device errors, high commit/apply latency, repeated heartbeat failures or PG degradation tied to one failure domain.
Next check: Continue at the first failing step in MON/MGR/OSD/MDS, Pools/PG/CRUSH, client service (RBD/CephFS/RGW), public/cluster Networking, Storage Performance, Physical Media or Backup/DR; preserve evidence, make one minimal change and repeat the original workload plus redundancy/read-back verification.
Operational reference
Fast context before you go deeper.
ceph osd treePrimary Commands
Configuration and operational commands for this Topic.
ceph osd treeVerifyDisplay CRUSH hierarchy and OSD up/in state.
Use when: Use after confirming the Ceph target and before changing state.
Quick note: Ceph / ZFS / LVM / Linux filesystems and backup systems. A healthy summary can hide a failed component, weak failure-domain placement, latent corruption or an untested recovery path.
Ceph · mixedceph osd statusVerifyCompact OSD up/in, usage and PG view.
Use when: Use after confirming the Ceph target and before changing state.
Quick note: Ceph / ZFS / LVM / Linux filesystems and backup systems. A healthy summary can hide a failed component, weak failure-domain placement, latent corruption or an untested recovery path.
Ceph · mixedceph osd df treeVerifyDisplay per-OSD capacity/utilization.
Use when: Use after confirming the Ceph target and before changing state.
Quick note: Ceph / ZFS / LVM / Linux filesystems and backup systems. A healthy summary can hide a failed component, weak failure-domain placement, latent corruption or an untested recovery path.
Ceph · mixedVerification & Troubleshooting
Focused checks for this Topic. Stored verification and troubleshooting material remains available below.
Check 1 — Separate OSD state
Use ceph osd tree and distinguish up/down from in/out. An OSD can be up but excluded from placement.
Check 2 — Inspect capacity and placement
Use ceph osd df tree to compare utilization and CRUSH placement. A full or uneven device can constrain recovery even when it is up.
Check 3 — Follow the cluster health boundary
Compare ceph osd status with ceph health detail and placement-group state. OSD status alone does not prove client I/O or replica availability.
Check 4 — Repeat the original workload
After an approved minimal repair, repeat the original client operation and compare health/PG state. These are documented checks; no observed execution is implied.
More detailAdditional checks5 sections
Longer notes behind the focused checks above. Start with the checks; use these when you need more detail.
Verification path
client/peer request → OSD daemon → PG shard/object → BlueStore/BlueFS → block device → completion; peers coordinate replication/EC and recovery
Healthy evidence: expected OSDs are up/in, device and daemon latency are within baseline, capacity is safe, PGs using them are healthy and workload I/O succeeds.
Operational verification
Ceph OSD state, device backing, in/out/up/down state, utilization and recovery implications.
Fast verification
- Inspect
ceph osd tree,ceph osd dfand OSD metadata/perf for the affected devices.
- Distinguish up/down from in/out; they describe different cluster decisions.
- Check device/kernel logs before marking an OSD lost or replacing media.
Verification & troubleshooting
Path: Storage → Ceph → OSD. Local intent: Object Storage Daemons (OSDs) store RADOS objects on local devices, serve client I/O, peer PGs, replicate or encode writes and participate in recovery, backfill and scrub.
Failure isolation workflow
Quality lift: branching diagnosis
Concrete boundaries: client/RBD/CephFS → pool/object → PG mapping → acting set/OSDs → device/WAL/DB → acknowledgements → client completion → read-back.
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.
A down OSD is marked out after 10 minutes, and data starts moving. Before planned maintenance: ceph osd set noout — and unset it afterwards. Up does not mean healthy: a failing disk makes its OSD slow. One full OSD blocks writes to its pools.
ceph osd tree— OSDs per host and statusceph osd df tree— usage per OSDceph osd perf— commit/apply latency
ReferenceWhat it is2 sections · depth on demand
What it is
Distributed storage health, MON/MGR/OSD roles, pools, placement groups, CRUSH and recovery behavior.
Ceph maps client objects through pool/PG and CRUSH placement to acting OSDs; monitors provide cluster maps and managers expose telemetry. Close with Correlate the affected pool/PG/OSDs and client session, inspect recovery/error/latency for the same interval, then repeat the original I/O and verify data read-back. and state what the evidence does not show.
Mental model
An OSD (object storage daemon) is the Ceph process that stores data on one disk. A cluster has one OSD per disk; together they hold all the data, replicate it among themselves and repair it when one of them fails.
ReferenceWhy it matters3 sections · depth on demand
When to use it
Use this Topic when the problem is in OSDs. Use Ceph when the problem concerns block devices, pools, placement, filesystems, snapshots, backup/restore or performance.
Why it matters operationally
Disks fail, so OSDs going down is routine in a Ceph cluster — what matters is knowing what the cluster will do about it, and when. Two pairs of states (up/down and in/out) and one timer explain why data starts moving ten minutes after a failure, and how to stop that during planned maintenance.
Quality lift: concrete internals
ReferenceHow it works1 section · depth on demand
How it works
Two independent states.
| State | Meaning |
|---|---|
up / down | Is the daemon running and answering its peers? |
in / out | Is the OSD assigned data by CRUSH? |
- up + in — normal.
- down + in — just failed; its placement groups are degraded, but Ceph waits before moving data.
- down + out — Ceph has given up waiting and is re-creating the data elsewhere.
- up + out — being drained on purpose.
The timer. OSDs check each other with heartbeats and report a silent peer to the monitors, which mark it down. If it stays down for 10 minutes (mon_osd_down_out_interval), it is marked out, and recovery begins — heavy I/O across the cluster.
Planned maintenance. To reboot a host without triggering that:
ceph osd set noout
# ... maintenance ...
ceph osd unset noout
With noout set, down OSDs stay in; the data is degraded but nothing moves, and it catches up quickly when the OSDs return.
Storage back end. Current OSDs use BlueStore, which writes directly to the raw disk and keeps its metadata in an embedded database; that database can be placed on a faster device.
Weights. The CRUSH weight normally equals the disk's capacity in TiB and decides its share of the data. A separate reweight between 0 and 1 is a temporary adjustment. Each OSD also has a device class — hdd, ssd or nvme.
Looking at it.
ceph osd tree
ceph osd df tree
ceph osd perf
ceph osd find <id>
ceph osd tree shows every OSD under its host with up/down and weight; ceph osd df shows how full each one is and how many placement groups it holds; ceph osd perf shows latency, where one slow disk stands out.
On the host. The daemon's own log says why it stopped — typically a disk I/O error: journalctl -u ceph-osd@<id> on package-based installations, or ceph orch ps and cephadm logs on containerised ones. The kernel log (dmesg) and SMART data confirm a failing disk.
Replacing a disk. Mark the OSD out, wait until the data is safe (ceph osd safe-to-destroy <id>), remove it, replace the disk and create a new OSD.
ReferenceImportant terms & boundaries1 section · depth on demand
Placement and what the checks show
OSD state flags describe liveness/placement eligibility, not data completeness, media integrity or workload latency by themselves.
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 → OSD. 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 → OSD Ceph map
Fast control-plane, placement, data-path and proof boundaries for Ceph → OSD.
| 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 | OSD state flags describe liveness/placement eligibility, not data completeness, media integrity or workload latency by themselves. | Correlate Ceph, host, device and network evidence in the same time window |
| Acceptance | Healthy evidence: expected OSDs are up/in, device and daemon latency are within baseline, capacity is safe, PGs using them are healthy and workload I/O succeeds. | Close only after original client operation plus redundancy/read-back verification |