SOLVED removed geli encryption on my pools, but see swap0.eli and swap1.eli

Guri89

Cadet
Joined
Oct 16, 2017
Messages
9
Hi everyone,

like the title said, I removed geli encryption from my 2 pools.
I did that following the guide found on the forums (https://www.truenas.com/community/t...om-a-zfs-volume-while-keeping-the-data.16467/)

worked great, and I do not have any .eli partitions in my pools anymore.

I was on the point to delete the geli keys, that I still have on disk in /data/geli
For good measures I did a geli status before, expecting an empty output, but to my surprise it's not

Code:
# geli status
            Name  Status  Components
mirror/swap0.eli  ACTIVE  mirror/swap0
mirror/swap1.eli  ACTIVE  mirror/swap1


Code:
# geli list
Geom name: mirror/swap0.eli
State: ACTIVE
EncryptionAlgorithm: AES-XTS
KeyLength: 128
Crypto: hardware
Version: 7
Flags: ONETIME
KeysAllocated: 4
KeysTotal: 4
Providers:
1. Name: mirror/swap0.eli
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Mode: r1w1e0
Consumers:
1. Name: mirror/swap0
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1

Geom name: mirror/swap1.eli
State: ACTIVE
EncryptionAlgorithm: AES-XTS
KeyLength: 128
Crypto: hardware
Version: 7
Flags: ONETIME
KeysAllocated: 4
KeysTotal: 4
Providers:
1. Name: mirror/swap1.eli
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Mode: r1w1e0
Consumers:
1. Name: mirror/swap1
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1


Code:
# swapinfo
Device          1K-blocks     Used    Avail Capacity
/dev/mirror/swap0.eli   2097152        0  2097152     0%
/dev/mirror/swap1.eli   2097152        0  2097152     0%
Total             4194304        0  4194304     0%


I do not want anything geli-related on that box anymore
Any idea how I can get rid of those too?

Thanks
 

Spearfoot

He of the long foot
Moderator
Joined
May 13, 2015
Messages
2,478
Hi everyone,

like the title said, I removed geli encryption from my 2 pools.
I did that following the guide found on the forums (https://www.truenas.com/community/t...om-a-zfs-volume-while-keeping-the-data.16467/)

worked great, and I do not have any .eli partitions in my pools anymore.

I was on the point to delete the geli keys, that I still have on disk in /data/geli
For good measures I did a geli status before, expecting an empty output, but to my surprise it's not

Code:
# geli status
            Name  Status  Components
mirror/swap0.eli  ACTIVE  mirror/swap0
mirror/swap1.eli  ACTIVE  mirror/swap1


Code:
# geli list
Geom name: mirror/swap0.eli
State: ACTIVE
EncryptionAlgorithm: AES-XTS
KeyLength: 128
Crypto: hardware
Version: 7
Flags: ONETIME
KeysAllocated: 4
KeysTotal: 4
Providers:
1. Name: mirror/swap0.eli
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Mode: r1w1e0
Consumers:
1. Name: mirror/swap0
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1

Geom name: mirror/swap1.eli
State: ACTIVE
EncryptionAlgorithm: AES-XTS
KeyLength: 128
Crypto: hardware
Version: 7
Flags: ONETIME
KeysAllocated: 4
KeysTotal: 4
Providers:
1. Name: mirror/swap1.eli
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Mode: r1w1e0
Consumers:
1. Name: mirror/swap1
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1


Code:
# swapinfo
Device          1K-blocks     Used    Avail Capacity
/dev/mirror/swap0.eli   2097152        0  2097152     0%
/dev/mirror/swap1.eli   2097152        0  2097152     0%
Total             4194304        0  4194304     0%


I do not want anything geli-related on that box anymore
Any idea how I can get rid of those too?

Thanks
FreeNAS/TrueNAS automatically uses encryption on swap disks, and this is unrelated to any user-configured encryption you may have set up on your pools.
 

Evertb1

Guru
Joined
May 31, 2016
Messages
700
I never ever used encryption on my pools and look at the outpout that command gives me:
Code:
# geli status
            Name  Status  Components
mirror/swap0.eli  ACTIVE  mirror/swap0
 

Guri89

Cadet
Joined
Oct 16, 2017
Messages
9
ah ok, I had no idea
looks like I'm all set then :smile:

thanks a lot for the feedback!
 
Top