Pools & Mirrors — ZFS on exampleHost
ZFS on exampleHost guards data in twin Samsung mirrors. The following rites inspect and maintain the pools.
See also Vaults of the Machine-Spirit for the architectural overview.
Commands for Maintenance
Section titled “Commands for Maintenance”# Pool statuszpool status
# Disk usagezfs list -r rpool bpool
# Existing snapshotszfs list -t snapshot -r rpool
# Begin manual scrubzpool scrub rpoolzpool scrub bpool# Track progresszpool status -wZFS & Bound Daemons (Docker)
Section titled “ZFS & Bound Daemons (Docker)”Docker uses ZFS as the storage driver on exampleHost.
Image layers and volumes are datasets beneath /var/lib/docker.
# Verify the storage driverdocker info | grep "Storage Driver"zfs list | grep dockerzrepl — The Snapshot Archive
Section titled “zrepl — The Snapshot Archive”zrepl pulls snapshots from storage2.retrohive.fr (the archive-shrine)
into rpool/backup/storage2 on exampleHost.
# Job statussudo zrepl status
# List received snapshotszfs list -t snapshot rpool/backup/storage2Retention is configured: 7 days (all) + 3 months (30 days per month).
Important Notes
Section titled “Important Notes”zfs.forceImportRoot = false— NixOS does not force-import pools at bootneededForBoot = trueon all ZFS datasets (including/home) for uniformitycanTouchEfiVariables = false— GRUB is installed in removable mode, no EFI variables are touched- Disk IDs are hardcoded in
boot.nix— if disks change, update bothboot.nixanddisko.nix