I have adapted the instructions a little to fit my needs, but the previous instructions should work as my adaptations were based on them and a few other resources I found online. As for replication, it should only affect encrypted pools, but I have not tested adding another non-encrypted pool and using replication, as I use CEPH and which works with the built-in CEPH encryption with Proxmox, so my boot drives are solely responsible for booting and running Proxmox, and all other storage is either from another device or using CEPH.
Here are the instructions I have created and use: (just built a new system a few days ago)
- Once the installation summary screen is shown, remove the check-mark from the box at the bottom labelled "Automatically reboot after successful installation" and then click the button in the bottom right corner labelled "Install".
- After the installation has completed, press the following key combination "Ctrl + Alt + F3" to be taken to a command prompt to complete the next steps.
- Using the following commands, you will encrypt the node's root dataset:
zpool import -f rpool;
zfs snapshot -r rpool/ROOT@copy;
zfs send -R rpool/ROOT@copy | zfs receive rpool/copyroot;
zfs destroy -r rpool/ROOT;
zpool set autoexpand=on rpool;
zpool set autotrim=on rpool;
zfs create -o compression=lz4 -o checksum=on -o encryption=on -o keyformat=passphrase rpool/ROOT;
zfs send -R rpool/copyroot/pve-1@copy | zfs receive -o encryption=on rpool/ROOT/pve-1;
zfs destroy -r rpool/copyroot;
zfs destroy rpool/ROOT/pve-1@copy;
zfs set mountpoint=/ rpool/ROOT/pve-1;
zpool export rpool;
- Once the commands have been completed, press the following key combination "Ctrl + Alt + F4" to be taken back to the GUI installer.
- You can now reboot the node by clicking the button labelled "Reboot" in the bottom right corner.