encryption on/off

zigota123

Cadet
Joined
May 13, 2022
Messages
5
Hellow! I want to turn off encryption for pool. Is it possible? Keeping the data ofc.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Create a new dataset in the pool with encryption off.

rsync your data to that dataset.

delete the original encrypted dataset.

rename the new dataset the same as the old one.
 

zigota123

Cadet
Joined
May 13, 2022
Messages
5
Create a new dataset in the pool with encryption off.

rsync your data to that dataset.

delete the original encrypted dataset.

rename the new dataset the same as the old one.
Thanks! Could i have some more information about "rsync your data to that dataset."
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
at CLI/shell, rsync -auv /mnt/pool/encrypteddataset /mnt/pool/unencrypteddataset

Depending on how much data you have, you might want to run that in a tmux session to make sure your session doesn't stop and interrupt the transfer (either search the forum or google for how-to on that).

Also, possibly worth saying that your pool must have enough free space for that to happen, meaning whatever is in the encrypted dataset + some buffer of free space on top. (and manage your snapshots if you have any or you'll run out of space with those too)
 

Dice

Wizard
Joined
Dec 11, 2015
Messages
1,410
you'll run out of space with those too)
Adding to the advice here, emphasizing - If that happens, you are risking to loose the entire pool.
Yes - It is a thing with ZFS.
You can end up in a situation where it is impossible to delete data, and your option is only to remake the pool.
Calculate carefully.

(for nightmares - search the forums..)
 
Top