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.
| Job | Traditional setup | ZFS |
|---|---|---|
| Join drives, survive failures | Hardware RAID card or mdadm / Storage Spaces | Built in: mirrors, RAID-Z1/2/3, dRAID |
| Detect wrong data | Usually not at all (drives' own error codes only) | Checksum on every block, checked on every read |
| Repair wrong data | No: RAID cannot tell which copy is right | Yes, automatically, from parity or the mirror copy |
| Snapshots | Separate tools, often slow | Instant, thousands per pool, no copy made |
| Rebuild after a failure | Copies the whole drive, used or not | Copies only blocks that hold data ("resilver") |
| Compression, encryption, quotas | Varies by file system | Per 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
- 2001 Jeff Bonwick, Matthew Ahrens and Bill Moore start ZFS at Sun Microsystems.
- 2005 Source code released in OpenSolaris under the CDDL open-source licence.
- 2006 Ships in Solaris 10 (6/06 update).
- 2008 FreeBSD 7.0 includes ZFS. Apple tests it for Mac OS X, then drops it in 2009.
- 2010 Oracle buys Sun and stops publishing ZFS source code. The community forks the last open version (pool version 28) as illumos.
- 2013 ZFS on Linux is declared ready for production. The OpenZFS project is founded to coordinate open development across operating systems.
- 2016 Ubuntu 16.04 ships ZFS out of the box.
- 2020 OpenZFS 2.0: Linux and FreeBSD now use one shared code base. Adds zstd compression.
- 2021 FreeBSD 13 switches to OpenZFS. OpenZFS 2.1 adds dRAID.
- 2023 OpenZFS 2.2 adds block cloning (instant file copies).
- 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 ZFS | OpenZFS | |
|---|---|---|
| Licence | Proprietary, closed source | Open source (CDDL) |
| Runs on | Oracle Solaris 11, Oracle ZFS Storage Appliance | Linux, FreeBSD, illumos; ports for macOS and Windows |
| Version scheme | Pool version numbers (29 and up) | "Feature flags" (pool version shown as 5000) |
| Encryption | Since Solaris 11 (2011) | Native encryption since 0.8 (2019); a different format |
| Used by | Oracle customers, legacy Solaris servers | TrueNAS, 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:
- 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.
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.
| Checksum | Speed | Notes |
|---|---|---|
fletcher4 | Fastest | The default. Detects corruption, not designed against deliberate tampering. |
sha256, sha512 | Slower | Cryptographic; needed for deduplication without extra verification. |
blake3, skein, edonr | Fast | Cryptographic 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 type | Drives | Survives | Usable space | Best for |
|---|---|---|---|---|
| Single drive (stripe) | 1 | Nothing | 100% | Scratch space, a laptop's only drive (still gets checksums) |
| Mirror | 2+ | All but one drive | 50% (2-way), 33% (3-way) | Virtual machines, databases, two-bay boxes; fastest resilver |
| RAID-Z1 | 3+ | 1 drive | (N−1)/N | 3 to 5 drives under about 8 TB |
| RAID-Z2 | 4+ | 2 drives | (N−2)/N | The usual choice for home and office storage: 6 to 10 large drives |
| RAID-Z3 | 5+ | 3 drives | (N−3)/N | Wide vdevs of very large drives, archives |
| dRAID | Many (20+) | 1 to 3 + spares | Like RAID-Z, minus spares | Large 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.
| Helper | What it does | If it fails | Worth it when |
|---|---|---|---|
| Spare | A drive that waits idle and replaces a failed one automatically | Nothing lost | Servers you can't reach quickly |
| Log (SLOG) | Fast SSD that holds the ZFS intent log for synchronous writes | At most a few seconds of sync writes, and only with a crash at the same time | NFS shares for VMs, databases; useless for ordinary file copies |
| Cache (L2ARC) | SSD that extends the RAM read cache | Nothing lost | The working set is bigger than RAM, and you already have plenty of RAM |
| Special | SSDs that hold metadata and, optionally, small files | Whole pool lost: always mirror it | Big hard-drive pools with many small files or slow directory listings |
| Dedup | SSDs that hold the deduplication table | Whole pool lost: always mirror it | Only 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.
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.
- 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
| Feature | What it does | Tip |
|---|---|---|
| Snapshots | Freeze 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. |
| Clones | A writable copy of a snapshot that shares unchanged blocks. | Proxmox uses them for linked VM clones. |
| Send / receive | Streams 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. |
| Compression | Compresses 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 encryption | Encrypts 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 reservations | Cap how much a dataset, user or group can use, or guarantee it space. | Stops one family member's backups filling the pool. |
| Record size | The largest block size for a dataset (default 128 KiB). | 1 MiB for films and photos; 16 to 64 KiB for databases and VMs. |
| Block cloning | Copies a file within the pool without copying its data. | Since OpenZFS 2.2; makes large copies instant. |
| Deduplication | Stores 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
| System | Based on | ZFS role | Who it suits |
|---|---|---|---|
| TrueNAS Community Edition | Debian Linux | The only file system; managed from a web page | Home and small-office NAS builders |
| TrueNAS Enterprise | Debian Linux | Same software on iXsystems hardware, with support | Businesses |
| Proxmox VE | Debian Linux | Boot drive and storage for virtual machines and containers | Home labs, virtualisation servers |
| Proxmox Backup Server | Debian Linux | Recommended storage for backup data | Proxmox users |
| Ubuntu, Debian, Arch, Fedora | Linux | Optional; Ubuntu ships it ready, others via a package | People comfortable with the command line |
| FreeBSD | FreeBSD | Built into the base system, default on install | Servers, firewalls (pfSense, OPNsense offer ZFS installs) |
| Unraid | Linux | Optional pools since version 6.12 (2023), next to Unraid's own array | Home media servers with mixed drive sizes |
| QNAP QuTS hero | Linux | ZFS-based operating system on many QNAP NAS models | Buyers who want a ready-made box |
| illumos (OmniOS, SmartOS) | OpenSolaris | ZFS's original home | Specialist storage and hosting |
| Oracle Solaris 11.4 | Solaris | Oracle's closed ZFS | Existing Oracle customers |
| OpenZFS on macOS / Windows | Ports | Community ports; the Windows one is still in beta | Reading 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.
| Edition | Base | Status in late 2026 |
|---|---|---|
| TrueNAS CORE (FreeNAS until 2020) | FreeBSD | Legacy: only occasional fixes; iXsystems recommends moving to Community Edition |
| TrueNAS SCALE (2022 to 2024) | Debian Linux | Succeeded by Community Edition from version 25.04, which brought CORE and SCALE together |
| TrueNAS Community Edition | Debian Linux | Current free version; 25.10 "Goldeye" (October 2025, still receiving updates in November 2026) is the version recommended for general use |
| TrueNAS Enterprise | Same as Community | Sold 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 sendto 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 Edition | Proxmox VE | |
|---|---|---|
| Main job | File storage and sharing | Running VMs and containers |
| ZFS management | Everything in the web interface | Basics in the web interface, the rest on the command line |
| File sharing | SMB, NFS, iSCSI built in, with users and permissions | None built in; run a file-server container or VM |
| VMs and apps | Docker apps, simple VMs | Full-featured VMs, LXC containers, clustering, high availability |
| Common combination | Proxmox 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
| Part | Recommendation | Why |
|---|---|---|
| Hard drives | NAS or enterprise drives with CMR recording | SMR drives (shingled) can take days to resilver or drop out of the pool. Check the model's datasheet. |
| Drive controller | Motherboard 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. |
| Memory | 8 GB minimum, 16 to 32 GB typical; ECC if possible | More RAM means a larger ARC. ECC protects data before ZFS has checksummed it. |
| SSDs for VMs | NVMe or SATA SSDs with good sustained write speed and endurance | ZFS and VMs write more than desktop use; cheap QLC drives slow down badly. |
| SLOG SSD | Small, very low latency, with power-loss protection | Its only job is to hold sync writes safely through a power cut. |
| Sector size | ashift=12 (4 KiB) when creating a pool | Matches modern drives. It cannot be changed later; TrueNAS and Proxmox set it for you. |
| Boot drive | A separate small SSD, mirrored if downtime matters | Keeps 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
| Myth | Reality |
|---|---|
| "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.
| Command | What it does |
|---|---|
zpool status | Health of every pool and drive, with read, write and checksum error counts |
zpool list | Size, used and free space of each pool |
zpool create tank raidz2 sda sdb sdc sdd sde sdf | Creates a pool of one 6-drive RAID-Z2 vdev (use /dev/disk/by-id names in practice) |
zpool scrub tank | Reads and verifies every block, repairing what it can |
zpool replace tank OLD NEW | Swaps a failed drive for a new one and starts the resilver |
zfs create -o compression=lz4 tank/photos | Creates a dataset with compression on |
zfs snapshot tank/photos@2026-11-28 | Takes a snapshot |
zfs list -t snapshot | Lists snapshots and how much space each holds |
zfs rollback tank/photos@2026-11-28 | Returns the dataset to that snapshot (later changes are lost) |
zfs send -i @old tank/photos@new | ssh backup zfs receive pool/photos | Sends 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.