What Ceph is
Put ten drives in one server and you have a lot of space, but also one power supply, one motherboard and one network cable that can take it all offline. RAID protects you from a dead drive. It does nothing about a dead server.
Ceph (say "sef") is free, open-source software that solves this by spreading data over several servers. Each server brings its own drives. Ceph joins them over the network into one pool of storage and keeps enough spare information that a drive, or a whole server, can fail while everything keeps running. It then repairs itself, using the free space on the machines that are left.
Think of a library chain. Instead of one big library, there are five branches, and every book is kept in three of them. If a branch burns down, readers borrow from the other two, while staff make new copies in the branches still standing. There is also no central card catalogue to lose: the shelf is worked out from the book's title, so anyone can find any book without asking.
Three ideas make it work, and the rest of this guide expands on them:
- Everything is stored more than once, or with extra pieces to rebuild from, on different servers.
- Locations are calculated, not looked up. No central index slows things down or fails.
- The cluster heals itself. When something dies, the surviving drives re-create what was lost.
Do you need Ceph?
For most homes and small offices, the honest answer is no. Ceph earns its keep when downtime is expensive, when data outgrows a single machine, or when you already run several servers.
| RAID in one box | ZFS in one box | Ceph | |
|---|---|---|---|
| Servers needed | 1 | 1 | 3 at least; 4 or more is better |
| Survives a dead drive | Yes | Yes | Yes |
| Survives a dead server | No | No | Yes |
| Detects silent corruption | Usually not | Yes | Yes |
| Repairs without a new drive | Only with a spare fitted | Only with a spare fitted | Yes, into free space |
| How it grows | Limited by the box | Limited by the box | Add drives or servers, any time |
| Speed for one user | Good | Very good | Lower: every write crosses the network |
| Speed for many users at once | Limited by one box | Limited by one box | Grows with each server |
| Difficulty | Low | Medium | High |
If one machine is enough, read our guides to RAID and ZFS first.
The building blocks
A Ceph cluster is a group of servers (called nodes or hosts) running a few small programs. Each has one job.
| Part | Its job | How many |
|---|---|---|
| OSD (object storage daemon) | Looks after one drive: stores data, checks it, copies it to other OSDs, and takes part in repairs | One per drive |
| MON (monitor) | Keeps the official map of the cluster. Monitors vote, so a majority must be alive | 3, or 5 in larger clusters, on different nodes |
| MGR (manager) | Statistics, the web dashboard, balancing and other housekeeping | 2: one active, one standby |
| MDS (metadata server) | Tracks folders and file names for CephFS | 2 or more, only if you use CephFS |
| RGW (RADOS gateway) | Speaks the S3 and Swift protocols, like Amazon S3 | 2 or more, only for object storage |
Why three monitors? They decide by majority. With three, one can fail and two still agree. With two, losing one leaves no majority and the cluster stops. That is why the minimum sensible cluster has three nodes, and why odd numbers are used.
One cluster, three kinds of storage
Underneath, Ceph stores everything as small chunks called objects in a layer named RADOS. On top of it sit three ways in, and one cluster can offer all of them at the same time.
| Service | Looks like | Typical use |
|---|---|---|
| RBD (block device) | A virtual hard drive | Disks for virtual machines (Proxmox, OpenStack) and Kubernetes volumes |
| CephFS (file system) | A shared folder | Home directories and shared files for many Linux machines at once; can be re-shared over SMB or NFS |
| RGW (object gateway) | An S3 bucket | Backups, photos and videos, application data |
How data finds its place: PGs and CRUSH
Most storage systems keep a table saying where each file lives. Ceph calculates it instead, in three steps:
- Cut into objects. Virtual disks and files are split into pieces, 4 MiB each by default.
- Group into placement groups (PGs). A hash of the object's name picks a PG. There may be millions of objects but only hundreds or thousands of PGs, which keeps the bookkeeping small.
- Place with CRUSH. The CRUSH formula takes the PG and the cluster map and returns a list of OSDs. Everyone with the same map gets the same answer, so programs talk straight to the right drive.
CRUSH follows rules you set. The most important is the failure domain: "never put two copies of the same data on the same host". Larger sites use rack or room instead. Drives also have device classes (hdd, ssd, nvme), so one pool can live on SSDs and another on hard drives. Bigger drives get a higher weight and receive more data.
Two ways to protect data: copies or erasure coding
You choose the protection for each pool, a named area of the cluster.
- Replication keeps complete copies. The standard is 3 copies ("size 3"). Simple and fast, but 100 TB of files takes 300 TB of drives.
- Erasure coding (EC) works like RAID 5 or 6 across servers. Data is cut into k data chunks and m coding chunks are calculated. Any k of the k+m chunks can rebuild the rest. "4+2" needs only 150 TB of drives for 100 TB of files and, like 3 copies, survives two losses.
| Protection | Nodes, minimum | Nodes, better | Usable | Data survives losing | Keeps running with |
|---|
Counted in nodes, with the failure domain set to host. "Better" is one node more, so a failed node's data can be rebuilt on another. "Keeps running with" is how many nodes can be down before access to some data pauses, with the recommended min_size (2 for three copies, k+1 for erasure coding).
| Replication (3 copies) | Erasure coding | |
|---|---|---|
| Space efficiency | 33% | 50% to 75% for common profiles |
| Small random writes | Fast | Slower; improved by the new "FastEC" optimizations in Tentacle (20.2) and later |
| Processor and network work | Low | Higher, above all during repairs |
| Best for | Virtual machines, databases, small clusters, all metadata | Backups, media, archives, S3 buckets, large clusters |
| RBD and CephFS | Fully supported | For the data only, with allow_ec_overwrites on; metadata stays in a replicated pool |
Avoid 2 copies and m=1. Both leave no second line of defence while a repair is running. With two copies, a second fault in that window, or one copy that turns out to be unreadable, means lost data. The Ceph documentation strongly discourages m=1 profiles for production data.
Try it: fail a server
Six nodes hold eight placement groups, numbered 1 to 8. Click a node to switch it off, or on again. Then press Heal to let Ceph rebuild the missing pieces on other nodes.
Things to try: switch off one node and heal, then another, and so on. Failing nodes one at a time with healing in between is survivable for a long while. Failing three at once is how data gets lost. In a real cluster healing starts on its own, about ten minutes after a drive or node goes silent, so that a quick reboot doesn't trigger it.
Leaving room to heal
Ceph rebuilds into free space, so an almost full cluster cannot repair itself. It also guards against drives filling up completely, with three limits that apply to each OSD, not to the average:
| Limit | Default | What happens |
|---|---|---|
| nearfull | 85% | Health warning: add drives or delete data now |
| backfillfull | 90% | Ceph stops moving rebuilt data onto that drive, so repairs can stall |
| full | 95% | Writing stops in the affected pools, until space is freed or added |
So two things shrink what you can really use. First, plan to stay under 85% at all times. Second, stay under it even after a node has failed and its data has been rebuilt on the others. In a 4-node cluster, that means keeping a quarter of the raw space free for healing. In a 10-node cluster it is only a tenth, which is why more, smaller nodes beat fewer, bigger ones.
The special case of three nodes. With 3 copies on 3 nodes, every node holds one copy of everything. If a node dies, the data is safe and the cluster keeps running, but there is nowhere to put a third copy until the node returns. During that time, one more failure pauses access. Three nodes work; four let the cluster truly heal.
Drive calculator: how many drives do you need?
Enter the space you want to use. The calculator adds the cost of protection, the room to heal and the fill limit, then finds a layout with equal nodes.
The same space with each kind of protection
Uses the drive, nodes, fill limit and room to heal chosen above.
| Protection | Nodes × drives | Drives | Raw | Survives | Drive cost |
|---|
The same space with other drive sizes
| Drive | Nodes × drives | Drives | Raw | Space at the limit |
|---|
How it is worked out
usable = (nodes − room to heal) × drives per node × drive size × fill limit × efficiency
- Equal nodes. The calculator assumes every node has the same number and size of drives, which is also how Ceph works best.
- Automatic nodes picks the layout with the lowest drives + 4 × nodes. In other words, a server is assumed to cost about as much as four drives. Type a number to decide for yourself.
- TB or TiB. Drive makers count in TB (1,000 GB). Ceph and most operating systems show TiB (1 TiB = 1.0995 TB).
- Not included: Ceph's own metadata (usually a few percent), space wasted by very small files, snapshots and compression.
Choosing hardware
Figures marked * come from the Ceph project's hardware recommendations, read in November 2026.
| Part | Recommendation | Why |
|---|---|---|
| Memory | More than 8 GiB per OSD in total (twice the 4 GiB default target)*; more on nodes that also run monitors or VMs | OSDs need extra while repairing. Too little memory is a classic cause of unstable clusters. |
| Processor | About 3 threads per hard-drive OSD, 6 per NVMe OSD* | Erasure coding, checksums and fast drives all use CPU. |
| Network | 10 Gb/s minimum*; 25 Gb/s or more for NVMe or many drives | Every write is sent to other nodes, and repairs copy terabytes. |
| SSDs | Enterprise models with power-loss protection* | Ceph waits for each write to be safely stored. Consumer SSDs can be very slow at that, however fast they look in benchmarks. |
| Hard drives | Enterprise or NAS drives with CMR recording | SMR (shingled) drives slow to a crawl during repairs. |
| Fast SSD for hard-drive nodes | A shared SSD for each OSD's database (WAL+DB): at least 2.5% of the drive size; at most 5 drives per SATA/SAS SSD or 15 per Gen 4 NVMe SSD* | Speeds up small operations greatly. If that SSD dies, so do all the OSDs on it. |
| Controller | Plain HBA or motherboard ports, not a RAID card* | Ceph does its own protection and needs to see each drive. |
| Boot drive | Separate, ideally a mirrored pair* | Keeps OSD drives for data only. |
Why the network matters so much
| Network | Time to copy 1 TiB | Suitable for |
|---|---|---|
| 1 Gb/s | about 3 hours* | Learning only |
| 10 Gb/s | about 20 minutes* | Small clusters, hard drives |
| 25 Gb/s and up | faster still | SSD and NVMe clusters, dense nodes |
A single modern NVMe SSD can fill a 10 Gb/s link. Compare today's prices for drives and memory, and see our RAM guide for the server memory types.
Ways to run Ceph
| Option | What it is | Suits |
|---|---|---|
| Proxmox VE | Ceph built into a virtualisation platform, set up from its web page; VMs and storage share the same servers ("hyper-converged") | Home labs and small businesses with 3 or more servers |
| cephadm | The Ceph project's own installer; runs each part in a container | Dedicated storage clusters |
| Rook | Runs Ceph inside Kubernetes | Kubernetes users |
| MicroCeph | Canonical's simplified package for Ubuntu | Learning, small and edge sites |
| IBM Storage Ceph, Red Hat products, others | Commercial versions with support | Companies that want a support contract |
A small Proxmox cluster
- Servers: Proxmox asks for at least three, preferably identical. Four or five is more comfortable.
- Networks: if unsure, use three separate ones, as its manual suggests: a 25 Gb/s or faster network for Ceph's own traffic, 10 Gb/s or faster for clients and VMs, and a separate 1 Gb/s network for cluster messages. With 3 to 5 nodes you can connect the servers directly to each other ("full mesh") instead of buying a fast switch.
- Drives: SSDs, the same number and size in each node. Four 500 GB drives are better than one 1 TB and three 250 GB.
- Memory: set aside at least 8 GiB per OSD before counting what your VMs need.
- Pool: 3 copies, with
min_size2.
With only two servers, use ZFS replication between them instead. It is simpler and needs no fast network. Our ZFS guide covers it.
History and releases
- 2000s Sage Weil starts Ceph as research into petabyte-scale storage at the University of California, Santa Cruz.
- 2012 Inktank, the company formed around Ceph, starts offering support. "Argonaut" is the first stable release.
- 2014 Red Hat buys Inktank for about $175 million.
- 2017 "Luminous" makes BlueStore the default: OSDs write straight to the drive, with checksums.
- 2018 The Ceph Foundation is launched under the Linux Foundation with 31 members.
- 2025 "Tentacle" brings FastEC, making erasure coding much better at small reads and writes.
- 2026 "Umbrella" (21.2) is released in October.
The name is short for cephalopod, the animal family of octopus and squid. Releases are named in alphabetical order, and each gets fixes for about two years.
| Release | First released | Latest | Estimated end of fixes |
|---|---|---|---|
| Umbrella (21) | 28 Oct 2026 | 21.2.0 | 1 Jun 2028 |
| Tentacle (20) | 18 Nov 2025 | 20.2.5 | 1 Jun 2027 |
| Squid (19) | 26 Sep 2024 | 19.2.7 | 2 Dec 2026 |
From the Ceph project's release list, 29 November 2026. For a new cluster, the cautious choice is a release with a few rounds of fixes behind it: today that is Tentacle.
Common mistakes
| Mistake | What happens | Instead |
|---|---|---|
| Planning with raw capacity | The cluster is "full" at a fraction of the space you paid for | Use the calculator above |
| Filling past 85% | Repairs stall, then writing stops | Order drives at around 70% |
| 2 copies to save money | One failure plus one bad sector loses data | 3 copies, or erasure coding with m=2 |
Setting min_size to 1 | Writes are accepted with a single copy in existence | Leave it at 2 (or k+1) |
| Consumer SSDs | Very low write speed under Ceph | SSDs with power-loss protection |
| One huge node among small ones | Its space can't be fully used: copies need other nodes | Equal nodes |
| Treating Ceph as a backup | Deleted is deleted, on every copy | Keep backups on a separate system |
Commands worth knowing
| Command | What it shows or does |
|---|---|
ceph -s | The overall health, with any repairs in progress |
ceph health detail | What exactly is wrong |
ceph df | Raw and usable space; MAX AVAIL is what each pool can still take |
ceph osd tree | Nodes and drives, up or down |
ceph osd df tree | How full each drive is |
ceph osd pool ls detail | Protection settings of each pool |
ceph osd set noout | Stops healing from starting during planned maintenance; undo with ceph osd unset noout |
Glossary
| Word | Meaning |
|---|---|
| Backfill, recovery | Copying or rebuilding data onto drives that should have it |
| BlueStore | How an OSD stores data on its drive |
| CRUSH | The formula that decides which OSDs hold which data |
| Degraded | Some data has fewer copies than it should, but is still available |
| Failure domain | The unit that may fail as a whole: drive, host, rack |
| min_size | The fewest copies or chunks needed before Ceph allows access |
| PG | Placement group: a bundle of objects placed and repaired together |
| Pool | A named area with its own protection and placement rules |
| RADOS | The object store underneath everything |
| Scrub | A regular check that all copies agree; a deep scrub reads and verifies the data itself |
| size | The number of copies in a replicated pool |
In short
- Ceph joins the drives of three or more servers into storage that survives losing a whole server.
- Use 3 copies for virtual machines and small clusters, erasure coding (4+2) for large amounts of bulk data.
- Add one node more than the minimum, so the cluster can heal itself.
- Usable space is often only a fifth to a half of what you buy. Work it out before ordering drives.
- Spend on the network, memory and proper SSDs before anything else.