How to encrypt new dataset in unencrypted pool?

bluebaz

Cadet
Joined
Nov 1, 2021
Messages
9
I'm using TrueNAS core version TrueNAS-12.0-U6 and I want to create a new encrypted dataset but I don't see an encryption option as shown in the user guide on this page: https://www.truenas.com/docs/core/storage/pools/storageencryption/#encrypting-a-new-dataset

My Add Dataset page looks like this, do I need to switch it on somewhere?

2021-11-01_20-35-25.jpg


Thanks.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Click the Advanced Options button.
 

bluebaz

Cadet
Joined
Nov 1, 2021
Messages
9
Joined
Oct 22, 2019
Messages
3,641

bluebaz

Cadet
Joined
Nov 1, 2021
Messages
9
Is this a pool from FreeNAS 11 or earlier, in which you are using GELI encryption for the underlying block devices?

---

EDIT: I'd also highly recommend you switch Checksum to On for all newly created datasets. TrueNAS 12.0-U6 introduced a bug that will be fixed in U6.1 or U7.

(Since you're not using Deduplication.)

Reference: https://www.truenas.com/community/threads/new-checksum-default-when-did-this-happen.96142/
I did upgrade from FreeNAS 11 yes, I've never configured encryption before on this device.
 

bluebaz

Cadet
Joined
Nov 1, 2021
Messages
9
Actually I just checked the pool and it says Legacy Encryption, so maybe I did, I don't know.

1635800863907.png
 
Joined
Oct 22, 2019
Messages
3,641
Actually I just checked the pool and it says Legacy Encryption, so maybe I did, I don't know.
That's why. You can't enable native ZFS encryption for newly created datasets on this pool using the TrueNAS GUI.

("Legacy" Encryption in the world of TrueNAS is referring to GELI.)
 

bluebaz

Cadet
Joined
Nov 1, 2021
Messages
9
That's why. You won't be able to use native ZFS encryption on this pool using the TrueNAS GUI.

("Legacy" Encryption in the world of TrueNAS is referring to GELI.)
OK thanks, is there a way to put sensitive stuff on a dataset on my TrueNAS?
 
Joined
Oct 22, 2019
Messages
3,641
Your data is already being stored encrypted (GELI). If the drives are removed, no one will even be able to import your pool at all, since the underlying block devices (partitions/drives) are encrypted.

This assumes no one will have access to the keyfile and/or passphrase (whichever is applicable in your situation.)

---

EDIT: Since you forgot that you encrypted your device with GELI, I'd be extra cautious and make sure you made a copy of the keyfile (by exporting it and keeping it safe), and if you also added a passphrase that you must remember as well. You can also export a secondary "recovery" keyfile as well.
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
Even if you get rid of GELI encryption, you might not have the ZFS feature for encryption on that pool enabled. For example:
# zpool get feature@encryption rpool NAME PROPERTY VALUE SOURCE rpool feature@encryption disabled local
 
Top