Installs Debian GNU/Linux 9 Stretch to a native ZFS root filesystem using a Debian Stretch Live CD. Installation with a Debian Jessie Live CD is supported as well, ZFS packages from backports.org will be used in this case.
- Boot Stretch Live CD ('standard' edition)
- Login (user:
user
, password:live
) and become root - Setup network and export
http_proxy
environment variable (if needed) - Run this script
- User interface: Select disks and RAID level
- Let the installer do the work
- User interface: install grub to all disks participating in the array
- User interface: enter root password and select timezone
- Reboot
- grub (v2.02, included in Debian 9), especially
grub-probe
, does not support all ZFS features and subsequently refuses to install. This script disablesfeature@hole_birth
andfeature@embedded_data
(and you must not enable those features after installation). - Some mountpoints, notably
/var
, need to be mounted via fstab as the ZFS mount script runs too late during boot. - The EFI System Partition (ESP) is a single point of failure on one disk, this is arguably a mis-design in the UEFI specification.
- Booting via EFI has not been tested at all.
- During installation you might encounter some SPL package errors (
Please make sure the kmod spl devel package is installed
) which can be ignored safely. grub-install
mysteriously fails for disk numbers >= 4 (grub-install: error: cannot find a GRUB drive for /dev/disk/by-id/...
).