Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

CRUSH

Direct answer

CRUSH is how Ceph decides which OSDs hold each placement group. It uses a map of the physical layout — disks in hosts, hosts in racks — and rules that spread copies over different failure domains.

When to use this

Use it when placement groups stay undersized, before adding or removing disks, or when a pool should live on a certain kind of disk or survive a rack failure.

First 30 seconds

1. CRUSH maps PGs to OSDs across failure domains without a central table.

2. Default rule separates replicas by host.

3. Device classes (hdd/ssd/nvme) split pools by media.

4. CRUSH changes move data.

5. Check placement after adding hardware.

Operational verification

PG id → CRUSH rule → buckets (root/rack/host) → OSDs

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common interpretation traps
  • "Three copies protect against three failures." They protect against the loss of failure domains: with host, two hosts; a whole rack only if the rule separates by rack.
  • "The hierarchy in the CRUSH map is documentation." It decides placement; a host listed under the wrong rack defeats the rule.
  • "Adding one disk only fills that disk." Data is redistributed across many OSDs.
  • "Undersized placement groups will recover by themselves." Not if there are too few failure domains for the rule.
  • "A host with more disks is just a bigger host." It receives proportionally more data, and its failure removes proportionally more.
  • "Changing a pool's rule is a metadata change." All of the pool's data may move.
  • "Ceph stores a table of where every object is." The location is calculated from the map each time.
Failure and recovery traps

A valid CRUSH map shows configured placement intent, but it does not show topology accuracy, current OSD availability or sufficient spare capacity for recovery.

Suspicious evidence: replicas share a real failure domain, stale topology, wrong rule/device class, zero/incorrect weights or placement changes causing excessive remap.

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 crush tree
Scope / prerequisiteUse it when placement groups stay undersized, before adding or removing disks, or when a pool should live on a certain …
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Storage command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

4 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

pool CRUSH rule → hierarchy/buckets + weights/classes → deterministic PG acting set → OSD failure domains → data placement

Healthy evidence: CRUSH rule matches pool intent, hierarchy matches real topology and PG replicas/shards distribute across intended failure domains.

Step 2 Operational verification Verify boundary

Failure domains, CRUSH rules, placement decisions and how topology affects Ceph redundancy.

Fast verification

  • Read the CRUSH topology/rules and verify intended failure domains before changing weights.

- Use mapping tools to see where a representative PG/object would place replicas.

- A healthy OSD can still yield poor resilience if CRUSH hierarchy or rule scope is wrong.

Step 3 Verification & troubleshooting Narrow the fault

Path: Storage → Ceph → CRUSH. Local intent: CRUSH is Ceph’s deterministic placement algorithm and hierarchy/rule system used to map PGs across OSDs according to weights, device classes and failure-domain policy.

Step 4 Failure isolation workflow Narrow the fault

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

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

The failure domain in the rule (host by default) decides what you can lose. With fewer failure domains than copies, placement groups stay undersized. Any change to weights, hierarchy or rules moves data. Placement is calculated, not looked up.

Key checks
  • ceph osd crush tree --show-shadow — hierarchy with device classes
  • ceph osd crush rule dump — rules
  • ceph osd pool get <pool> crush_rule — rule per pool
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.

Mental model

CRUSH is the algorithm Ceph uses to decide which OSDs hold each piece of data. It works from a map of the cluster's physical layout — which disks are in which hosts, racks and rooms — and from rules that say how copies must be spread, so that no single failure takes out all copies.

ReferenceWhy it matters3 sections · depth on demand

When to use it

Use this Topic when the problem is in CRUSH. Use Ceph when the problem concerns block devices, pools, placement, filesystems, snapshots, backup/restore or performance.

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

Why it matters operationally

CRUSH is what makes "three copies" mean three copies on three different hosts and not three disks in the same server. It also explains two things operators meet in practice: why adding or removing a disk moves data all over the cluster, and why placement groups stay undersized when there are too few hosts or racks to satisfy the rule.

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

The hierarchy. The CRUSH map is a tree: a root at the top, then optional levels such as datacenter, room and rack, then hosts, with the OSDs as leaves. Each level is a bucket type, and each OSD has a weight — normally its capacity — that sets its share of the data.

ceph osd crush tree

Rules. A CRUSH rule says where to start in the tree and across which bucket type the copies must be separated — the failure domain. The default replicated rule means: start at the root, choose as many different hosts as the pool has copies, and take one OSD in each. With rack as the failure domain, each copy lands in a different rack.

ceph osd crush rule ls
ceph osd crush rule dump <rule>
ceph osd pool get <pool> crush_rule

Calculated, not looked up. Placement is a deterministic computation from the placement group's ID, the map and the rule. Every client and OSD arrives at the same answer independently, so no central table has to be consulted. ceph osd map <pool> <object> shows the placement group and the OSDs an object maps to.

Device classes. OSDs are tagged hdd, ssd or nvme, and a rule can be limited to one class — which is how one pool is put on SSDs and another on hard disks in the same cluster:

ceph osd crush rule create-replicated fast default host ssd
ceph osd pool set <pool> crush_rule fast

Changes move data. Adding, removing or reweighting an OSD, or editing the hierarchy or a rule, changes the result of the calculation for some placement groups, and their data is moved to match. CRUSH keeps the movement close to the minimum necessary, but on a large cluster that is still much I/O; make changes in steps, and outside peak hours.

When the rule cannot be satisfied. A pool with three copies and host as failure domain needs at least three hosts with enough space. With only two available, placement groups remain undersized and degraded indefinitely — Ceph will not put two copies in one host to make up the number.

Balance. Placement is pseudo-random, so OSDs fill unevenly. The balancer module evens this out; ceph osd df shows the spread.

ReferenceImportant terms & boundaries1 section · depth on demand

Placement and what the checks show

A valid CRUSH map shows configured placement intent, but it does not show topology accuracy, current OSD availability or sufficient spare capacity for recovery.

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

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 → CRUSH. 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 crushcrush mapcrush rule
Embedded reference data

Quick lookup tables

Ceph → CRUSH Ceph map

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

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 boundaryA valid CRUSH map proves configured placement intent; it does not prove topology accuracy, current OSD availability or sufficient spare capacity for recovery.Correlate Ceph, host, device and network evidence in the same time window
AcceptanceHealthy evidence: CRUSH rule matches pool intent, hierarchy matches real topology and PG replicas/shards distribute across intended failure domains.Close only after original client operation plus redundancy/read-back verification
Confirmation

Confirm action

Continue?