zpool upgrade w/ GELI encryption, but no ZFS native encryption available

q/pa

Explorer
Joined
Mar 16, 2015
Messages
64
I am on TrueNAS Core 12.0-U7 with GELI encryption. I just upgraded my only data zpool to be able to do some testing with native ZFS encryption. Right after the upgrade + reboot I wanted to create a new dataset and see whether any "Encryption Options" (like in the screenshot below) were available. And they were... for a few seconds! Then the page refreshed and now the option is not shown anymore.

Is it intentional that GELI-encrypted systems cannot create ZFS-encrypted datasets (and pools)? Do I have to remove GELI-encryption first and then the regular create dataset options will all be available?

1639594474903.png
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Is it intentional that GELI-encrypted systems cannot create ZFS-encrypted datasets (and pools)? Do I have to remove GELI-encryption first and then the regular create dataset options will all be available?
Yes, and yes.
 

q/pa

Explorer
Joined
Mar 16, 2015
Messages
64
Thanks for the quick reply, @Samuel Tai ! Much appreciated!
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Also search for @winnielinnie's threads on native ZFS encryption, and what he's learned from running them.

 

q/pa

Explorer
Joined
Mar 16, 2015
Messages
64
Thanks man, already reading up on this. :smile:

I roughly plan to remove GELI encryption, rename my datasets, create new ZFS-encrypted datasets and send | receive everything into the new datasets.
 

q/pa

Explorer
Joined
Mar 16, 2015
Messages
64
First step accomplished: removed GELI encryption of my only storage pool (TrueNAS Core 12.0-U7).

The great guide in https://www.truenas.com/community/t...om-a-zfs-volume-while-keeping-the-data.16467/ works for 12.0-U7 with the following exceptions:

1.
[root@freenas-pmh] ~# zpool replace zfs 5939868321408276145 gptid/b5ae2aed-8ec4-11e2-a224-28924a2bff32
[root@freenas-pmh] ~# zpool status
...

The output does not look exactly like:
...
replacing-3 OFFLINE 0 0 0
5939868321408276145 OFFLINE 0 0 0 was /dev/gptid/b5ae2aed-8ec4-11e2-a224-28924a2bff32.eli
gptid/b5ae2aed-8ec4-11e2-a224-28924a2bff32 ONLINE 0 0 0 (resilvering)

At least since 12.0-U7, the GUID is missing. But you can either get it through the GUI: Dashboard > Pool > Data > Disks > DEGRADED disk or on the CLI via the command sudo zdb -l /dev/gptid/b5ae2aed-8ec4-11e2-a224-28924a2bff32.eli

2. Detach pool is now Export/disconnect pool (plus I had do import the pool manually after reboot).
 
Last edited:
Top