PartsPrices › Blog › ZFS explained

ZFS explained: OpenZFS, TrueNAS and Proxmox

ZFS is the file system behind most home servers and many business storage systems. It checks every block it reads, repairs damage on its own, and takes instant snapshots. Here is how it works, where it came from, and how to plan a pool of drives for it.

PartsPrices guides · 28 November 2026 · about 14 minutes

A four-bay home server. ZFS joins its drives into one pool and keeps a checksum for every block on them.

What ZFS is

Most computers stack two separate layers on their drives: a volume manager or RAID that joins several drives together, and a file system (NTFS, ext4, APFS) that organises files on top. Neither knows much about the other. If a drive quietly returns wrong data, the RAID layer passes it up and the file system stores it as if it were fine.

ZFS does both jobs in one piece of software. Because it knows which files live on which drives, it can check data end to end, repair it from a good copy, and rebuild only the space that is actually in use after a drive fails.

JobTraditional setupZFS
Join drives, survive failuresHardware RAID card or mdadm / Storage SpacesBuilt in: mirrors, RAID-Z1/2/3, dRAID
Detect wrong dataUsually not at all (drives' own error codes only)Checksum on every block, checked on every read
Repair wrong dataNo: RAID cannot tell which copy is rightYes, automatically, from parity or the mirror copy
SnapshotsSeparate tools, often slowInstant, thousands per pool, no copy made
Rebuild after a failureCopies the whole drive, used or notCopies only blocks that hold data ("resilver")
Compression, encryption, quotasVaries by file systemPer dataset, turned on with one setting

The name originally stood for Zettabyte File System. It is a 128-bit design, so its size limits are far beyond any storage that exists. Today the name is simply "ZFS".

History: Sun ZFS, Oracle ZFS and OpenZFS

  1. 2001 Jeff Bonwick, Matthew Ahrens and Bill Moore start ZFS at Sun Microsystems.
  2. 2005 Source code released in OpenSolaris under the CDDL open-source licence.
  3. 2006 Ships in Solaris 10 (6/06 update).
  4. 2008 FreeBSD 7.0 includes ZFS. Apple tests it for Mac OS X, then drops it in 2009.
  5. 2010 Oracle buys Sun and stops publishing ZFS source code. The community forks the last open version (pool version 28) as illumos.
  6. 2013 ZFS on Linux is declared ready for production. The OpenZFS project is founded to coordinate open development across operating systems.
  7. 2016 Ubuntu 16.04 ships ZFS out of the box.
  8. 2020 OpenZFS 2.0: Linux and FreeBSD now use one shared code base. Adds zstd compression.
  9. 2021 FreeBSD 13 switches to OpenZFS. OpenZFS 2.1 adds dRAID.
  10. 2023 OpenZFS 2.2 adds block cloning (instant file copies).
  11. 2025 OpenZFS 2.3 adds RAID-Z expansion (grow a RAID-Z vdev one drive at a time) and faster deduplication. OpenZFS 2.4 follows in December with default quotas and faster encryption.

Oracle ZFS versus OpenZFS

Since 2010 there have been two separate lines of ZFS that can no longer share pools beyond version 28. When people say "ZFS" today they almost always mean OpenZFS.

Oracle Solaris ZFSOpenZFS
LicenceProprietary, closed sourceOpen source (CDDL)
Runs onOracle Solaris 11, Oracle ZFS Storage ApplianceLinux, FreeBSD, illumos; ports for macOS and Windows
Version schemePool version numbers (29 and up)"Feature flags" (pool version shown as 5000)
EncryptionSince Solaris 11 (2011)Native encryption since 0.8 (2019); a different format
Used byOracle customers, legacy Solaris serversTrueNAS, Proxmox, Ubuntu, FreeBSD, Unraid, QNAP, many clouds

What about "ZFS+"? There is no ZFS standard or product officially called ZFS+. The name is sometimes used loosely for ZFS plus its newer additions, or for vendor builds on top of OpenZFS (TrueNAS, QNAP's QuTS hero). Everything those offer comes from OpenZFS features described below, so check which OpenZFS version a product ships rather than its name.

Why ZFS is not built into Linux

OpenZFS uses the CDDL licence and the Linux kernel uses the GPL. Many lawyers consider the two incompatible, so ZFS is distributed as a separate module rather than inside the kernel. In practice this matters little: Ubuntu, Proxmox and TrueNAS ship the module ready to use, and other distributions build it automatically with DKMS. The one catch is that a brand-new Linux kernel can briefly be unsupported until OpenZFS catches up.

How ZFS is organised: pools, vdevs and datasets

ZFS has three layers. From the bottom up:

A pool called "tank" with one data vdev (hard drives) and one special vdev (SSDs) that holds the metadata. The amber drives stand for the two drives' worth of parity, which RAID-Z actually spreads over all six. Datasets share the pool's free space; none of them has a fixed size unless you set a quota.
  • Vdevs (virtual devices) are groups of drives with their own protection: a single drive, a mirror, or a RAID-Z group. Redundancy lives here and only here.
  • A pool (a "zpool") is made of one or more vdevs. ZFS spreads files across all the data vdevs, like RAID 0 across them. To grow a pool you add another vdev, or replace all drives in a vdev with bigger ones.
  • Datasets are file systems inside the pool, each with its own settings (compression, quotas, snapshots, sharing). A zvol is a dataset that looks like a raw disk, used for virtual machines and iSCSI.

Lose one vdev, lose the pool. Because files and metadata are spread across the vdevs, every vdev must have its own redundancy. Adding a single unprotected drive to a pool of mirrors puts the whole pool at the mercy of that one drive. ZFS warns you if you try.

Copy-on-write: never overwrite, always write new

A traditional file system changes a file by overwriting its blocks in place. If the power fails halfway, you get a half-old, half-new file and a "file system check" at the next boot.

ZFS never overwrites live data. Every change is written to free space, then the pointers above it are written anew, up to a single top block called the uberblock. Switching the uberblock is one small atomic write: the pool is either entirely in the old state or entirely in the new one. Step through it:

This one design gives ZFS three things at once. There is no need for a file system check after a crash. Snapshots are free: keeping the old uberblock's tree is all a snapshot is, so it takes no time and no space until data changes. And the checksums described next can live in the pointers, away from the data they protect.

Checksums and self-healing

Drives occasionally return the wrong data without reporting an error: a weak sector, a firmware bug, a bad cable, a controller writing to the wrong place. This is called silent data corruption or "bit rot". Ordinary RAID cannot catch it, and even if it noticed that two mirror copies differ, it would not know which one is right.

ZFS stores a checksum of every block in the pointer that leads to it. On every read it recalculates the checksum. If it does not match, ZFS reads the other copy (or rebuilds the block from parity), checks that one, returns the good data to the program, and writes the good data back over the bad copy.

Self-healing on a two-drive mirror. The program asking for the file only ever sees the good data; the repair is logged in zpool status.

Reads only check the data you happen to use. A scrub reads every block in the pool and repairs anything wrong, including files nobody has opened in years. Check that your system has one scheduled: once a month is a good rule for home pools.

ChecksumSpeedNotes
fletcher4FastestThe default. Detects corruption, not designed against deliberate tampering.
sha256, sha512SlowerCryptographic; needed for deduplication without extra verification.
blake3, skein, edonrFastCryptographic and quicker than SHA on modern processors (blake3 since OpenZFS 2.2).

RAID-Z and the vdev types

ZFS has its own versions of the RAID levels. RAID-Z1, Z2 and Z3 work like RAID 5, RAID 6 and "RAID 7": one, two or three drives' worth of parity per vdev. If you are new to RAID, our RAID guide explains striping, mirrors and parity with interactive arrays.

RAID-Z has one important advantage over hardware RAID 5 and 6: no write hole. Classic RAID updates data and parity in two separate writes, so a power cut between them leaves parity that no longer matches. RAID-Z writes every stripe as a new, complete unit (copy-on-write again), so parity is always consistent.

Vdev typeDrivesSurvivesUsable spaceBest for
Single drive (stripe)1Nothing100%Scratch space, a laptop's only drive (still gets checksums)
Mirror2+All but one drive50% (2-way), 33% (3-way)Virtual machines, databases, two-bay boxes; fastest resilver
RAID-Z13+1 drive(N−1)/N3 to 5 drives under about 8 TB
RAID-Z24+2 drives(N−2)/NThe usual choice for home and office storage: 6 to 10 large drives
RAID-Z35+3 drives(N−3)/NWide vdevs of very large drives, archives
dRAIDMany (20+)1 to 3 + sparesLike RAID-Z, minus sparesLarge servers: spare space is spread over all drives, so rebuilds are much faster

Support vdevs

Besides the vdevs that hold data, a pool can have helpers. Only add them for a clear reason.

HelperWhat it doesIf it failsWorth it when
SpareA drive that waits idle and replaces a failed one automaticallyNothing lostServers you can't reach quickly
Log (SLOG)Fast SSD that holds the ZFS intent log for synchronous writesAt most a few seconds of sync writes, and only with a crash at the same timeNFS shares for VMs, databases; useless for ordinary file copies
Cache (L2ARC)SSD that extends the RAM read cacheNothing lostThe working set is bigger than RAM, and you already have plenty of RAM
SpecialSSDs that hold metadata and, optionally, small filesWhole pool lost: always mirror itBig hard-drive pools with many small files or slow directory listings
DedupSSDs that hold the deduplication tableWhole pool lost: always mirror itOnly if you use deduplication (rare)

Growing a pool

  • Add a vdev: always possible. Add another mirror pair or another RAID-Z group of the same shape.
  • Replace drives with bigger ones: swap them one at a time, waiting for each resilver. When the last one is in, the vdev grows.
  • Add one drive to a RAID-Z vdev: possible since OpenZFS 2.3 (TrueNAS 24.10 and later, Proxmox VE 9). Data written before the expansion keeps its old data-to-parity ratio until it is rewritten, so the space gain at first is a little lower than the calculator shows.
  • Change RAID-Z1 to Z2, or remove a RAID-Z vdev: not possible. You must copy the data off and build a new pool. Mirrors and single drives can be removed, but only from a pool that has no RAID-Z or dRAID vdev.

Pool capacity calculator

Choose a layout and drives to see how much space you get. ZFS keeps a small reserve for itself ("slop space"), and performance drops once a pool is over about 80% full, so the calculator shows both figures.

usable
to stay under 80% full
DataParity (spread over all drives)Mirror copy

Drive makers count 1 TB = 1,000,000,000,000 bytes; operating systems usually show TiB (1 TiB = 1.0995 TB), which is why a "16 TB" drive shows as 14.6. RAID-Z also loses a few percent to padding depending on block size, so treat the figures as estimates. Prices for the drives are on our storage page.

Caching: ARC, L2ARC and the SLOG

ZFS uses spare RAM as a read cache called the ARC (Adaptive Replacement Cache). It keeps both recently used and frequently used blocks, so one big file copy does not push out everything else. A busy home server often answers most reads from RAM.

Left: where reads are answered from. Right: the two kinds of writes. Most file copies are asynchronous and never touch the log, and the log is only read back after a crash.
  • The ARC grows and shrinks. It uses memory nobody else needs and gives it back when programs ask. "ZFS is using all my RAM" is normal and healthy.
  • Writes are batched in RAM into "transaction groups" and flushed every few seconds, which turns many small writes into large, efficient ones.
  • Synchronous writes (databases, virtual machines, NFS) must be safe before the program continues. ZFS records them in the ZIL (ZFS intent log), normally a small area on the pool drives. A separate fast SSD for it, the SLOG, makes these writes much faster. Use an SSD with power-loss protection.
  • L2ARC extends the read cache onto an SSD. It needs some RAM to track what it holds, so on a machine short of memory it can make things slower. More RAM is almost always the better upgrade.

Snapshots, compression and other features

FeatureWhat it doesTip
SnapshotsFreeze a dataset at a moment, instantly. Browse old versions in the hidden .zfs/snapshot folder or roll back.Automatic hourly and daily snapshots are the best protection against ransomware and accidental deletes.
ClonesA writable copy of a snapshot that shares unchanged blocks.Proxmox uses them for linked VM clones.
Send / receiveStreams a snapshot, or only the changes since the last one, to another pool or machine.Fastest way to back up a ZFS pool; also how TrueNAS and Proxmox replicate.
CompressionCompresses each block as it is written; reads decompress transparently.Turn on LZ4 everywhere: it skips data that doesn't compress and often makes the pool faster. zstd squeezes more at a higher processor cost.
Native encryptionEncrypts a dataset with AES-256-GCM; snapshots can be sent and backed up still encrypted.Store the key or passphrase somewhere safe; without it, the data is gone for good.
Quotas and reservationsCap how much a dataset, user or group can use, or guarantee it space.Stops one family member's backups filling the pool.
Record sizeThe largest block size for a dataset (default 128 KiB).1 MiB for films and photos; 16 to 64 KiB for databases and VMs.
Block cloningCopies a file within the pool without copying its data.Since OpenZFS 2.2; makes large copies instant.
DeduplicationStores identical blocks only once.Needs a lot of RAM and rarely pays off at home; compression and block cloning are the better choice. OpenZFS 2.3's "fast dedup" reduces the cost.

Snapshots and RAID are not backups. They live on the same drives. A fire, theft, a failed controller writing garbage, or a mistyped zpool destroy takes them all. Keep a copy on another machine, ideally in another place: zfs send to a second box or an off-site service makes that easy.

Where ZFS runs

SystemBased onZFS roleWho it suits
TrueNAS Community EditionDebian LinuxThe only file system; managed from a web pageHome and small-office NAS builders
TrueNAS EnterpriseDebian LinuxSame software on iXsystems hardware, with supportBusinesses
Proxmox VEDebian LinuxBoot drive and storage for virtual machines and containersHome labs, virtualisation servers
Proxmox Backup ServerDebian LinuxRecommended storage for backup dataProxmox users
Ubuntu, Debian, Arch, FedoraLinuxOptional; Ubuntu ships it ready, others via a packagePeople comfortable with the command line
FreeBSDFreeBSDBuilt into the base system, default on installServers, firewalls (pfSense, OPNsense offer ZFS installs)
UnraidLinuxOptional pools since version 6.12 (2023), next to Unraid's own arrayHome media servers with mixed drive sizes
QNAP QuTS heroLinuxZFS-based operating system on many QNAP NAS modelsBuyers who want a ready-made box
illumos (OmniOS, SmartOS)OpenSolarisZFS's original homeSpecialist storage and hosting
Oracle Solaris 11.4SolarisOracle's closed ZFSExisting Oracle customers
OpenZFS on macOS / WindowsPortsCommunity ports; the Windows one is still in betaReading a ZFS drive on a desktop; not for important data

Synology NAS boxes, often compared with these, use Btrfs rather than ZFS. Btrfs also has checksums and snapshots, but the Btrfs project still lists its RAID 5/6 modes as unstable.

TrueNAS: a ZFS storage appliance you install yourself

TrueNAS, from iXsystems, began in 2005 as FreeNAS on FreeBSD. It turns a PC or server into a network storage box managed entirely from a web browser: create pools, share folders to Windows (SMB), Macs and Linux (NFS), schedule snapshots, scrubs and replication, and get an email when a drive starts failing.

EditionBaseStatus in late 2026
TrueNAS CORE (FreeNAS until 2020)FreeBSDLegacy: only occasional fixes; iXsystems recommends moving to Community Edition
TrueNAS SCALE (2022 to 2024)Debian LinuxSucceeded by Community Edition from version 25.04, which brought CORE and SCALE together
TrueNAS Community EditionDebian LinuxCurrent free version; 25.10 "Goldeye" (October 2025, still receiving updates in November 2026) is the version recommended for general use
TrueNAS EnterpriseSame as CommunitySold with iXsystems hardware and support, adds high availability

The Linux-based versions also run apps as Docker containers (Plex, Jellyfin, Nextcloud, Immich and many more) and simple virtual machines, so one box can serve files and media.

A typical TrueNAS home build

  • 4 to 8 hard drives in one RAID-Z2 vdev (or mirrors for a smaller build)
  • A small SSD to boot from: TrueNAS takes over its boot drive completely, so do not use a data drive
  • 16 GB of RAM or more; 32 GB if you run apps or VMs
  • ECC memory if the motherboard supports it (see hardware)
  • An Intel network adapter if you can: its drivers are the most reliable, while Realtek chips are a common source of trouble

Proxmox VE: ZFS under your virtual machines

Proxmox Virtual Environment is a free, Debian-based platform for running virtual machines and containers, popular in home labs and small businesses. ZFS is one of its storage options, chosen right in the installer.

  • ZFS boot drives: the installer can put Proxmox itself on a ZFS mirror of two SSDs, so the server keeps running if one fails.
  • VM disks as zvols: each virtual disk is a zvol, which gives you instant snapshots before an upgrade and quick rollback if it goes wrong.
  • Linked clones: new VMs from a template share its blocks and start in seconds.
  • Storage replication: Proxmox uses zfs send to copy VM disks to a second node every few minutes, so a VM can restart on the other node with little data loss, without shared storage.
  • Proxmox VE 9 (August 2025) ships OpenZFS 2.3, with RAID-Z expansion.

Pool layout for VMs. Virtual machines do many small random reads and writes. Mirrors (several mirror pairs in one pool, like RAID 10) handle that far better than RAID-Z, and SSDs far better than hard drives. A common setup: two SSDs mirrored for Proxmox and VM disks, plus hard drives in RAID-Z2 for bulk files and backups. Recent installers also cap the ARC at about 10% of RAM by default, leaving the rest to your VMs; you can raise it if memory is free.

TrueNAS or Proxmox?

TrueNAS Community EditionProxmox VE
Main jobFile storage and sharingRunning VMs and containers
ZFS managementEverything in the web interfaceBasics in the web interface, the rest on the command line
File sharingSMB, NFS, iSCSI built in, with users and permissionsNone built in; run a file-server container or VM
VMs and appsDocker apps, simple VMsFull-featured VMs, LXC containers, clustering, high availability
Common combinationProxmox on the server, with TrueNAS running inside a VM that is given the storage controller directly ("PCIe passthrough"), so ZFS still sees the real drives.

Choosing hardware for ZFS

PartRecommendationWhy
Hard drivesNAS or enterprise drives with CMR recordingSMR drives (shingled) can take days to resilver or drop out of the pool. Check the model's datasheet.
Drive controllerMotherboard SATA ports, or an HBA in "IT mode" (for example LSI 9300 series)ZFS needs to see each raw drive. Hardware RAID cards hide drives and errors from it.
Memory8 GB minimum, 16 to 32 GB typical; ECC if possibleMore RAM means a larger ARC. ECC protects data before ZFS has checksummed it.
SSDs for VMsNVMe or SATA SSDs with good sustained write speed and enduranceZFS and VMs write more than desktop use; cheap QLC drives slow down badly.
SLOG SSDSmall, very low latency, with power-loss protectionIts only job is to hold sync writes safely through a power cut.
Sector sizeashift=12 (4 KiB) when creating a poolMatches modern drives. It cannot be changed later; TrueNAS and Proxmox set it for you.
Boot driveA separate small SSD, mirrored if downtime mattersKeeps the system apart from the data pool. Avoid USB sticks: they wear out.

Compare current prices for NAS hard drives, SSDs and memory on our storage and memory pages, and see our RAM guide for what ECC means.

Common myths

MythReality
"You need 1 GB of RAM per TB of storage."It is a rule of thumb for a comfortable cache, not a requirement (Proxmox suggests about 2 GiB plus 1 GiB per TiB). A home pool without deduplication works with 8 to 16 GB; more RAM means more cache.
"ZFS without ECC memory will destroy your pool."ECC is a good idea for any server, but ZFS without ECC is no more dangerous than any other file system without ECC.
"You can never add drives to a RAID-Z vdev."True until 2025. OpenZFS 2.3 added RAID-Z expansion, one drive at a time.
"A SLOG speeds up all writes."Only synchronous writes. Copying files over SMB is usually asynchronous and gains nothing.
"ZFS is too complicated for home use."TrueNAS and Proxmox hide nearly all of it behind a web page. The main decision is the pool layout, made once.
"With ZFS I don't need backups."ZFS protects against drive failure and bit rot, not against deletion of the whole pool, theft or fire.

The commands you will actually use

Even on TrueNAS or Proxmox, these are handy in a terminal. zpool manages pools and drives; zfs manages datasets and snapshots.

CommandWhat it does
zpool statusHealth of every pool and drive, with read, write and checksum error counts
zpool listSize, used and free space of each pool
zpool create tank raidz2 sda sdb sdc sdd sde sdfCreates a pool of one 6-drive RAID-Z2 vdev (use /dev/disk/by-id names in practice)
zpool scrub tankReads and verifies every block, repairing what it can
zpool replace tank OLD NEWSwaps a failed drive for a new one and starts the resilver
zfs create -o compression=lz4 tank/photosCreates a dataset with compression on
zfs snapshot tank/photos@2026-11-28Takes a snapshot
zfs list -t snapshotLists snapshots and how much space each holds
zfs rollback tank/photos@2026-11-28Returns the dataset to that snapshot (later changes are lost)
zfs send -i @old tank/photos@new | ssh backup zfs receive pool/photosSends only the changes between two snapshots to another machine

In short

  • ZFS is a file system and RAID in one, so it can detect and repair bad data that ordinary RAID passes along.
  • OpenZFS is the open version everyone uses; Oracle's ZFS is a separate, closed branch. There is no separate "ZFS+" standard.
  • Plan the vdevs carefully: RAID-Z2 for bulk storage on large drives, mirrors for virtual machines.
  • TrueNAS makes ZFS a point-and-click NAS; Proxmox uses it to protect and snapshot virtual machines.
  • Scrub monthly, snapshot automatically, and still keep a backup somewhere else.