- During installation you have to pick between Encryption or ZFS.
- It is easy to add encryption to specific zfs file systems after installation.
- ZFS on Linux's encryption call is different than Oracle's.
Everything in this thread relevant to encryption doesn't work.
From this thread: https://www.reddit.com/r/zfs/comments/bnvdco/zol_080_encryption_dont_encrypt_the_pool_root/
Oracle: zfs create -o encryption=on -o keysource=format,location e ....
Ubuntu/ZoL: zfs create -o encryption=aes-256-gcm -o keyformat=passphrase -o keylocation=prompt -o mountpoint=/tank/enc tank/enc
Mounting them at a later time:
zfs mount -l tank/enc
Pay attention to the -l.
Keywords: ZFS on linux encryption. ZFS encryption. Ubuntu 20.04 ZFS encryption
Adding a mirrored drive.
Problem: Ubuntu 20.04's installer doesn't allow you to create a mirrored zpool.
Solution: Add it later.
After installation go to a shell.
Copy the partition table to a new device & randomize guid. (See the symlinks in /dev/disk/by-id/)
Attach the new drive. [I don't know if order is important, I put the existing drive first which is what all other examples show].
Repeat for the rpool, copy the EFI partition, install grub. Reboot.