1. Home
  2. Developer tools
  3. ZFS Capacity Calculator

ZFS Capacity Calculator

Plan a ZFS pool before buying disks. Enter the RAIDZ level, disks per vdev, disk size and number of vdevs and get the approximate usable space.

Free, no sign-up. Runs in your browser: nothing is uploaded.

How to use ZFS Capacity Calculator

  1. Choose the RAIDZ level.
  2. Enter disks per vdev, disk size and vdev count.
  3. Read the usable space and the 80 percent level.

Features

  • RAIDZ1, RAIDZ2 and RAIDZ3
  • Multiple vdevs per pool
  • Slop space reserve (1/32)
  • TB and TiB results
  • Recommended maximum fill
  • Warning for RAIDZ1 on large disks

Supported formats

Input

  • Disk count and size
  • RAIDZ level

You get

  • Usable capacity
  • Parity overhead

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the ZFS Capacity Calculator is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • Padding, metadata and compression make real usable space differ from the estimate.
  • Only one vdev layout is calculated at a time.

Guide

Estimating usable space in a ZFS RAIDZ pool

A ZFS pool is built from vdevs, and a RAIDZ vdev is ZFS’s version of RAID 5, 6 or 7 with one, two or three disks of parity. The number on the drives’ labels is never the number you get to use. The page walks from raw capacity to a realistic planning figure so you can size a pool before buying disks.

The steps from raw to usable

Raw capacity is the number of disks times their size across all vdevs. Parity takes one disk’s worth of space per vdev for RAIDZ1, two for RAIDZ2 and three for RAIDZ3, leaving the capacity after parity. ZFS then reserves slop space, 1/32 of the pool by default, so that a full pool can still delete files and commit changes. What is left is the approximate usable space. The page also reports it in TiB because ZFS tools use powers of 1024, and drives are sold in decimal TB.

The 80 percent guideline

ZFS is a copy-on-write file system and needs free blocks to write into. As a pool fills, free space becomes fragmented and performance falls, so many administrators plan to stay below about 80 percent. The page therefore shows a “comfortable fill level” at 80 percent of the usable figure, which is the number to use when promising capacity to users. It is guidance rather than a limit: a pool of mostly large, sequentially written files tolerates more.

Entering a design

Choose the RAIDZ level, the number of disks per vdev, the disk size in TB and the number of vdevs. Presets load six 10 TB disks in RAIDZ2, two vdevs of eight 16 TB disks in RAIDZ2, and four 4 TB disks in RAIDZ1. A pool made of several vdevs multiplies the parity cost, because every vdev pays it, so two small vdevs yield less space than one wide one built from the same disks, in exchange for more parallelism.

A worked example

Six 10 TB disks in one RAIDZ2 vdev give 60.00 TB raw. Two disks go to parity, which leaves 40.00 TB. The slop reserve takes 1/32 of that, 1.25 TB, so the approximate usable space is 38.75 TB (35.24 TiB). A comfortable fill level at 80 percent is 31.00 TB, and the efficiency is 65 % of raw. A pool of those disks that is nearly full would be both slow and uncomfortably close to the reserve.

Limits

Real pools are slightly smaller again because of block padding on small records and metadata. Compression and deduplication can make stored data larger than the pool, and special vdevs, hot spares and cache devices are not counted. RAIDZ expansion and different record sizes change the behaviour too. Treat the page as a planning tool and use zpool list and zfs list on the real system. For classic RAID levels use the RAID Calculator.

Choosing a layout

Capacity is only one input to the design. A RAIDZ vdev delivers roughly the random I/O of a single disk, so a pool of one wide vdev is good for streaming large files and poor for many small random reads. Mirrors give far better random performance and grow by adding pairs, at the cost of half the raw space. Larger drives take longer to resilver, which is a reason to prefer RAIDZ2 over RAIDZ1 for big disks. Enter a few candidate layouts into the calculator, compare the usable figures, and then weigh them against how the pool will be used.

Checked against the current version of the ZFS Capacity Calculator on .

Frequently asked questions

Why keep a ZFS pool below 80 percent full?

As a pool fills, free space fragments and the allocator works harder, so writes slow down. The 80 percent figure is a common rule of thumb, not a hard limit, and fast pools can run fuller.

Is it better to build one wide vdev or several narrow ones?

Wider vdevs give more usable space per parity disk, narrower vdevs give more parallel operations and shorter resilvers. The page compares capacity only, so weigh performance and risk separately.

Why does my pool show less space than the disks add up to?

Parity takes disks’ worth of space, drive makers count in TB while ZFS reports TiB, and ZFS keeps a slop reserve. Padding and metadata take a little more.

How full should a ZFS pool get?

Many administrators keep it under 80 percent, because performance falls as free space shrinks and fragmentation grows.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.