I'm trying to create encrypted raidz, but how?
https://www.digitalocean.com/commun...ol-with-digitalocean-block-storage-on-freebsd
If I understand correctly, I need to encrypt every disk before creating zpool, like this:
Ok, now I've rebooted. How to mount encrypted zpool?
https://www.digitalocean.com/commun...ol-with-digitalocean-block-storage-on-freebsd
If I understand correctly, I need to encrypt every disk before creating zpool, like this:
Code:
% sudo gpart add -t freebsd-zfs -l volume-enc0 ada2
% sudo gpart add -t freebsd-zfs -l volume-enc1 ada3
% sudo gpart add -t freebsd-zfs -l volume-enc2 ada4
% sudo geli init -l 256 /dev/gpt/volume-enc0
% sudo geli init -l 256 /dev/gpt/volume-enc1
% sudo geli init -l 256 /dev/gpt/volume-enc2
% sudo geli attach /dev/gpt/volume-enc0
% sudo geli attach /dev/gpt/volume-enc1
% sudo geli attach /dev/gpt/volume-enc2
% sudo zpool create -f enc-zpool raidz /dev/gpt/volume-enc0.eli /dev/gpt/volume-enc1.eli /dev/gpt/volume-enc2.eli
% sudo zfs set compression=lz4 enc-zpool
Ok, now I've rebooted. How to mount encrypted zpool?