Skip to content

Instantly share code, notes, and snippets.

@da-n
Created August 25, 2019 12:42
Show Gist options
  • Save da-n/c151ac8f0989c37b754ebde19f6e138f to your computer and use it in GitHub Desktop.
Save da-n/c151ac8f0989c37b754ebde19f6e138f to your computer and use it in GitHub Desktop.
Create encrypted Zpool

Create encrypted Zpool

zpool create -o ashift=12 storage raidz2 /dev/sda /dev/sdb /dev/sdc
zpool set feature@encryption=enabled storage
zfs create -o encryption=on -o keyformat=raw -o keylocation=file:///root/storage-data.zfskey storage/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment