zpool import UNAVAIL

Status
Not open for further replies.

jeepmkcomin

Cadet
Joined
Jul 18, 2015
Messages
5
Background: I had SMART warnings coming out of a disk and I decided to try and replace before it went. I ordered a disk and unfortunately the other one failed before I could replace. Therefore it was no longer showing. I ran a zpool replace after putting a new drive in and let it resliver. Once it finished I still had the alert in the GUI so I restarted to see if that would clear it and unfortunately my pool "Volume1" disappeared from being recognized by "zpool status" but was showing up in the GUI. I noticed it was showing when I'd type "zpool import". It wouldn't let me auto-import via the GUI due to it already existing from the GUI's point of view.

I'm not going to pretend to be well voiced in ZFS. I did a lot of searching on here and ultimately don't feel as if I'm going to get my data back at this point. Note that in the zpool import "ada0" is the new drive. I'm not sure how I failed to have it add properly and receive a naming scheme similar to the others. If anyone has any advice I'm happy to give it a go.

I reset the gui piece to factory specs to get a clean slate there so I could enable the ssh service to copy out of puTTy the following command returns.

FreeNAS-8.3.0-RELEASE-x64 (r12701M)

zpool status
Code:
[root@freenas] ~# zpool status
no pools available


zpool import
Code:
[root@freenas] ~# zpool import
   pool: Volume1
     id: 9573638588872624258
  state: UNAVAIL
 status: The pool is formatted using an incompatible version.
 action: The pool cannot be imported.  Access the pool on a system running newer
        software, or recreate the pool from backup.
   see: http://www.sun.com/msg/ZFS-8000-A5
 config:

        Volume1                                         UNAVAIL  newer version
          raidz2-0                                      ONLINE
            ada0                                        ONLINE
            gptid/70cb3bd5-1ff3-11e2-97a4-14dae96864bc  ONLINE
            gptid/79c2fb42-6bb4-11e4-82ca-14dae96864bc  ONLINE
            gptid/719aa39f-1ff3-11e2-97a4-14dae96864bc  ONLINE


gpart show
Code:
[root@freenas] ~# gpart show
=>        34  1953525101  ada1  GPT  (931G)
          34          94        - free -  (47k)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  1949330703     2  freebsd-zfs  (929G)

=>        34  7814037101  ada2  GPT  (3.7T)
          34          94        - free -  (47k)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  7809842696     2  freebsd-zfs  (3.7T)
  7814037128           7        - free -  (3.5k)

=>        34  1953525101  ada3  GPT  (931G)
          34          94        - free -  (47k)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  1949330703     2  freebsd-zfs  (929G)

=>      63  15727761  ada4  MBR  (7.5G)
        63   1930257     1  freebsd  [active]  (942M)
   1930320        63        - free -  (31k)
   1930383   1930257     2  freebsd  (942M)
   3860640      3024     3  freebsd  (1.5M)
   3863664     41328     4  freebsd  (20M)
   3904992  11822832        - free -  (5.7G)

=>      0  1930257  ada4s1  BSD  (942M)
        0       16          - free -  (8.0k)
       16  1930241       1  !0  (942M)

=>      0  1930257  ada4s2  BSD  (942M)
        0       16          - free -  (8.0k)
       16  1930241       1  !0  (942M)


gpart list
Code:
[root@freenas] ~# gpart list
Geom name: ada1
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 1953525134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada1p1
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 65536
   Mode: r0w0e0
   rawuuid: 70bd14b0-1ff3-11e2-97a4-14dae96864bc
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 2147483648
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 4194431
   start: 128
