Cant import pool after Reset configuration to defaults

GolDenis

Dabbler
Joined
Oct 25, 2019
Messages
38
Dear friends
Just finish with a NAS
FreeNAS-11.2-U6
MB
X10SL7-F
Processor:
Intel(R) Xeon(R) CPU E3-1241 v3 @ 3.50GHz (8 cores)
Memory:
32 GiB

With 6x3Tb WD Red in one zpool raidz2 (Import vdev & making pool under GUI) & 2 Boot WD Green SSD in mirror
Boot SSD connected to the direct MB SATA
All Pool's HDD connected to the L-SAS SATA

Add 2 more HDD to L-SAS SATA -> get a problem with LAN. Cant reach NAS via GUI
Desided to reset configuration to defaults via CLI
Restored access under GUI but.... Cant import the pool back.
Decided firstly to ask here, what should be a step-by-step procedure for import, cause not sure about my knowledge

Regards.

Outputs:
Code:
root@freenas[~]# zpool import
root@freenas[~]#


Code:
root@freenas[~]# zpool status
  pool: Backups
 state: ONLINE
  scan: none requested
config:

        NAME                                            STATE     READ WRITE CKSUM
        Backups                                         ONLINE       0     0     0
          raidz2-0                                      ONLINE       0     0     0
            gptid/65656045-062d-11ea-8bc6-0cc47aabf316  ONLINE       0     0     0
            gptid/6668e92a-062d-11ea-8bc6-0cc47aabf316  ONLINE       0     0     0
            gptid/6769fcce-062d-11ea-8bc6-0cc47aabf316  ONLINE       0     0     0
            gptid/6867fff7-062d-11ea-8bc6-0cc47aabf316  ONLINE       0     0     0
            gptid/696f04c3-062d-11ea-8bc6-0cc47aabf316  ONLINE       0     0     0
            gptid/6a71b03c-062d-11ea-8bc6-0cc47aabf316  ONLINE       0     0     0

errors: No known data errors

  pool: freenas-boot
 state: ONLINE
  scan: resilvered 234K in 0 days 00:00:00 with 0 errors on Thu Nov 21 05:49:57 2019
config:

        NAME        STATE     READ WRITE CKSUM
        freenas-boot  ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            ada0p2  ONLINE       0     0     0
            ada1p2  ONLINE       0     0     0

errors: No known data errors


Code:
root@freenas[~]# gpart status
  Name  Status  Components
ada0p1      OK  ada0
ada0p2      OK  ada0
ada1p1      OK  ada1
ada1p2      OK  ada1
 da0p1      OK  da0
 da0p2      OK  da0
 da0p3      OK  da0
 da0p4      OK  da0
 da1p1      OK  da1
 da1p2      OK  da1
 da2p1      OK  da2
 da2p2      OK  da2
 da2p3      OK  da2
 da3p1      OK  da3
 da3p2      OK  da3
 da4p1      OK  da4
 da4p2      OK  da4
 da5p1      OK  da5
 da5p2      OK  da5
 da6p1      OK  da6
 da6p2      OK  da6
 da7p1      OK  da7
 da7p2      OK  da7


