On this pageTwo designs
LVM and ZFS both let you pool disks, carve out volumes and take snapshots, so they get compared as if they were rivals. They come from opposite directions. LVM is a thin volume manager that sits under any filesystem you like. ZFS is filesystem, volume manager and RAID in one design, built around the idea that the storage stack should verify every block it returns. Which one fits depends far more on your hardware and your restore needs than on benchmarks.
Two designs
LVM is part of the Linux kernel's device mapper. It turns disks into a pool and hands out block devices, and you put ext4 or XFS on top. Redundancy comes from a separate layer, mdadm software RAID, or LVM's own RAID volumes, which use the same kernel code. Every distribution installer understands it, and nothing about it needs extra packages.
ZFS organizes disks into a pool made of vdevs (single disks, mirrors or RAIDZ groups with one to three parity disks) and stores data in datasets that share the pool's free space. Everything is copy-on-write and every block carries a checksum. On Linux it comes from the OpenZFS project, whose current 2.4 series supports kernels up to 7.2. Its CDDL license keeps it out of the mainline kernel, so it ships as a separate module: prebuilt in Ubuntu (zfsutils-linux), built with DKMS from Debian's contrib section (zfs-dkms), and from the OpenZFS repositories on the RHEL family. A kernel update that arrives before the matching module is the classic way a ZFS server fails to mount its pool after a reboot, so test kernel updates before rolling them out.
Feature by feature
| LVM with ext4 or XFS | ZFS | |
|---|---|---|
| Snapshots | classic snapshots slow writes while they exist; thin snapshots are cheaper | instant and cheap, thousands per pool, writable clones |
| Data checksums | none for file data (ext4 and XFS checksum metadata only) | every block, verified on every read |
| Repairing bad data | not possible at this layer | automatic, from a mirror or parity copy |
| RAID | mdadm or LVM RAID |
mirrors and RAIDZ built in; RAIDZ expansion arrived in OpenZFS 2.3 |
| Compression | none (VDO volumes on the RHEL family add it) | per dataset, lz4 or zstd |
| Replication | file-level tools such as rsync | zfs send and zfs receive, incremental |
| Memory | very little | ARC cache grows into free RAM, tunable |
| Shrinking | ext4 volumes shrink offline | pools cannot shrink in most layouts |
| Licensing | GPL, in the kernel | CDDL, separate module |
The integrity rows are the real dividing line. A disk that silently returns wrong data, a bad cable or a controller bug goes unnoticed under LVM until an application reads garbage. ZFS detects it on the next read or on a scheduled scrub, and with redundancy it rewrites the bad block from a good copy.
The memory question
ZFS keeps its read cache, the ARC, outside the normal page cache. It takes free memory and gives it back under pressure, but an application that suddenly allocates a lot can still collide with it. On a small server, cap it:
echo "options zfs zfs_arc_max=1073741824" | sudo tee /etc/modprobe.d/zfs.conf # 1 GiB from next boot
echo 1073741824 | sudo tee /sys/module/zfs/parameters/zfs_arc_max # apply now
Deduplication is the feature that truly needs memory. OpenZFS 2.3 made it cheaper, but for most servers compression gives a better return with none of the risk.
A quick ZFS session
sudo apt install zfsutils-linux # Ubuntu
sudo zpool create -o ashift=12 tank mirror /dev/sdb /dev/sdc
sudo zfs create -o compression=lz4 tank/www
sudo zfs snapshot tank/www@before-upgrade
sudo zfs list -t snapshot
sudo zfs rollback tank/www@before-upgrade # undo everything since the snapshot
sudo zpool scrub tank && zpool status tank
ashift=12 aligns the pool to 4 KiB sectors and cannot be changed after creation. Incremental replication sends only the blocks that changed between two snapshots, for example zfs send -i tank/www@mon tank/www@tue | ssh backup-host zfs receive backup/www, which makes off-site copies of large datasets fast.
On a VPS with one virtual disk
A single-disk pool still checksums everything, but it can only report corrupted file data, not repair it, unless you set copies=2 on a dataset and pay for it with half the capacity. Redundancy of the underlying storage is the host's job either way. What ZFS still brings to a VPS is compression, cheap per-dataset snapshots and zfs send replication to a backup server.
The simpler stack usually wins here: ext4 or XFS, with or without LVM, and whole-disk snapshots at the provider. On CloudSat, server snapshots give you up to 10 rollback points per server for $0.0384 per GB per month, so ZFS matters mainly when you want frequent fine-grained snapshots or replication of one dataset.
On a dedicated server with several disks
Here ZFS shows its strengths. A pool of mirrors or RAIDZ2, monthly scrubs, compression and zfs send to an off-site machine form a complete storage plan, which is why TrueNAS is built on it and Proxmox VE offers it at install time. ECC memory helps any filesystem, ZFS included, but ZFS does not depend on it more than the others do.
LVM over mdadm remains a sound choice when memory is tight, when a database vendor documents its tuning for XFS or ext4, or when the team already knows the tools. Many setups combine both: an LVM root for the operating system and a ZFS pool for data.
Where Btrfs fits
Btrfs offers checksums, snapshots, compression and send and receive inside the mainline kernel, with no separate module. Fedora Workstation and openSUSE use it by default. Its single-disk, RAID 1 and RAID 10 modes are mature; its own documentation still warns against RAID 5 and 6 for important data. It is the natural pick when you want ZFS-style snapshots on a distribution that ships nothing out of tree.
Pick in one minute
- Single-disk VPS, standard web or app stack: ext4 or XFS, LVM if you like flexible volumes, provider snapshots for rollback.
- Multi-disk dedicated server holding important data: ZFS with mirrors or RAIDZ2 and scheduled scrubs.
- You need ZFS features but no out-of-tree module: Btrfs, avoiding RAID 5 and 6.
- Memory is scarce or the database vendor prescribes XFS: LVM with XFS on
mdadm.
FAQ
Is ZFS faster than ext4 on LVM?
It depends on the workload. Compression can raise effective throughput and the ARC speeds up repeated reads, while copy-on-write adds work to small random writes. Test your own pattern with fio before deciding on speed grounds.
Can I put the root filesystem on ZFS?
Yes. Ubuntu's desktop installer offers it, and other distributions document manual setups. On servers many people keep root on ext4 or XFS and use ZFS for data, so a module problem after a kernel update never stops the machine from booting.
Can I convert LVM to ZFS in place?
No. Create the pool on new disks or free space, copy the data across with rsync -aHAX or a backup restore, switch the mount points, and only then reuse the old disks as extra vdevs.
Run it on CloudSat. Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. See plans or deploy a server.




