Ceph & vSAN Usable Capacity Calculator
Works out how much a Ceph or vSAN cluster can safely store. Raw capacity is hosts times drives times drive size. Whole hosts are kept free so data can re-heal onto the survivors, or one drive per host when no spare host exists. The rest fills only to a limit, Ceph’s 85 percent nearfull ratio or vSAN’s 80 percent, before BlueStore metadata and the copies or parity chunks of the chosen scheme come off.
Enter the hosts, the capacity drives in each and their size, pick a protection scheme, and the calculator works out how much a Ceph pool or vSAN datastore can safely hold: little enough that the cluster can lose a host, rebuild its data on the survivors and still sit at or below the fill limit. The defaults describe a small Proxmox-style cluster, five hosts with four 7.68 TB drives each, storing three replicas. It has 153.6 TB raw and 51.2 TB after protection, but only 34.13 TB, or 31.04 TiB, is safe to fill, which means keeping raw usage under 68%.
How the safe capacity is worked out
Every scheme turns raw space into stored data at a fixed rate. Replication keeps whole copies, and erasure coding splits each object into k data chunks and m coding chunks:
efficiency = k ÷ (k + m), or 1 ÷ copies
The calculator assumes the host failure domain that Ceph's erasure-code profiles use by default, so no two chunks or copies of an object share a host. A pool therefore needs at least as many hosts as one object has pieces, and the pieces a failed host held can only be rebuilt on a host that holds none of that object. The calculator reserves whole spare hosts for that, up to the number of failures you plan for:
reserved hosts = the smaller of failures planned and hosts − hosts one object spans
The surviving hosts then fill only to the limit: Ceph's nearfull ratio, 85% by default, or the 80% vSAN advises. BlueStore's database, unless moved to another device, sits on the data drives and counts as used, so its share comes off too:
safe usable = (hosts − reserved hosts) × drives per host × drive size × fill limit × efficiency ÷ (1 + metadata)
With no spare host, as with three replicas on three hosts, a lost host cannot be rebuilt anywhere and a failed drive only on its own host's other drives, so each host keeps one drive's worth free instead. That follows from the placement rule, not from any one document. Ceph's own advice is similar: multiply capacity by the full ratio, take away the OSDs you expect to fail, and repeat with a bigger failure, such as a rack, to set the near full ratio.
A worked example with the defaults
Five hosts with four 7.68 TB drives hold 153.6 TB raw. Three replicas need three hosts, so two are spare, and planning to rebuild after one lost host reserves 4 × 7.68 = 30.72 TB. The four hosts that would survive hold 122.88 TB, and filling them to 85% gives 104.448 TB. Allowing 2% of the stored replicas for BlueStore metadata, 104.448 ÷ 1.02, leaves 102.4 TB of replicas, and dividing by three leaves 34.13 TB of data. Before any failure the replicas and their metadata fill 68% of the raw space; after a host fails and its replicas are copied back, the four survivors are at exactly 85%. The breakdown table shows where the raw space goes:
| Item | TB | Share of raw |
|---|---|---|
| Failure reserve (1 host) | 30.72 | 20% |
| Headroom above the 85% limit | 18.43 | 12% |
| BlueStore metadata | 2.05 | 1.3% |
| Extra replicas | 68.27 | 44.4% |
| Safe usable capacity | 34.13 | 22.2% |
Planning for no host loss gives 42.67 TB, and planning for two gives 25.6 TB, with raw usage kept under 51%. Setting metadata to 0, as you would when block.db sits on a separate device, gives 34.82 TB. The TiB figure divides by 240 bytes rather than 1012, the TB versus TiB gap, so it reads about 9% lower.
Replication or erasure coding
Ceph's documentation puts the overhead of an erasure-coded pool at (k+m)/k, so a 4+2 profile writes 1.5 bytes of raw space for every byte stored, against 3 for three replicas. Both 4+2 and three replicas keep the data through two failed hosts and keep accepting writes with one down. On seven hosts with four 7.68 TB drives each, 4+2 safely holds 102.4 TB against 51.2 TB for three replicas.
The price is width. A 4+2 pool needs six hosts, and seven before it can rebuild a lost one; on six it falls back to the one-drive reserve and holds 76.8 TB. Ceph strongly discourages m=1 for production data, hence the label on EC 2+1, and advises against k above 4 or m above 2 until you fully understand the ramifications. For block and file workloads it recommends m no larger than 3. A size of 2 or a min_size of 1 risks data loss in production, it warns, hence the label on 2 replicas. Ceph recommends a min_size of k+1 or more; Proxmox defaults to k+1 when m is above 1, and to k when m is 1. RBD and CephFS keep their metadata in a replicated pool even when the data is erasure coded, so Proxmox creates a -data and a -metadata pool for each. The custom k and m fields accept up to 32 each, the limits of Ceph's ISA plugin, but its default reed_sol_van technique refuses an m above 4.
Where Ceph came from
Ceph was presented at OSDI '06 in Seattle in November 2006 by Sage Weil, Scott Brandt, Ethan Miller, Darrell Long and Carlos Maltzahn of the University of California, Santa Cruz. Their design replaced allocation tables with a pseudo-random data distribution function called CRUSH. The CRUSH paper, given the same month at SC2006 in Tampa, describes mapping objects to storage devices without a central directory, under policies that enforce the separation of replicas across failure domains. That separation is the rule this calculator is built on.
Firefly, released on 7 May 2014, added erasure coding. Luminous, released on 29 August 2017, made BlueStore the default for new OSDs and gave erasure-coded pools full support for overwrites, so RBD and CephFS could use them. Proxmox VE 3.2, released on 10 March 2014, had added Ceph server management as a technology preview. The ratios used here are the defaults in Tentacle 20.2.4, from the release line that began on 18 November 2025.
vSAN's version of the same sums
VMware vSAN has supported erasure coding since vSAN 6.2 in February 2016: RAID-5 as 3+1 on at least four hosts, and RAID-6 as 4+2 on at least six. The Express Storage Architecture in vSAN 8 replaced 3+1 with two RAID-5 layouts, 2+1 at 1.5 times the data from three hosts and 4+1 at 1.25 times, which Broadcom's current tables list from six hosts. On six hosts a 4+1 object spans five and keeps the sixth spare. If the cluster is reduced to five hosts, vSAN keeps the object at 4+1 for 24 hours and then rewrites it as 2+1. A six-host ESA cluster planned to rebuild after one lost host can therefore safely hold 81.92 TB with the default drives, because the rebuilt objects take 1.5 times their size.
vSAN advises keeping consumption under 80 percent, because it starts rebalancing when a capacity device reaches 80 percent, and it needs at least three surviving hosts to rebuild after a failure. Broadcom's documentation lists RAID-5 and RAID-6 for all-flash clusters. vSAN's optional host rebuild reserve does the same job as the reserve here: it holds back the capacity of the largest host, needs at least four hosts and is off by default.
What the figures leave out
The figures assume identical hosts, one OSD per drive as Proxmox recommends, and data spread evenly. Real placement is uneven, and ceph df's MAX AVAIL follows whichever OSD will fill first, so the MAX AVAIL row here, worked out for an empty cluster with evenly weighted OSDs, runs high. Small objects cost more than the ratio suggests: BlueStore allocates in 4 KB units since Pacific, so a 1 KB S3 object strands roughly 9 KB with three replicas and allocates 24 KB on a 4+2 pool. Compression is left out. For a rack failure domain, enter racks as hosts, with the drives in each rack. vSAN's operations reserve, two-node and stretched clusters and RAID-1 with FTT 3 are not modelled.
The 2% metadata default comes from Ceph's guidance that RBD workloads usually need a block.db of no more than 1% to 2% of the block size. When block.db is moved to a faster device, Ceph recommends making it at least 2.5% of the block size, or at least 4% for RGW in its earlier guidance; the data drives then carry little or none of it, unless block.db fills and spills back onto them, so enter 0. Ceph also notes that more, smaller hosts are safer than fewer, denser ones, since recovery after a large host fails can push OSDs past the full ratio. The same sums of copies, parity and spares apply to a single RAID or ZFS pool, and a ZFS special vdev takes metadata off the data drives much as a separate block.db does.
Frequently asked questions
How much usable space does a Ceph cluster with 3 replicas give?
A third of raw on paper, less in practice. Five hosts with four 7.68 TB drives each hold 153.6 TB raw, or 51.2 TB as three replicas. Keeping one host free so data can re-heal, filling the rest only to the 85% nearfull ratio and allowing 2% for BlueStore metadata leaves 34.13 TB, which is 31.04 TiB.
Is erasure coding or replication better for Ceph?
Erasure coding stores more. A 4+2 profile writes 1.5 times the data, against 3 times for three replicas, and both keep the data through two failed hosts while still accepting writes with one down. On seven hosts with four 7.68 TB drives each, 4+2 safely holds 102.4 TB against 51.2 TB. The costs are more hosts, more space lost on small objects, and a replicated pool that RBD and CephFS still need for their metadata.
How many hosts does a Ceph erasure-coded pool need?
At least k+m with the default host failure domain, because no two chunks of an object may share a host, so 4+2 needs six hosts and 8+3 needs eleven. Ceph's documentation sees operational advantages in having at least k+m+1. With exactly k+m hosts, a failed host's chunks have nowhere else to go, so the pool stays degraded until the host returns.
Why does ceph df show more MAX AVAIL than this calculator?
MAX AVAIL projects how much a pool can take before its first OSD reaches the 95% full ratio, divided by the pool's size or by (k+m)/k. It holds nothing back for a failed host or for the nearfull warning. For the default cluster, empty, it shows about 44.24 TiB, while the safe figure is 31.04 TiB.
What are Ceph's nearfull, backfillfull and full ratios?
New clusters start with 0.85, 0.90 and 0.95. Past nearfull an OSD is flagged as nearfull and the cluster warns, past backfillfull it is considered too full to backfill, and at full Ceph stops clients reading and writing. The values are set when the cluster is created and afterwards live in the OSD map, where ceph osd set-nearfull-ratio and ceph osd set-full-ratio change them.
Can a three-node Proxmox Ceph cluster survive losing a node?
It keeps running: with Proxmox's defaults of 3 replicas and a min_size of 2, every object still has two copies and accepts writes. It cannot re-heal, because two hosts cannot hold three copies on separate hosts, so a failed drive can only be rebuilt on the other drives of its own host. Three hosts with four 7.68 TB drives each can safely hold 19.2 TB, against 25.6 TB with no reserve.
Sources
- Erasure code, Ceph Documentation
- Pools, Ceph Documentation
- Monitor Config Reference: Storage Capacity, Ceph Documentation
- BlueStore Configuration Reference, Ceph Documentation
- Hardware Recommendations, Ceph Documentation
- src/mon/PGMap.cc, get_rule_avail, Ceph source code, GitHub
- Deploy Hyper-Converged Ceph Cluster, Proxmox VE Administration Guide
- Ceph: A Scalable, High-Performance Distributed File System, USENIX, OSDI '06, Seattle, 2006
- Ceph: A Scalable, High-Performance Distributed File System, abstract, USENIX, OSDI '06 proceedings, 2006
- CRUSH: Controlled, Scalable, Decentralized Placement of Replicated Data, SC2006, PDF hosted by Ceph.io, 2006
- v0.80 Firefly released, Ceph.io blog, 2014
- v12.2.0 Luminous Released, Ceph.io blog, 2017
- Planning Capacity in vSAN, Broadcom TechDocs, VMware vSAN 8.0
- About Reserved Capacity in vSAN Cluster, Broadcom TechDocs, VMware vSAN 8.0
- Selecting the Best RAID Configuration for a vSAN Storage Cluster, Broadcom TechDocs, VMware Cloud Foundation 9.1
- The Use of Erasure Coding in VMware vSAN, VMware Cloud Foundation blog, 2018
- Adaptive RAID-5 Erasure Coding with the Express Storage Architecture in vSAN 8, VMware Cloud Foundation blog, 2022