Unlike Btrfs, it is NOT possible to select ZFS when formatting your "/" partition. So, from the LiveUSB it is not possible to install on a hard drive ZFS running as the root file system, i.e., /boot residing in a ZFS pool.
On the ZFS - Ubuntu Kiki I read yesterday that ZFS CAN be used as the root file system:
My assumption is that those two utilities have to be installed on a persistent LiveUSB so they can be used when using the LiveUSB to install ZFS as the root file system, and the rest of the distro, on the target HD. This follows from the instructions given to make ZFS a root file system on Ubuntu 16.04 and 18.04
On Ubuntu, Kubuntu and Neon choosing Btrfs as the root file system is drop dead easy. Just assign Btrfs as the file system for "/" on the partition in the installation section where the HD is prepared. When the installation is complete the "Root_FS" contains @ and @home, which are bound to / and /home in /etc/fstab.
To create an installation where ZFS is the root file system on "/" (which would include /boot) there is a 9 step process which is so complicated that 95% of most Linux users wouldn't begin to attempt it, and of the 5% that do probably less than half would succeed.
Limitations: Only 64b systems, no dual booting, and ZFS must be installed on /dev/sdX, not /dev/sdXn, no trim command, and the cddl license.
The problem: ZFS lacks a systemd mount generator. The problem was discussed extensively two years ago and, apparently, little progress has been made.
Perusing the installation instructions for either 16.04 or 18.04 I can predict that there will be few people who try to install ZFS as a root file system, even if they have the gazillion GB of RAM necessary to run it at an adequate speed.
On the ZFS - Ubuntu Kiki I read yesterday that ZFS CAN be used as the root file system:
Installing ZFS on Ubuntu
The ZFS filesystem is available for Ubuntu as either a FUSE module or a native kernel module. The kernel module is provided by default. To install the user-level tools, simply install:
sudo apt install zfsutils-linux
For all current versions from 16.04 onward.
In addition to be able to have ZFS on root, install:
sudo apt install zfs-initramfs
The ZFS filesystem is available for Ubuntu as either a FUSE module or a native kernel module. The kernel module is provided by default. To install the user-level tools, simply install:
sudo apt install zfsutils-linux
For all current versions from 16.04 onward.
In addition to be able to have ZFS on root, install:
sudo apt install zfs-initramfs
On Ubuntu, Kubuntu and Neon choosing Btrfs as the root file system is drop dead easy. Just assign Btrfs as the file system for "/" on the partition in the installation section where the HD is prepared. When the installation is complete the "Root_FS" contains @ and @home, which are bound to / and /home in /etc/fstab.
To create an installation where ZFS is the root file system on "/" (which would include /boot) there is a 9 step process which is so complicated that 95% of most Linux users wouldn't begin to attempt it, and of the 5% that do probably less than half would succeed.
Limitations: Only 64b systems, no dual booting, and ZFS must be installed on /dev/sdX, not /dev/sdXn, no trim command, and the cddl license.
The problem: ZFS lacks a systemd mount generator. The problem was discussed extensively two years ago and, apparently, little progress has been made.
Until ZFS gains a systemd mount generator, there are races between mounting filesystems and starting certain daemons. In practice, the issues (e.g. #5754) seem to be with certain filesystems in /var, specifically /var/log and /var/tmp. Setting these to use legacy mounting, and listing them in /etc/fstab makes systemd aware that these are separate mountpoints.
Comment