Pains of maintaining a ZFS system
It can be hard to maintain a Linux system, much more one that is built on ZFS. I’ve been recently trying to reinstall my Linux system on a new dataset. Here, I’ll detail some of the tasks someone who’s like me can miss while doing so.
Login incorrect
- You can reset passwords using
passwd. - Check if the users’ login shell is installed (zsh, xonsh, etc.).
ZFS failed to mount on boot
- Check if
zfs-linuxis installed. - Check if ZFS units are enabled:
- Common:
zfs.targetzfs-mount.service- Mounts ZFS datasets.zfs-import.service?zfs-zed.service
- Cached:
zfs-import-cache.service
- Not cached:
zfs-import-scan.service
- Common:
ZFS root dataset mounted as read-only
- An
fstabentry for the dataset may be necessary.
Reboot or shutdown requires sudo
- Check if
polkitis installed.
Changing the mountpoint on a rescue system
- Consider importing the pool with
-Nto avoid being plagued by mount errors.