Code:
root@freenas[~]# gpart list
Geom name: ada0
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 234441607
first: 40
entries: 152
scheme: GPT
Providers:
1. Name: ada0p1
   Mediasize: 272629760 (260M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 20480
   Mode: r0w0e0
   efimedia: HD(1,GPT,5105afee-1c3f-11ea-8661-0cc47aabf316,0x28,0x82000)
   rawuuid: 5105afee-1c3f-11ea-8661-0cc47aabf316
   rawtype: c12a7328-f81f-11d2-ba4b-00a0c93ec93b
   label: (null)
   length: 272629760
   offset: 20480
   type: efi
   index: 1
   end: 532519
   start: 40
2. Name: ada0p2
   Mediasize: 119755767808 (112G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 272650240
   Mode: r1w1e1
   efimedia: HD(2,GPT,5108a65c-1c3f-11ea-8661-0cc47aabf316,0x82028,0xdf10000)
   rawuuid: 5108a65c-1c3f-11ea-8661-0cc47aabf316
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 119755767808
   offset: 272650240
   type: freebsd-zfs
   index: 2
   end: 234430503
   start: 532520
Consumers:
1. Name: ada0
   Mediasize: 120034123776 (112G)
   Sectorsize: 512
   Mode: r1w1e2

Geom name: ada1
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 234441607
first: 40
entries: 152
scheme: GPT
Providers:
1. Name: ada1p1
   Mediasize: 272629760 (260M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 20480
   Mode: r0w0e0
   efimedia: HD(1,GPT,510aa6ac-1c3f-11ea-8661-0cc47aabf316,0x28,0x82000)
   rawuuid: 510aa6ac-1c3f-11ea-8661-0cc47aabf316
   rawtype: c12a7328-f81f-11d2-ba4b-00a0c93ec93b
   label: (null)
   length: 272629760
   offset: 20480
   type: efi
   index: 1
   end: 532519
   start: 40
2. Name: ada1p2
   Mediasize: 119755767808 (112G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 272650240
   Mode: r1w1e1
   efimedia: HD(2,GPT,510db441-1c3f-11ea-8661-0cc47aabf316,0x82028,0xdf10000)
   rawuuid: 510db441-1c3f-11ea-8661-0cc47aabf316
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 119755767808
   offset: 272650240
   type: freebsd-zfs
   index: 2
   end: 234430503
   start: 532520
Consumers:
1. Name: ada1
   Mediasize: 120034123776 (112G)
   Sectorsize: 512
   Mode: r1w1e2

Geom name: da0
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 5860533134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: da0p1
   Mediasize: 542848000 (518M)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   efimedia: HD(1,GPT,ac8c109e-6f66-4843-ad14-7b577d13805c,0x28,0x102d9a)
   rawuuid: ac8c109e-6f66-4843-ad14-7b577d13805c
   rawtype: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
   label: primary
   length: 542848000
   offset: 20480
   type: ms-basic-data
   index: 1
   end: 1060289
   start: 40
2. Name: da0p2
   Mediasize: 542865408 (518M)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   efimedia: HD(2,GPT,f5fcbd0a-36aa-42a9-9a5c-678f561b54dd,0x102dc8,0x102dbc)
   rawuuid: f5fcbd0a-36aa-42a9-9a5c-678f561b54dd
   rawtype: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
   label: primary
   length: 542865408
   offset: 542871552
   type: ms-basic-data
   index: 2
   end: 2120579
   start: 1060296
3. Name: da0p3
   Mediasize: 2998986437632 (2.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   efimedia: HD(3,GPT,e14adf45-aa1f-4571-bf96-fbe0d29c1f91,0x205b88,0x15d20c2ba)
   rawuuid: e14adf45-aa1f-4571-bf96-fbe0d29c1f91
   rawtype: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
   label: primary
   length: 2998986437632
   offset: 1085739008
   type: ms-basic-data
   index: 3
   end: 5859515969
   start: 2120584
4. Name: da0p4
   Mediasize: 509964288 (486M)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   efimedia: HD(4,GPT,c3a38878-485c-4c73-a748-bbd8211f8582,0x15d411e48,0xf32b8)
   rawuuid: c3a38878-485c-4c73-a748-bbd8211f8582
   rawtype: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
   label: primary
   length: 509964288
   offset: 3000072179712
   type: ms-basic-data
   index: 4
   end: 5860511999
   start: 5859515976
Consumers:
1. Name: da0
   Mediasize: 3000592982016 (2.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0

Geom name: da1
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 5860533127
first: 40
entries: 152
scheme: GPT
Providers:
1. Name: da1p1
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1
   efimedia: HD(1,GPT,654c5547-062d-11ea-8bc6-0cc47aabf316,0x80,0x400000)
   rawuuid: 654c5547-062d-11ea-8bc6-0cc47aabf316
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 2147483648
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 4194431
   start: 128
2. Name: da1p2
   Mediasize: 2998445412352 (2.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e2
   efimedia: HD(2,GPT,65656045-062d-11ea-8bc6-0cc47aabf316,0x400080,0x15d10a308)
   rawuuid: 65656045-062d-11ea-8bc6-0cc47aabf316
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 2998445412352
   offset: 2147549184
   type: freebsd-zfs
   index: 2
   end: 5860533127
   start: 4194432
Consumers:
1. Name: da1
   Mediasize: 3000592982016 (2.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r2w2e5

Geom name: da2
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 5860533134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: da2p1
   Mediasize: 2550005760 (2.4G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   efimedia: HD(1,GPT,5f62800d-06ea-4a86-a5ec-464b492b1ef4,0x800,0x4bff00)
   rawuuid: 5f62800d-06ea-4a86-a5ec-464b492b1ef4
   rawtype: a19d880f-05fc-4d3b-a006-743f0f84911e
   label: (null)
   length: 2550005760
   offset: 1048576
   type: linux-raid
   index: 1
   end: 4982527
   start: 2048
2. Name: da2p2
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   efimedia: HD(2,GPT,5d12330d-6fa2-4b4c-ac5a-f822aa68ba80,0x4c0700,0x400000)
   rawuuid: 5d12330d-6fa2-4b4c-ac5a-f822aa68ba80
   rawtype: a19d880f-05fc-4d3b-a006-743f0f84911e
   label: (null)
   length: 2147483648
   offset: 2551054336
   type: linux-raid
   index: 2
   end: 9176831
   start: 4982528
3. Name: da2p3
   Mediasize: 2995758531072 (2.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   efimedia: HD(3,GPT,61735538-88c9-487a-87eb-f3b9fac4df2f,0x900000,0x15cc08fc1)
   rawuuid: 61735538-88c9-487a-87eb-f3b9fac4df2f
   rawtype: a19d880f-05fc-4d3b-a006-743f0f84911e
   label: (null)
   length: 2995758531072
   offset: 4831838208
   type: linux-raid
   index: 3
   end: 5860528064
   start: 9437184
Consumers:
1. Name: da2
   Mediasize: 3000592982016 (2.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0

Geom name: da3
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 5860533127
first: 40
entries: 152
scheme: GPT
Providers:
1. Name: da3p1
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1
   efimedia: HD(1,GPT,6751feff-062d-11ea-8bc6-0cc47aabf316,0x80,0x400000)
   rawuuid: 6751feff-062d-11ea-8bc6-0cc47aabf316
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 2147483648
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 4194431
   start: 128
2. Name: da3p2
   Mediasize: 2998445412352 (2.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e2
   efimedia: HD(2,GPT,6769fcce-062d-11ea-8bc6-0cc47aabf316,0x400080,0x15d10a308)
   rawuuid: 6769fcce-062d-11ea-8bc6-0cc47aabf316
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 2998445412352
   offset: 2147549184
   type: freebsd-zfs
   index: 2
   end: 5860533127
   start: 4194432
Consumers:
1. Name: da3
   Mediasize: 3000592982016 (2.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r2w2e5

Geom name: da4
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 5860533127
first: 40
entries: 152
scheme: GPT
Providers:
1. Name: da4p1
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1
   efimedia: HD(1,GPT,664f9b92-062d-11ea-8bc6-0cc47aabf316,0x80,0x400000)
   rawuuid: 664f9b92-062d-11ea-8bc6-0cc47aabf316
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 2147483648
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 4194431
   start: 128
2. Name: da4p2
   Mediasize: 2998445412352 (2.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e2
   efimedia: HD(2,GPT,6668e92a-062d-11ea-8bc6-0cc47aabf316,0x400080,0x15d10a308)
   rawuuid: 6668e92a-062d-11ea-8bc6-0cc47aabf316
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 2998445412352
   offset: 2147549184
   type: freebsd-zfs
   index: 2
   end: 5860533127
   start: 4194432
Consumers:
1. Name: da4
   Mediasize: 3000592982016 (2.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r2w2e5

Geom name: da5
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 5860533127
first: 40
entries: 152
scheme: GPT
Providers:
1. Name: da5p1
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1
   efimedia: HD(1,GPT,684e8bcb-062d-11ea-8bc6-0cc47aabf316,0x80,0x400000)
   rawuuid: 684e8bcb-062d-11ea-8bc6-0cc47aabf316
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 2147483648
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 4194431
   start: 128
2. Name: da5p2
   Mediasize: 2998445412352 (2.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e2
   efimedia: HD(2,GPT,6867fff7-062d-11ea-8bc6-0cc47aabf316,0x400080,0x15d10a308)
   rawuuid: 6867fff7-062d-11ea-8bc6-0cc47aabf316
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 2998445412352
   offset: 2147549184
   type: freebsd-zfs
   index: 2
   end: 5860533127
   start: 4194432
Consumers:
1. Name: da5
   Mediasize: 3000592982016 (2.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r2w2e5

Geom name: da6
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 5860533127
first: 40
entries: 152
scheme: GPT
Providers:
1. Name: da6p1
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1
   efimedia: HD(1,GPT,69561bd5-062d-11ea-8bc6-0cc47aabf316,0x80,0x400000)
   rawuuid: 69561bd5-062d-11ea-8bc6-0cc47aabf316
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 2147483648
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 4194431
   start: 128
2. Name: da6p2
   Mediasize: 2998445412352 (2.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e2
   efimedia: HD(2,GPT,696f04c3-062d-11ea-8bc6-0cc47aabf316,0x400080,0x15d10a308)
   rawuuid: 696f04c3-062d-11ea-8bc6-0cc47aabf316
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 2998445412352
   offset: 2147549184
   type: freebsd-zfs
   index: 2
   end: 5860533127
   start: 4194432
Consumers:
1. Name: da6
   Mediasize: 3000592982016 (2.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r2w2e5

Geom name: da7
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 5860533127
first: 40
entries: 152
scheme: GPT
Providers:
1. Name: da7p1
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1
   efimedia: HD(1,GPT,6a57963c-062d-11ea-8bc6-0cc47aabf316,0x80,0x400000)
   rawuuid: 6a57963c-062d-11ea-8bc6-0cc47aabf316
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 2147483648
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 4194431
   start: 128
2. Name: da7p2
   Mediasize: 2998445412352 (2.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e2
   efimedia: HD(2,GPT,6a71b03c-062d-11ea-8bc6-0cc47aabf316,0x400080,0x15d10a308)
   rawuuid: 6a71b03c-062d-11ea-8bc6-0cc47aabf316
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 2998445412352
   offset: 2147549184
   type: freebsd-zfs
   index: 2
   end: 5860533127
   start: 4194432
Consumers:
1. Name: da7
   Mediasize: 3000592982016 (2.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r2w2e5

 
Joined
Oct 18, 2018
Messages
969
Perhaps I am missing something; it looks like everything is there? From zpool status your two pools are up and running. The two additional drives don't seem to be assigned to any pool right now, which is fine. What do you intend to do with the other two drives?
 

GolDenis

Dabbler
Joined
Oct 25, 2019
Messages
38
Hm.... I dont see anything in GUI
So cant make a share etc/etc/etc....
How can I fix it and return all pools under GUI management?
I'm going to add 4 more & at the end get 2 pools x6 HDD
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
The pool appears to be imported, it may simply be that the sharing configuration was wiped out when you restored defaults..
 
Joined
Oct 18, 2018
Messages
969
Assuming you didn't import the pool from the command line you should have GUI control over it already. Does it appear in the Storage->Pools list? If so I suspect that @Chris Moore is correct and that you just need to remake your shares. If not, perhaps you imported it via the CLI and that caused the system to not know how to manage the pool. If this is the case you can try exporting the pool via CLI and then importing the pool via the GUI.
 

GolDenis

Dabbler
Joined
Oct 25, 2019
Messages
38
Your are absolutly correct. I tryed to import pool via CLI....
but cause I cant see it in GUI - I was't sure about it.
Could you, please, sent me a link to any information regarding "If this is the case you can try exporting the pool via CLI and then importing the pool via the GUI."
And.... strange question... but.... Is Im right to take in GUI interface as some kind virtualization under FreeNAS system? (That why if Idone something under CLI - It's not reflected in GUI automaticaly?
Thanks a lot, guys, for your patience & support.
 

GolDenis

Dabbler
Joined
Oct 25, 2019
Messages
38
Have my pool back unger GUI
Thanks a lot!
 
Joined
Oct 18, 2018
Messages
969
Happy to hear you got it back! In general try to use the GUI for all pool management. FreeNAS uses specific zfs flags which you may not know to use when doing things from the CLI. Additionally, if you do things from the CLI the database in /data/freenas-v1.db won't get updated. Anyway, all's well that ends well, right?
 

GolDenis

Dabbler
Joined
Oct 25, 2019
Messages
38
Yeap! Get it! Use CLI as the latest tool!
 
Top