Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

OSD

Direct answer

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?).

When to use this

Use it when an OSD is down, a disk must be replaced, a host needs a reboot, or one OSD is slow or full.

First 30 seconds

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.

Operational verification

PG → acting OSDs → BlueStore → device

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common interpretation traps
  • "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.
  • "noout can 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.
Failure and recovery traps

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.

Platform / version applicability
Ceph storage
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCeph storage · Ceph
Key commandceph osd tree
Scope / prerequisiteUse it when an OSD is down, a disk must be replaced, a host needs a reboot, or one OSD is slow or full.
Verify · 3
What next?3 suggested next steps
Catalog command links3
Evidence1
On this pageJump to a specific section
Storage command reference

Primary Commands

Configuration and operational commands for this Topic.

Subject-specific reference · not observed execution

Verification & Troubleshooting

Focused checks for this Topic. Stored verification and troubleshooting material remains available below.

4 focused checksScope → observe → prove the owning boundary → repeat the original test

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 df and 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

Ceph maps client objects through pool/PG and CRUSH placement to acting OSDs; monitors provide cluster maps and managers expose telemetry.

Verification chain: Scope → effective state/configuration → dependency → observable evidence → next discriminating check

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 references

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.

observation · 1
Key points

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.

Key checks
  • ceph osd tree — OSDs per host and status
  • ceph osd df tree — usage per OSD
  • ceph 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

Ceph maps client objects through pool/PG and CRUSH placement to acting OSDs; monitors provide cluster maps and managers expose telemetry.

ReferenceHow it works1 section · depth on demand

How it works

Two independent states.

StateMeaning
up / downIs the daemon running and answering its peers?
in / outIs 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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCeph storage current

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%
Terminology layer

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.

Aliases that resolve here
ceph osdobject storage daemonosd up in
Embedded reference data

Quick lookup tables

Ceph → OSD Ceph map

Fast control-plane, placement, data-path and proof boundaries for Ceph → OSD.

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 boundaryOSD 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
AcceptanceHealthy 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
Confirmation

Confirm action

Continue?