A few questions on ZFS pool creation and encryption. I read the instructions on encryption but I am not sure about the tank/encrypted_data part in the wiki. So better ask.
1) To create the pool I issued 'zpool create -f -o ashift=12 zroot mirror sda sdb -m /mnt/zroot'. I added -m /mnt/zroot since I want the pool mounted in /mnt and not in / (root)
2) For encrypting the pool I plan to issue: 'zfs create -o encryption=on -o keyformat=passphrase zroot/'.
The wiki says 'tank/encrypted_data'. I assume tank is the used pool name in the wiki?
Actually I want to encrypt everthing, but it doesn't accept 'zroot/' . Is that possible or do I have to create a folder like 'zroot/encrypted_data'?
3) Issue: 'pvesm add zfspool encrypted_zfs -pool zroot/encrypted_data'
4) Load encrypted pool: 'zfs load-key zroot/encrypted_data'
Are these steps correct? The pool is by the way used for storage of data and possible VM's and containers. Proxmox runs from M2 SSD and I plan to add another SSD for caching and logging later on.
UPDATE:
I tried the above so with 'zroot/encrypted_data' instead of 'zroot/' for now and put a test file in the 'encrypted_data' folder. The strange thing is I can still read the file after reboot without reloading the encrypted pool by entering the password ? Is that normal? How can I than test whether the encryption is working without putting the disks in a different computer?
1) To create the pool I issued 'zpool create -f -o ashift=12 zroot mirror sda sdb -m /mnt/zroot'. I added -m /mnt/zroot since I want the pool mounted in /mnt and not in / (root)
2) For encrypting the pool I plan to issue: 'zfs create -o encryption=on -o keyformat=passphrase zroot/'.
The wiki says 'tank/encrypted_data'. I assume tank is the used pool name in the wiki?
Actually I want to encrypt everthing, but it doesn't accept 'zroot/' . Is that possible or do I have to create a folder like 'zroot/encrypted_data'?
3) Issue: 'pvesm add zfspool encrypted_zfs -pool zroot/encrypted_data'
4) Load encrypted pool: 'zfs load-key zroot/encrypted_data'
Are these steps correct? The pool is by the way used for storage of data and possible VM's and containers. Proxmox runs from M2 SSD and I plan to add another SSD for caching and logging later on.
UPDATE:
I tried the above so with 'zroot/encrypted_data' instead of 'zroot/' for now and put a test file in the 'encrypted_data' folder. The strange thing is I can still read the file after reboot without reloading the encrypted pool by entering the password ? Is that normal? How can I than test whether the encryption is working without putting the disks in a different computer?
Last edited: