PartsPrices › Blog › Ceph explained

Ceph explained: storage spread across many servers

Ceph turns the drives in several ordinary servers into one big, self-repairing store. Here is how it works from the ground up, when it makes sense, and how many drives you need for the space you want.

PartsPrices guides · 29 November 2026 · about 16 minutes · Go to the calculator

A small Ceph cluster: three servers full of drives, joined by a fast network switch. No special storage hardware.

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:

  1. Everything is stored more than once, or with extra pieces to rebuild from, on different servers.
  2. Locations are calculated, not looked up. No central index slows things down or fails.
  3. 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 boxZFS in one boxCeph
Servers needed113 at least; 4 or more is better
Survives a dead driveYesYesYes
Survives a dead serverNoNoYes
Detects silent corruptionUsually notYesYes
Repairs without a new driveOnly with a spare fittedOnly with a spare fittedYes, into free space
How it growsLimited by the boxLimited by the boxAdd drives or servers, any time
Speed for one userGoodVery goodLower: every write crosses the network
Speed for many users at onceLimited by one boxLimited by one boxGrows with each server
DifficultyLowMediumHigh

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.

PartIts jobHow many
OSD (object storage daemon)Looks after one drive: stores data, checks it, copies it to other OSDs, and takes part in repairsOne per drive
MON (monitor)Keeps the official map of the cluster. Monitors vote, so a majority must be alive3, or 5 in larger clusters, on different nodes
MGR (manager)Statistics, the web dashboard, balancing and other housekeeping2: one active, one standby
MDS (metadata server)Tracks folders and file names for CephFS2 or more, only if you use CephFS
RGW (RADOS gateway)Speaks the S3 and Swift protocols, like Amazon S32 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.

Whatever the way in, the data ends up as objects spread over the OSDs (drives) of every node.
ServiceLooks likeTypical use
RBD (block device)A virtual hard driveDisks for virtual machines (Proxmox, OpenStack) and Kubernetes volumes
CephFS (file system)A shared folderHome directories and shared files for many Linux machines at once; can be re-shared over SMB or NFS
RGW (object gateway)An S3 bucketBackups, 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:

The first object of a file, followed from left to right. The drives are chosen on three different nodes.
  1. Cut into objects. Virtual disks and files are split into pieces, 4 MiB each by default.
  2. 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.
  3. 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.
The same object stored both ways. Each survives the loss of any two nodes; erasure coding uses half the space but needs twice as many nodes.
Drive space needed to store 100 TB of data
Before adding free space for healing, which the calculator includes.
ProtectionNodes, minimumNodes, betterUsableData survives losingKeeps 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 efficiency33%50% to 75% for common profiles
Small random writesFastSlower; improved by the new "FastEC" optimizations in Tentacle (20.2) and later
Processor and network workLowHigher, above all during repairs
Best forVirtual machines, databases, small clusters, all metadataBackups, media, archives, S3 buckets, large clusters
RBD and CephFSFully supportedFor 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.

Copy or data chunkRebuilt by Heal

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:

LimitDefaultWhat happens
nearfull85%Health warning: add drives or delete data now
backfillfull90%Ceph stops moving rebuilt data onto that drive, so repairs can stall
full95%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.

ProtectionNodes × drivesDrivesRawSurvivesDrive cost

The same space with other drive sizes

DriveNodes × drivesDrivesRawSpace at the limit

How it is worked out

usable = (nodes − room to heal) × drives per node × drive size × fill limit × efficiency

Efficiency is 1 ÷ copies for replication and k ÷ (k + m) for erasure coding.

  • 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.

PartRecommendationWhy
MemoryMore than 8 GiB per OSD in total (twice the 4 GiB default target)*; more on nodes that also run monitors or VMsOSDs need extra while repairing. Too little memory is a classic cause of unstable clusters.
ProcessorAbout 3 threads per hard-drive OSD, 6 per NVMe OSD*Erasure coding, checksums and fast drives all use CPU.
Network10 Gb/s minimum*; 25 Gb/s or more for NVMe or many drivesEvery write is sent to other nodes, and repairs copy terabytes.
SSDsEnterprise 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 drivesEnterprise or NAS drives with CMR recordingSMR (shingled) drives slow to a crawl during repairs.
Fast SSD for hard-drive nodesA 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.
ControllerPlain HBA or motherboard ports, not a RAID card*Ceph does its own protection and needs to see each drive.
Boot driveSeparate, ideally a mirrored pair*Keeps OSD drives for data only.

Why the network matters so much

NetworkTime to copy 1 TiBSuitable for
1 Gb/sabout 3 hours*Learning only
10 Gb/sabout 20 minutes*Small clusters, hard drives
25 Gb/s and upfaster stillSSD 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

OptionWhat it isSuits
Proxmox VECeph 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
cephadmThe Ceph project's own installer; runs each part in a containerDedicated storage clusters
RookRuns Ceph inside KubernetesKubernetes users
MicroCephCanonical's simplified package for UbuntuLearning, small and edge sites
IBM Storage Ceph, Red Hat products, othersCommercial versions with supportCompanies 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_size 2.

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

  1. 2000s Sage Weil starts Ceph as research into petabyte-scale storage at the University of California, Santa Cruz.
  2. 2012 Inktank, the company formed around Ceph, starts offering support. "Argonaut" is the first stable release.
  3. 2014 Red Hat buys Inktank for about $175 million.
  4. 2017 "Luminous" makes BlueStore the default: OSDs write straight to the drive, with checksums.
  5. 2018 The Ceph Foundation is launched under the Linux Foundation with 31 members.
  6. 2025 "Tentacle" brings FastEC, making erasure coding much better at small reads and writes.
  7. 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.

ReleaseFirst releasedLatestEstimated end of fixes
Umbrella (21)28 Oct 202621.2.01 Jun 2028
Tentacle (20)18 Nov 202520.2.51 Jun 2027
Squid (19)26 Sep 202419.2.72 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

MistakeWhat happensInstead
Planning with raw capacityThe cluster is "full" at a fraction of the space you paid forUse the calculator above
Filling past 85%Repairs stall, then writing stopsOrder drives at around 70%
2 copies to save moneyOne failure plus one bad sector loses data3 copies, or erasure coding with m=2
Setting min_size to 1Writes are accepted with a single copy in existenceLeave it at 2 (or k+1)
Consumer SSDsVery low write speed under CephSSDs with power-loss protection
One huge node among small onesIts space can't be fully used: copies need other nodesEqual nodes
Treating Ceph as a backupDeleted is deleted, on every copyKeep backups on a separate system

Commands worth knowing

CommandWhat it shows or does
ceph -sThe overall health, with any repairs in progress
ceph health detailWhat exactly is wrong
ceph dfRaw and usable space; MAX AVAIL is what each pool can still take
ceph osd treeNodes and drives, up or down
ceph osd df treeHow full each drive is
ceph osd pool ls detailProtection settings of each pool
ceph osd set nooutStops healing from starting during planned maintenance; undo with ceph osd unset noout

Glossary

WordMeaning
Backfill, recoveryCopying or rebuilding data onto drives that should have it
BlueStoreHow an OSD stores data on its drive
CRUSHThe formula that decides which OSDs hold which data
DegradedSome data has fewer copies than it should, but is still available
Failure domainThe unit that may fail as a whole: drive, host, rack
min_sizeThe fewest copies or chunks needed before Ceph allows access
PGPlacement group: a bundle of objects placed and repaired together
PoolA named area with its own protection and placement rules
RADOSThe object store underneath everything
ScrubA regular check that all copies agree; a deep scrub reads and verifies the data itself
sizeThe 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.