SOLVED importing encrypted pool

reks

Dabbler
Joined
Dec 28, 2012
Messages
23
hello,
After a power failure i lose two disk from RAID-Z2 array. I want to unlock pool in degraded state but i cant. I tried to export/import but after decrypting i have pool chose box what is a blank. Any idea?
yes i know i lose LOG disk, any idea?

Best regards
Code:
root@Nas[~/klucze]# 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

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

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

Geom name: gptid/106d1804-4385-11ea-947b-0cc47a2049d8.eli
State: ACTIVE
EncryptionAlgorithm: AES-XTS
KeyLength: 256
Crypto: hardware
Version: 7
UsedKey: 1
Flags: NONE
KeysAllocated: 932
KeysTotal: 932
Providers:
1. Name: gptid/106d1804-4385-11ea-947b-0cc47a2049d8.eli
   Mediasize: 3998639456256 (3.6T)
   Sectorsize: 4096
   Mode: r0w0e0
Consumers:
1. Name: gptid/106d1804-4385-11ea-947b-0cc47a2049d8
   Mediasize: 3998639460352 (3.6T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1

Geom name: gptid/88741e60-4385-11ea-947b-0cc47a2049d8.eli
State: ACTIVE
EncryptionAlgorithm: AES-XTS
KeyLength: 256
Crypto: hardware
Version: 7
UsedKey: 1
Flags: NONE
KeysAllocated: 932
KeysTotal: 932
Providers:
1. Name: gptid/88741e60-4385-11ea-947b-0cc47a2049d8.eli
   Mediasize: 3998639456256 (3.6T)
   Sectorsize: 4096
   Mode: r0w0e0
Consumers:
1. Name: gptid/88741e60-4385-11ea-947b-0cc47a2049d8
   Mediasize: 3998639460352 (3.6T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1

Geom name: gptid/7ad0c952-4385-11ea-947b-0cc47a2049d8.eli
State: ACTIVE
EncryptionAlgorithm: AES-XTS
KeyLength: 256
Crypto: hardware
Version: 7
UsedKey: 1
Flags: NONE
KeysAllocated: 932
KeysTotal: 932
Providers:
1. Name: gptid/7ad0c952-4385-11ea-947b-0cc47a2049d8.eli
   Mediasize: 3998639456256 (3.6T)
   Sectorsize: 4096
   Mode: r0w0e0
Consumers:
1. Name: gptid/7ad0c952-4385-11ea-947b-0cc47a2049d8
   Mediasize: 3998639460352 (3.6T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1

Geom name: gptid/6cfa7fd0-4385-11ea-947b-0cc47a2049d8.eli
State: ACTIVE
EncryptionAlgorithm: AES-XTS
KeyLength: 256
Crypto: hardware
Version: 7
UsedKey: 1
Flags: NONE
KeysAllocated: 932
KeysTotal: 932
Providers:
1. Name: gptid/6cfa7fd0-4385-11ea-947b-0cc47a2049d8.eli
   Mediasize: 3998639456256 (3.6T)
   Sectorsize: 4096
   Mode: r0w0e0
Consumers:
1. Name: gptid/6cfa7fd0-4385-11ea-947b-0cc47a2049d8
   Mediasize: 3998639460352 (3.6T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1

Geom name: gptid/5db4e7a8-4385-11ea-947b-0cc47a2049d8.eli
State: ACTIVE
EncryptionAlgorithm: AES-XTS
KeyLength: 256
Crypto: hardware
Version: 7
UsedKey: 1
Flags: NONE
KeysAllocated: 932
KeysTotal: 932
Providers:
1. Name: gptid/5db4e7a8-4385-11ea-947b-0cc47a2049d8.eli
   Mediasize: 3998639456256 (3.6T)
   Sectorsize: 4096
   Mode: r0w0e0
Consumers:
1. Name: gptid/5db4e7a8-4385-11ea-947b-0cc47a2049d8
   Mediasize: 3998639460352 (3.6T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1

Geom name: gptid/4e39ebd7-4385-11ea-947b-0cc47a2049d8.eli
State: ACTIVE
EncryptionAlgorithm: AES-XTS
KeyLength: 256
Crypto: hardware
Version: 7
UsedKey: 1
Flags: NONE
KeysAllocated: 932
KeysTotal: 932
Providers:
1. Name: gptid/4e39ebd7-4385-11ea-947b-0cc47a2049d8.eli
   Mediasize: 3998639456256 (3.6T)
   Sectorsize: 4096
   Mode: r0w0e0
Consumers:
1. Name: gptid/4e39ebd7-4385-11ea-947b-0cc47a2049d8
   Mediasize: 3998639460352 (3.6T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1

Geom name: gptid/5a3244e7-4614-11ea-947b-0cc47a2049d8.eli
State: ACTIVE
EncryptionAlgorithm: AES-XTS
KeyLength: 256
Crypto: hardware
Version: 7
UsedKey: 1
Flags: NONE
KeysAllocated: 932
KeysTotal: 932
Providers:
1. Name: gptid/5a3244e7-4614-11ea-947b-0cc47a2049d8.eli
   Mediasize: 3998639456256 (3.6T)
   Sectorsize: 4096
   Mode: r0w0e0
Consumers:
1. Name: gptid/5a3244e7-4614-11ea-947b-0cc47a2049d8
   Mediasize: 3998639460352 (3.6T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1

Geom name: gptid/3137d16d-4385-11ea-947b-0cc47a2049d8.eli
State: ACTIVE
EncryptionAlgorithm: AES-XTS
KeyLength: 256
Crypto: hardware
Version: 7
UsedKey: 1
Flags: NONE
KeysAllocated: 932
KeysTotal: 932
Providers:
1. Name: gptid/3137d16d-4385-11ea-947b-0cc47a2049d8.eli
   Mediasize: 3998639456256 (3.6T)
   Sectorsize: 4096
   Mode: r0w0e0
Consumers:
1. Name: gptid/3137d16d-4385-11ea-947b-0cc47a2049d8
   Mediasize: 3998639460352 (3.6T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1

Geom name: gptid/201dda74-4385-11ea-947b-0cc47a2049d8.eli
State: ACTIVE
EncryptionAlgorithm: AES-XTS
KeyLength: 256
Crypto: hardware
Version: 7
UsedKey: 1
Flags: NONE
KeysAllocated: 932
KeysTotal: 932
Providers:
1. Name: gptid/201dda74-4385-11ea-947b-0cc47a2049d8.eli
   Mediasize: 3998639456256 (3.6T)
   Sectorsize: 4096
   Mode: r0w0e0
Consumers:
1. Name: gptid/201dda74-4385-11ea-947b-0cc47a2049d8
   Mediasize: 3998639460352 (3.6T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1

root@Nas[~/klucze]# geli status
                                          Name  Status  Components
                              mirror/swap0.eli  ACTIVE  mirror/swap0
                              mirror/swap1.eli  ACTIVE  mirror/swap1
                              mirror/swap2.eli  ACTIVE  mirror/swap2
                              mirror/swap3.eli  ACTIVE  mirror/swap3
gptid/106d1804-4385-11ea-947b-0cc47a2049d8.eli  ACTIVE  gptid/106d1804-4385-11ea-947b-0cc47a2049d8
gptid/88741e60-4385-11ea-947b-0cc47a2049d8.eli  ACTIVE  gptid/88741e60-4385-11ea-947b-0cc47a2049d8
gptid/7ad0c952-4385-11ea-947b-0cc47a2049d8.eli  ACTIVE  gptid/7ad0c952-4385-11ea-947b-0cc47a2049d8
gptid/6cfa7fd0-4385-11ea-947b-0cc47a2049d8.eli  ACTIVE  gptid/6cfa7fd0-4385-11ea-947b-0cc47a2049d8
gptid/5db4e7a8-4385-11ea-947b-0cc47a2049d8.eli  ACTIVE  gptid/5db4e7a8-4385-11ea-947b-0cc47a2049d8
gptid/4e39ebd7-4385-11ea-947b-0cc47a2049d8.eli  ACTIVE  gptid/4e39ebd7-4385-11ea-947b-0cc47a2049d8
gptid/5a3244e7-4614-11ea-947b-0cc47a2049d8.eli  ACTIVE  gptid/5a3244e7-4614-11ea-947b-0cc47a2049d8
gptid/3137d16d-4385-11ea-947b-0cc47a2049d8.eli  ACTIVE  gptid/3137d16d-4385-11ea-947b-0cc47a2049d8
gptid/201dda74-4385-11ea-947b-0cc47a2049d8.eli  ACTIVE  gptid/201dda74-4385-11ea-947b-0cc47a2049d8



Code:
zpool import
   pool: DANE
     id: 13396262650103799225
  state: UNAVAIL
 status: One or more devices are missing from the system.
 action: The pool cannot be imported. Attach the missing
    devices and try again.
   see: http://illumos.org/msg/ZFS-8000-6X
 config:

    DANE                                                UNAVAIL  missing device
      raidz2-0                                          DEGRADED
        gptid/106d1804-4385-11ea-947b-0cc47a2049d8.eli  ONLINE
        gptid/201dda74-4385-11ea-947b-0cc47a2049d8.eli  ONLINE
        gptid/3137d16d-4385-11ea-947b-0cc47a2049d8.eli  ONLINE
        gptid/5a3244e7-4614-11ea-947b-0cc47a2049d8.eli  ONLINE
        gptid/4e39ebd7-4385-11ea-947b-0cc47a2049d8.eli  ONLINE
        gptid/5db4e7a8-4385-11ea-947b-0cc47a2049d8.eli  ONLINE
        gptid/6cfa7fd0-4385-11ea-947b-0cc47a2049d8.eli  ONLINE
        gptid/7ad0c952-4385-11ea-947b-0cc47a2049d8.eli  ONLINE
        gptid/88741e60-4385-11ea-947b-0cc47a2049d8.eli  ONLINE
        10748226175159534368                            UNAVAIL  cannot open
    logs
      7254010293718655240                               UNAVAIL  cannot open

    Additional devices are known to be part of this pool, though their
    exact configuration cannot be determined.

 

reks

Dabbler
Joined
Dec 28, 2012
Messages
23
What helped me
1. decrypt drive with geli command
2.
Code:
zpool import -m -F pool_name

3.
Code:
zpool remove pool_name log_disk_id 

4.
Code:
zpool export pool_name

5. import it by freenas gui, and replace missing drive
IMPORTANT: by this way we lose LOGS drive and not written data.

Best regards
 
Top