2. Name: ada1p2
   Mediasize: 998057319936 (929G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 2147549184
   Mode: r0w0e0
   rawuuid: 70cb3bd5-1ff3-11e2-97a4-14dae96864bc
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 998057319936
   offset: 2147549184
   type: freebsd-zfs
   index: 2
   end: 1953525134
   start: 4194432
Consumers:
1. Name: ada1
   Mediasize: 1000204886016 (931G)
   Sectorsize: 512
   Mode: r0w0e0

Geom name: ada2
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 7814037134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada2p1
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   rawuuid: 793a956d-6bb4-11e4-82ca-14dae96864bc
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 2147483648
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 4194431
   start: 128
2. Name: ada2p2
   Mediasize: 3998639460352 (3.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   rawuuid: 79c2fb42-6bb4-11e4-82ca-14dae96864bc
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 3998639460352
   offset: 2147549184
   type: freebsd-zfs
   index: 2
   end: 7814037127
   start: 4194432
Consumers:
1. Name: ada2
   Mediasize: 4000787030016 (3.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0

Geom name: ada3
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 1953525134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada3p1
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 65536
   Mode: r0w0e0
   rawuuid: 718cd077-1ff3-11e2-97a4-14dae96864bc
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 2147483648
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 4194431
   start: 128
2. Name: ada3p2
   Mediasize: 998057319936 (929G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 2147549184
   Mode: r0w0e0
   rawuuid: 719aa39f-1ff3-11e2-97a4-14dae96864bc
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 998057319936
   offset: 2147549184
   type: freebsd-zfs
   index: 2
   end: 1953525134
   start: 4194432
Consumers:
1. Name: ada3
   Mediasize: 1000204886016 (931G)
   Sectorsize: 512
   Mode: r0w0e0

Geom name: ada4
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 15727823
first: 63
entries: 4
scheme: MBR
Providers:
1. Name: ada4s1
   Mediasize: 988291584 (942M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 32256
   Mode: r1w0e2
   attrib: active
   rawtype: 165
   length: 988291584
   offset: 32256
   type: freebsd
   index: 1
   end: 1930319
   start: 63
2. Name: ada4s2
   Mediasize: 988291584 (942M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 988356096
   Mode: r0w0e0
   rawtype: 165
   length: 988291584
   offset: 988356096
   type: freebsd
   index: 2
   end: 3860639
   start: 1930383
3. Name: ada4s3
   Mediasize: 1548288 (1.5M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 1976647680
   Mode: r0w0e0
   rawtype: 165
   length: 1548288
   offset: 1976647680
   type: freebsd
   index: 3
   end: 3863663
   start: 3860640
4. Name: ada4s4
   Mediasize: 21159936 (20M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 1978195968
   Mode: r1w1e2
   rawtype: 165
   length: 21159936
   offset: 1978195968
   type: freebsd
   index: 4
   end: 3904991
   start: 3863664
Consumers:
1. Name: ada4
   Mediasize: 8052645888 (7.5G)
   Sectorsize: 512
   Mode: r2w1e5

Geom name: ada4s1
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 1930256
first: 0
entries: 8
scheme: BSD
Providers:
1. Name: ada4s1a
   Mediasize: 988283392 (942M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 40448
   Mode: r1w0e2
   rawtype: 0
   length: 988283392
   offset: 8192
   type: !0
   index: 1
   end: 1930256
   start: 16
Consumers:
1. Name: ada4s1
   Mediasize: 988291584 (942M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 32256
   Mode: r1w0e2

Geom name: ada4s2
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 1930256
first: 0
entries: 8
scheme: BSD
Providers:
1. Name: ada4s2a
   Mediasize: 988283392 (942M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 988364288
   Mode: r0w0e0
   rawtype: 0
   length: 988283392
   offset: 8192
   type: !0
   index: 1
   end: 1930256
   start: 16
Consumers:
1. Name: ada4s2
   Mediasize: 988291584 (942M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 988356096
   Mode: r0w0e0


camcontrol devlist
Code:
[root@freenas] ~# camcontrol devlist
<ST4000VN000-1H4168 SC46>          at scbus0 target 0 lun 0 (pass0,ada0)
<ST31000340AS SD1A>                at scbus1 target 0 lun 0 (pass1,ada1)
<ST4000VN000-1H4168 SC46>          at scbus2 target 0 lun 0 (pass2,ada2)
<ST31000340AS SD1A>                at scbus3 target 0 lun 0 (pass3,ada3)
<Emphase SFM20I-8G rs1.a000>       at scbus5 target 0 lun 0 (pass4,ada4)


glabel list
Code:
[root@freenas] ~# glabel list
Geom name: ada1p1
Providers:
1. Name: gptid/70bd14b0-1ff3-11e2-97a4-14dae96864bc
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 65536
   Mode: r0w0e0
   secoffset: 0
   offset: 0
   seclength: 4194304
   length: 2147483648
   index: 0
Consumers:
1. Name: ada1p1
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 65536
   Mode: r0w0e0

Geom name: ada1p2
Providers:
1. Name: gptid/70cb3bd5-1ff3-11e2-97a4-14dae96864bc
   Mediasize: 998057319936 (929G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 2147549184
   Mode: r0w0e0
   secoffset: 0
   offset: 0
   seclength: 1949330703
   length: 998057319936
   index: 0
Consumers:
1. Name: ada1p2
   Mediasize: 998057319936 (929G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 2147549184
   Mode: r0w0e0

Geom name: ada2p1
Providers:
1. Name: gptid/793a956d-6bb4-11e4-82ca-14dae96864bc
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   secoffset: 0
   offset: 0
   seclength: 4194304
   length: 2147483648
   index: 0
Consumers:
1. Name: ada2p1
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0

Geom name: ada2p2
Providers:
1. Name: gptid/79c2fb42-6bb4-11e4-82ca-14dae96864bc
   Mediasize: 3998639460352 (3.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   secoffset: 0
   offset: 0
   seclength: 7809842696
   length: 3998639460352
   index: 0
Consumers:
1. Name: ada2p2
   Mediasize: 3998639460352 (3.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0

Geom name: ada3p1
Providers:
1. Name: gptid/718cd077-1ff3-11e2-97a4-14dae96864bc
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 65536
   Mode: r0w0e0
   secoffset: 0
   offset: 0
   seclength: 4194304
   length: 2147483648
   index: 0
Consumers:
1. Name: ada3p1
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 65536
   Mode: r0w0e0

Geom name: ada3p2
Providers:
1. Name: gptid/719aa39f-1ff3-11e2-97a4-14dae96864bc
   Mediasize: 998057319936 (929G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 2147549184
   Mode: r0w0e0
   secoffset: 0
   offset: 0
   seclength: 1949330703
   length: 998057319936
   index: 0
Consumers:
1. Name: ada3p2
   Mediasize: 998057319936 (929G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 2147549184
   Mode: r0w0e0

Geom name: ada4s3
Providers:
1. Name: ufs/FreeNASs3
   Mediasize: 1548288 (1.5M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 1976647680
   Mode: r0w0e0
   secoffset: 0
   offset: 0
   seclength: 3024
   length: 1548288
   index: 0
Consumers:
1. Name: ada4s3
   Mediasize: 1548288 (1.5M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 1976647680
   Mode: r0w0e0

Geom name: ada4s4
Providers:
1. Name: ufs/FreeNASs4
   Mediasize: 21159936 (20M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 1978195968
   Mode: r1w1e1
   secoffset: 0
   offset: 0
   seclength: 41328
   length: 21159936
   index: 0
Consumers:
1. Name: ada4s4
   Mediasize: 21159936 (20M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 1978195968
   Mode: r1w1e2

Geom name: ada4s1a
Providers:
1. Name: ufs/FreeNASs1a
   Mediasize: 988283392 (942M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 40448
   Mode: r1w0e1
   secoffset: 0
   offset: 0
   seclength: 1930241
   length: 988283392
   index: 0
Consumers:
1. Name: ada4s1a
   Mediasize: 988283392 (942M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 40448
   Mode: r1w0e2

Geom name: ada4s2a
Providers:
1. Name: ufsid/521c684590455604
   Mediasize: 988283392 (942M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 988364288
   Mode: r0w0e0
   secoffset: 0
   offset: 0
   seclength: 1930241
   length: 988283392
   index: 0
Consumers:
1. Name: ada4s2a
   Mediasize: 988283392 (942M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 988364288
   Mode: r0w0e0

Geom name: ada4s2a
Providers:
1. Name: ufs/FreeNASs2a
   Mediasize: 988283392 (942M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 988364288
   Mode: r0w0e0
   secoffset: 0
   offset: 0
   seclength: 1930241
   length: 988283392
   index: 0
Consumers:
1. Name: ada4s2a
   Mediasize: 988283392 (942M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 988364288
   Mode: r0w0e0

 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
Let me guess: you've done the replace in the CLI instead of following the manual and using the GUI?
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
You should not have done that...

I'm a bit concerned about the pool version message: did you re-install the system or something like that since you created this pool?

Now, after solving the pool version problem I suggest to offline the new drive, wipe it, and re-add it (correctly this time, by using the GUI). But if something goes wrong don't blame me; you've used the CLI and not done all the things you should have done, that's why FreeNAS is not happy and that's how things can go wrong for your data.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Try to import the pool in 9.3.

If 9.3 can't import the pool, you're probably screwed.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Did you switch freenas versions at any time along the way and run zpool upgrade? How did you get an incompatible version of zfs?
 

jeepmkcomin

Cadet
Joined
Jul 18, 2015
Messages
5
It's possible that someone switched freenas versions before me but I cannot remember. Maybe they didn't run a zpool upgrade?

Either way... I'm hearing that I'm probably screwed. It sounds like Ericloewe is suggesting I try to import the pool in 9.3 instead of staying at my current version. I will try this later on unless someone else tells me it's best to stay at the version installed.
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710

Robert Trevellyan

Pony Wrangler
Joined
May 16, 2014
Messages
3,778

jeepmkcomin

Cadet
Joined
Jul 18, 2015
Messages
5
Just double checking... At this point by offline you mean, unplug the drive physically right?

While I have searched for an option for zpool offline (and my searches are drawing a blank), zpool offline volume1 ada0 isn't working because the pool isn't currently imported.
 

Robert Trevellyan

Pony Wrangler
Joined
May 16, 2014
Messages
3,778
At this point by offline you mean, unplug the drive physically right?
Offlining a drive is the process of telling the system you plan to physically remove it. It's step 1 in the directions for replacing a failed drive in 9.3, which is what you should probably follow in your current situation (pretend ada0 has failed). I don't think the procedure has changed since 8.3, but the GUI probably looks different.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Offlining a drive is the process of telling the system you plan to physically remove it. It's step 1 in the directions for replacing a failed drive in 9.3, which is what you should probably follow in your current situation (pretend ada0 has failed). I don't think the procedure has changed since 8.3, but the GUI probably looks different.
It won't work, since the pool isn't even mounted.
 

jeepmkcomin

Cadet
Joined
Jul 18, 2015
Messages
5
In case anyone wants closure. FreeNAS 9.3 recognizes the pool and I'm now taking a later backup before redoing the whole thing.

Thanks all.
 
Status
Not open for further replies.
Top