I am currently trying to change over a data dump server running 19.04 from LUKS+btrfs to ZFS.
The system drive is LUKS-encrypted and can be decrypted via SSH. It contains a key file that is supposed to decrypt the ZFS filesystems. I am halfway there but automount does not work.
- I have managed to compile ZFS 0.8.1 and build a DKMS package following the wiki. By reading the makefile, I have in addition found out that I also need to make deb-utils to get zpool and such.
I created a pool that supports encryption
zpool create -o ashift=12 dataint /dev/disk/by-id/mydrive
zpool set feature@encryption=enabled dataintI created filesystems in it that are encrypted with the keyfile
zfs create
-o encryption=on
-o keylocation=file:///root/keys/hdd256.key -o keyformat=raw
dataint/testI can mount this with
zfs mount dataint -l
The issues I have now are:
zfs is not loaded at startup. Not even the kernel module and accordingly certainly not the pool.
Encrypted volumes are only loaded when the pool is imported or the filesystem is mounted with the
-l
option. I guess that has to be addressed somehow for autoload when 1. is solved?
I do have some zfs systemd services, but they are masked. Not sure if they are leftovers from a prior 0.7 package manager installation, which I removed.