Browse Source

Update applications.md

Håvard O. Nordstrand 5 years ago
parent
commit
43e0abddf5
1 changed files with 9 additions and 0 deletions
  1. 9 0
      config/linux-server/applications.md

+ 9 - 0
config/linux-server/applications.md

@@ -239,6 +239,15 @@ TFTP_OPTIONS="--create --secure"
 ### Usage
 
 - Create a pool: `zpool create -o ashift=<9|12> [level] <drives>+`
+- Create an encrypted pool:
+  - The procedure is basically the same for encrypted datasets.
+  - Children of encrypted datasets can't be unencrypted.
+  - Using a password: `zpool create -O encryption=aes-128-gcm -O keyformat=passphrase ...`
+  - Using a raw key:
+    - Generate the key: `dd if=/dev/random of=<path> bs=32 count=1`
+    - Create the pool: `zpool create -O encryption=aes-128-gcm -O keyformat=raw -O keylocation=file://<path> ...`
+    - Automatically unlock at boot time: Add the systemd service to unlock pools/datasets individually () or to unlock all of them ().
+  - The encryption suite can't be changed after creation, but the keyformat can.
 - Send and receive snapshots:
   - `zfs send [-R] <snapshot>` and `zfs recv <snapshot>`.
   - Uses STDOUT.