Can't import zpool

Status
Not open for further replies.

hatzman29

Cadet
Joined
Jun 5, 2013
Messages
6
Hi all,

Version - Freenas 8.2
Issue - Cant import zpool

My mate has given me his freenas server to try and fix. He has a backup of his important data, like his photos, but ultimately it would be nicer to have all things.

Essentially I cant import his zpool. It seems like maybe a disk died. And if so, can I just replace and away I go?

Im at a loss on what I should do. Any help would be appreciated please :)

I've looked at a few other threads, and have the output that is generally asked of...

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


zpool import
Code:
[root@freenas] ~# zpool import
  pool: Tezx
    id: 11504035284091218965
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://www.sun.com/msg/ZFS-8000-3C
config:

        Tezx                                            UNAVAIL  insufficient replicas
          raidz1                                        UNAVAIL  insufficient replicas
            135110040816767742                          UNAVAIL  cannot open
            gptid/9ce746cb-e90b-11e1-bc36-001fd08da947  ONLINE
            gptid/9d871f42-e90b-11e1-bc36-001fd08da947  UNAVAIL  cannot open
          raidz1                                        DEGRADED
            gptid/74895f7d-f965-11e1-b888-001fd08da947  ONLINE
            gptid/75475e97-f965-11e1-b888-001fd08da947  ONLINE
            5099340978802712240                         UNAVAIL  cannot open


camcontrol devlist
Code:
[root@freenas] ~# camcontrol devlist
<WDC WD20EARX-00PASB0 51.0AB51>    at scbus1 target 0 lun 0 (pass0,ada0)
<WDC WD20EARS-00S8B1 80.00A80>     at scbus1 target 1 lun 0 (pass1,ada1)
<ST3000DM001-9YN166 CC4B>          at scbus3 target 0 lun 0 (pass4,ada4)
<Lexar JumpDrive 1100>             at scbus5 target 0 lun 0 (da0,pass5)


glabel status
Code:
[root@freenas] ~# glabel status
                                      Name  Status  Components
gptid/74895f7d-f965-11e1-b888-001fd08da947     N/A  ada0p2
gptid/75475e97-f965-11e1-b888-001fd08da947     N/A  ada1p2
gptid/9ce746cb-e90b-11e1-bc36-001fd08da947     N/A  ada4p2
                             ufs/FreeNASs3     N/A  da0s3
                             ufs/FreeNASs4     N/A  da0s4
                            ufs/FreeNASs1a     N/A  da0s1a


gpart show
Code:
[root@freenas] ~# gpart show
=>        34  3907026988  ada0  GPT  (1.8T)
          34          94        - free -  (47K)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  3902832590     2  freebsd-zfs  (1.8T)

=>        34  3907029101  ada1  GPT  (1.8T)
          34          94        - free -  (47K)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  3902834703     2  freebsd-zfs  (1.8T)

=>        34  5860533101  ada4  GPT  (2.7T)
          34          94        - free -  (47K)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  5856338703     2  freebsd-zfs  (2.7T)

=>      63  15343524  da0  MBR  (7.3G)
        63   1930257    1  freebsd  [active]  (943M)
   1930320        63       - free -  (32K)
   1930383   1930257    2  freebsd  (943M)
   3860640      3024    3  freebsd  (1.5M)
   3863664     41328    4  freebsd  (20M)
   3904992  11438595       - free -  (5.5G)

=>      0  1930257  da0s1  BSD  (943M)
        0       16         - free -  (8.0K)
       16  1930241      1  !0  (943M)
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
vdev0 has two failed/missing disks. Either you get at least one working or there's no hope. Even then, corruption may exist.
vdev1 has a single missing/failed disk, so it's risking corruption, too and is sitting dangerously close to a cliff.

Sounds like:
  1. Reading of Cyberjock's guide is in order
  2. SMART tests, scrubs and/or email alerts were not set up properly. Big mistake.
 

hatzman29

Cadet
Joined
Jun 5, 2013
Messages
6
Thanks for the reply mate. Ill give the guide a read and look into setting up the things mentioned in point 2. You are right this was a big oversight originally.

Strangely I shutdown and restarted and it started up and the zpool is available now. I can access my share over the network, etc. But something is a bit odd. So I ran the zpool status -v again...



Code:
[root@freenas] ~# zpool status -v
  pool: Tezx
state: DEGRADED
status: One or more devices has experienced an error resulting in data
        corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
        entire pool from backup.
   see: http://www.sun.com/msg/ZFS-8000-8A
scrub: none requested
config:

        NAME                                            STATE     READ WRITE CKSUM
        Tezx                                            DEGRADED     0     0     0
          raidz1                                        DEGRADED     0     0     4
            gptid/9c49b092-e90b-11e1-bc36-001fd08da947  ONLINE       0     0     1
            gptid/9ce746cb-e90b-11e1-bc36-001fd08da947  ONLINE       0     0     0
            15202379410322700834                        UNAVAIL      0     0     0  was /dev/gptid/9d871f42-e90b-11e1-bc36-001fd08da947
          raidz1                                        ONLINE       0     0     0
            gptid/74895f7d-f965-11e1-b888-001fd08da947  ONLINE       0     0     0
            gptid/75475e97-f965-11e1-b888-001fd08da947  ONLINE       0     0     0
            gptid/75efd28f-f965-11e1-b888-001fd08da947  ONLINE       0     0     7

errors: Permanent errors have been detected in the following files:


Then a bunch of files.

I feel like I have a few problems potentially here, but not sure...

1. The USB with freenas on it might need a refresh/replacement.
2. A disk is playing up. But given I now can see everything, perhaps I can just drop in a new "big" disk, and remove the bad one?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
There is no disk replacement. Your pool has corruption.

At this point the only long-term solution is to copy the data off the zpool, destroy it and recreate it (without RAIDZ1... *cough*), and copy the data back to the new zpool.
 

hatzman29

Cadet
Joined
Jun 5, 2013
Messages
6
There is no disk replacement. Your pool has corruption.

At this point the only long-term solution is to copy the data off the zpool, destroy it and recreate it (without RAIDZ1... *cough*), and copy the data back to the new zpool.

Thanks mate.

Your comment of without RAIDZ1... what would you recommend for what is essentially a media server. I mean RAID1 is nice, but there is a random assortment of disks here, so not sure I can do that without buying new disks (which may need to be the case). Z2 gives an extra disk of fault tolerance.

I'm wondering if it is worth buying new disks anyway. We originally went the JBOD idea and put some random spare drives in there to build the pool.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
I'd recommend RAIDZ2... :)

See that link in my sig about "RAIDZ1 is dead"? :)
 
Status
Not open for further replies.
Top