Skip to content

The Neighbours

Btrfs is one answer to "how should files live on disks". This chapter sets it beside the three neighbours a Linux user actually chooses between, so the choice — in either direction — is made on facts. The comparisons are characterised from each project's documentation and from this guide's lab where it ran; no benchmarks were run and none are claimed.

ZFS

The elder copy-on-write filesystem, and the one btrfs is always measured against. ZFS brings the same headline set — checksums, snapshots, send and receive, its own volume management — with a longer production history, a reputation for conservatism that is meant as praise, and RAID-Z, which solves parity without the write hole of chapter 8. Its costs: a licence that keeps it outside the Linux kernel proper (it arrives as a module, or with a distribution that ships it), a design that prefers to own whole disks and substantial RAM for caching, and an administration dialect (zpool, zfs) entirely its own. If snapshots and checksums are what drew you here and the licence arrangement does not trouble you, ZFS is the sober choice; btrfs's answer is that it is simply there, in every kernel, flexible about odd-sized disks, and happy to convert and rebalance in ways ZFS makes harder. The companion guide ZFS for Mere Mortals teaches it properly.

ext4

The traditional default: no copy-on-write, no snapshots, no checksums on data (its journal and metadata checksums guard the structure, not your files' contents). What ext4 offers instead is forty years of accumulated trust, predictable behaviour under every workload including the ones that fight CoW, simple space accounting a beginner can verify with df, and repair tools (e2fsck) with a long, well-understood record. For a laptop, a boot disk, a database volume — anywhere snapshots are handled by something else or not wanted — ext4 is not the boring choice. It is the choice that knows exactly what it is.

LVM (with the filesystem of your choice)

The Logical Volume Manager separates the two jobs btrfs fuses: LVM carves devices into volumes (and can mirror and snapshot at the block level), while a plain filesystem (usually ext4 or XFS) lives on top. You gain mix-and-match freedom and mature RAID through the device-mapper/mdadm world; you lose the fusion's best trick — LVM snapshots do not know which blocks are files, so there is no per-file checksum story, no send and receive of a filesystem's own history, and extending a volume and then its filesystem is two operations that must both be remembered. SnapRAID (the companion guide's subject) belongs to this neighbourhood too: parity computed on a schedule over ordinary filesystems, a fine fit for write-rarely media archives, no help at all for live data.

Choosing, in one paragraph

One machine, kernel-native, snapshots and mirrors with flexible disks: btrfs. Maximum paranoia, dedicated storage, licence acceptable: ZFS. Simple, proven, snapshots someone else's problem: ext4. Storage plumbing you compose yourself: LVM plus a plain filesystem. None of the four makes a backup; every one of them still needs chapter 7's journey to somewhere else.