Calculator
ZFS RAIDZ & dRAID capacity calculator
Work out the real usable space of a ZFS pool before you buy drives. Covers mirrors, RAIDZ1/2/3 and dRAID, and counts what simple calculators skip: allocation padding at your recordsize, distributed spares, and slop space.
Pool layout
Drive labels are decimal: a "16 TB" drive holds 14.55 TiB, which is the unit ZFS reports in.
Usable capacity at your recordsize
–
- Data at target fill
- Free headroom
- Slop reserve
- Redundancy + padding
- Spares
Breakdown
| At 80% fill | – |
|---|---|
| Raw capacity (all drives) | – |
| Simple estimate (parity only) | – |
| Pool size ZFS reports (128K basis, after slop) | – |
| Slop space reserve | – |
| Overall efficiency (usable ÷ raw) | – |
| Total drives | – |
| Drive failures survived | – |
| Redundancy groups per vdev | – |
| vdev spec | – |
Things to know about this layout
Create command
Efficiency by recordsize
Sectors written for one full record of each size. Small records on wide parity vdevs lose space to parity and padding.
| Recordsize | Data sectors | Allocated | Efficiency | Usable |
|---|
RAIDZ vs dRAID: which one?
RAIDZ uses a variable stripe width: a small block only writes as many sectors as it needs plus parity. It is the right default for pools of up to a few dozen drives, split into vdevs of 6 to 12 drives each.
dRAID (OpenZFS 2.1 and later) spreads data, parity and spare capacity across every drive in one large vdev. When a drive fails, the pool rebuilds onto the distributed spare sequentially from all remaining drives, which restores redundancy far faster than a RAIDZ resilver. The price is a fixed stripe width, so every block occupies at least one full stripe.
- Fewer than about 20 drives: RAIDZ2, or mirrors if you need IOPS.
- 20 to 90+ drives in one chassis, where rebuild time is the worry: dRAID2 with one or two distributed spares.
- The spec
draid2:8d:24c:2sreads: double parity, 8 data disks per group, 24 children, 2 distributed spares. - Distributed spares cannot be added or removed later, and a dRAID vdev cannot be expanded, so settle the layout up front.
Layouts for a Proxmox Backup Server datastore
PBS stores backups as millions of chunk files, up to about 4 MiB each, plus small index and metadata files. Garbage collection and verification touch every chunk, so metadata speed matters as much as raw capacity.
- Add a special vdev. A mirrored SSD special vdev holds the metadata and keeps garbage collection, verify and restore listings fast on a spinning-disk pool. Mirror it: losing the special vdev loses the pool.
- Raise recordsize to 1M on the datastore dataset. Chunks are large, so bigger records cut padding and metadata. Pick 1M above and compare.
- RAIDZ2 in 6 to 12 drive vdevs is the usual capacity layout. Use mirrors when restore speed matters more than cost per TB.
- Plan for 80% full. ZFS slows down as free space fragments, and PBS needs room between prune and garbage collection.
For the rest of the build, see installing and setting up Proxmox Backup Server and tuning compression and dedup.
How the math works
The calculator follows the allocation rules in OpenZFS, for one full, incompressible record.
- RAIDZ: a block of D data sectors needs
ceil(D / (width - parity)) * parityparity sectors, and the total is rounded up to a multiple ofparity + 1. On a 12-wide RAIDZ2 with 4K sectors, a 128K record is 32 data + 8 parity = 40 sectors, padded to 42: 76.2% efficient, not the 83.3% that (12 − 2) / 12 suggests. - dRAID: every block is written in full stripes of
d + paritysectors, so a block takesceil(D / d) * (d + parity). Spare capacity of s drives is set aside first. - Mirrors: one drive of capacity per vdev, however many copies.
- Pool size ZFS reports: ZFS sizes a parity pool as if everything were 128K records. Store larger records and more data fits than
zfs listfirst suggests; store smaller ones and less fits. - Slop space: ZFS holds back 1/32 of the pool (at least 128 MiB, at most 128 GiB) so it can always complete deletes.
Not modelled: compression and deduplication (which add space), metadata, partition labels and metaslab rounding (which take well under 1%), and partially filled last records of small files. Treat the result as a planning figure, not a guarantee.
Rather not build the pool at all?
Our hosted Proxmox Backup Server runs on high-IOPS SAS on ZFS with SSD metadata drives. Pay for the space your backups use, from $6.95/month with the first 1TB included.
See plansQuick reference
- RAIDZ1: survives 1 failure per vdev
- RAIDZ2: survives 2 per vdev
- RAIDZ3: survives 3 per vdev
- dRAID1/2/3: same parity, plus distributed spares
- Mirror: survives all but one drive per vdev
Related guides