Every ZFS administrator knows the problem: zfs list shows datasets and snapshots, but without context. How much space does a single dataset consume relative to the pool? Which snapshots are the largest? Which ones can be safely removed?
zfsdu solves exactly this problem. This open-source tool by DATAZONE provides an interactive terminal user interface (TUI) for ZFS storage systems — comparable to the popular ncdu, but purpose-built for ZFS with integrated snapshot management.
What zfsdu Does
Hierarchical Navigation
zfsdu displays ZFS pools, datasets, and volumes as an expandable tree structure. Navigate the entire storage hierarchy using keyboard or mouse — including all snapshots. Relative sizes are visualised as bar graphs, making storage hogs immediately visible.
Snapshot Management
The core feature: snapshots can be marked and bulk-deleted directly in the interface. No more tedious assembly of zfs destroy commands. Before deletion, the built-in dry-run mode shows which snapshots would be affected — without actually executing anything.
Search, Sorting, and Filtering
Datasets and snapshots can be searched by name with the view filtered accordingly. Sorting toggles between size, creation date, and name — depending on what matters at the moment.
Additional Features
- Midnight Commander-style interface with mouse support
- Customisable colour schemes
- Auto-refresh (default: 30 seconds, configurable via
~/.config/zfsdu/config.toml) - Written in Rust — fast, safe, and resource-efficient
Installation
Install with a single command:
curl -sSL https://gitlab.datazone.de/kidev/zfsdu/-/raw/main/install-binary.sh | sudo bash
Alternatively, build from source (Rust required):
git clone https://gitlab.datazone.de/kidev/zfsdu.git
cd zfsdu
cargo build --release
Requirements
- Linux with ZFS installed
- UTF-8 capable terminal
- Root privileges for snapshot deletion operations
Licence and Source Code
zfsdu is released under the CDDL licence — the same licence as OpenZFS itself. The full source code is available at: gitlab.datazone.de/kidev/zfsdu
Conclusion
Anyone who regularly works with ZFS snapshots — whether on TrueNAS, Proxmox, or plain Linux systems — gains a tool with zfsdu that noticeably simplifies day-to-day operations. Instead of cryptic one-liners in the terminal, you get a clear, interactive interface with real added value.
DATAZONE supports you with setting up and optimising your ZFS environment — get in touch for a no-obligation consultation.
More on these topics:
More articles
TrueNAS on Old Hardware: Recycle or Buy New?
TrueNAS on decommissioned server hardware: when recycling for backup and secondary storage makes sense, when ECC RAM, HBA and PSU need to be new.
Samba as Active Directory: Replacing a Windows Domain
Replace Windows Server AD with Samba 4 AD-DC: BIND9 DNS integration, replication, group policy limits and coexistence during migration.
TrueNAS Made in USA: Honestly Assessing the Data Privacy Debate for EU Customers
TrueNAS is developed in the US -- is that a GDPR problem? An honest look at CLOUD Act, telemetry, source-available code and support contracts for EU customers.