I’m agnostic on filesystems but on my Incus Host machines, I have always used BTRFS.
Long ago I used ZFS but that was before my working with LXD & Incus.
Lately, I’ve been searching if perhaps there is a significant reason when using Incus for using
either ZFS or BTRS that I’m not be aware of.
I’ve used LXD & now Incus for a long time and my Host Ubuntu filesystems have always been BTRFS.
For the Host both ZFS and BTRFS promote many of the same advanced file system features
- snapshots (automatic or manual)
- BTRFS sub-volumes or ZFS filesystem Datasets
- Rollback
- Compression
- COW
But there are differences to consider also!
BTRFS features, which are better than ZFS:
- BTRFS does support shrinking a partition but decreasing the size of a ZFS pool requires
creating a new, smaller pool and migrating the data - can be expanded by 1 drive at a time
- online convert RAID profile (including single and DUP)
- part of Linux kernel - upstream, supported and no potential license issue as w ZFS
- support for OverlayFS
ZFS has an edge over BTRFS regarding:
- RAIDZ has no write-hole issue as w BTRS Raid 5/6
Note:
This fact “may” be an important advantage of ZFS for some but I don’t see many screaming for BTRFS Raid 5/6 to be stabilized - ZFS has advanced cache tooling (however, with the death of Intel Optane, SLOG has become less used).
- ZFS has been around longer & more tested
- advanced optimizations such as per dataset compression
Incus VMs and COW Filesystems:
Running Incus VMs on COW filesystems like BTRFS and ZFS, the performance impact seems to have been reasonably addressed by both filesystems.
ZFS performs a bit better w VMs due to large caching support but at expense of greatly inceased memory utilization
BTRFS has fast VM performance but to prevent COW caused fragmentation the NOCOW attribute is used on VM images, Incus when it detects BTRFS automatically insures the COW is disabled for a new VM.
So my question is…
For an Incus focused use-case perspective is there a significant reason to use 1 or the other?
Or… in today’s world does it really matter any more?