Create encrypted dataset
zfs create rpool/safe -o encryption=on -o keyformat=passphraseAll children datasets of an encrypted dataset are also encrypted by default
zfs create rpool/safe/backupsIf you use this encrypted dataset as storage in Proxmox (e.g vzdump, images), you must unlock after boot (via SSH):
zfs load-key rpool/safe
zfs mount rpool/safe # you may need this if it's not automatically mountedIf you don't, you may create files on the mountpoint directory and leak data (e.g automatic VM backups). To prevent Proxmox from creating files on an unmounted ZFS dataset run:
## RUN THESE COMMANDS ONCE AND WHEN THE ZFS DATASET IS NOT UNLOCKED/MOUNTED !!!
chmod a-w -R /rpool/safe
chattr +i -R /rpool/safeAlso do it every reboot: crontab -e
@reboot d=/rpool/safe; chmod a-w -R $d; chattr +i -R $d