UNAVAIL Pool

Status
Not open for further replies.

Fatih Suzer

Cadet
Joined
Feb 16, 2014
Messages
4
I really don't know what I did wrong when trying to replace the hdd in degraded state but I've lost years of photos now. I would really appreciate any help as my you guys are my last hope :(

Thank you very much in advance.

Code:
[root@freenas] /mnt# zpool import
   pool: Storage
     id: 10023041546721929184
  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:

    Storage                                         UNAVAIL  missing device
      mirror-0                                      DEGRADED
        14574556656759483270                        OFFLINE
        gptid/d0fa855a-d8fc-11e3-bc91-1c6f65f806cd  ONLINE

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

Fatih Suzer

Cadet
Joined
Feb 16, 2014
Messages
4
Code:
[root@freenas] /mnt# glabel status
                                      Name  Status  Components
gptid/9489c4ce-ab11-11e4-a2c1-1c6f65f806cd     N/A  da0p1
gptid/d0e60d48-d8fc-11e3-bc91-1c6f65f806cd     N/A  ada1p1
gptid/d0fa855a-d8fc-11e3-bc91-1c6f65f806cd     N/A  ada1p2


Code:
[root@freenas] /mnt# gpart show
=>      34  31277165  da0  GPT  (14G)
        34      1024    1  bios-boot  (512k)
      1058         6       - free -  (3.0k)
      1064  31276128    2  freebsd-zfs  (14G)
  31277192         7       - free -  (3.5k)

=>        34  1953525101  ada1  GPT  (931G)
          34          94        - free -  (47k)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  1949330696     2  freebsd-zfs  (929G)
  1953525128           7        - free -  (3.5k)


Code:
[root@freenas] /mnt# camcontrol devlist
<ST1000DM003-1CH162 CC47>          at scbus0 target 0 lun 0 (ada0,pass0)
<WDC WD10EZRX-00L4HB0 01.01A01>    at scbus2 target 0 lun 0 (ada1,pass1)
<SanDisk Extreme 0001>             at scbus7 target 0 lun 0 (pass2,da0)


Code:
[root@freenas] /mnt# zpool status
  pool: freenas-boot
state: ONLINE
  scan: scrub repaired 0 in 0h3m with 0 errors on Sat Nov 14 03:48:23 2015
config:

    NAME        STATE     READ WRITE CKSUM
    freenas-boot  ONLINE       0     0     0
      da0p2     ONLINE       0     0     0

errors: No known data errors


Code:
[root@freenas] /mnt# gpart list
Geom name: da0
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 31277198
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: da0p1
   Mediasize: 524288 (512k)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 17408
   Mode: r0w0e0
   rawuuid: 9489c4ce-ab11-11e4-a2c1-1c6f65f806cd
   rawtype: 21686148-6449-6e6f-744e-656564454649
   label: 1
   length: 524288
   offset: 17408
   type: bios-boot
   index: 1
   end: 1057
   start: 34
2. Name: da0p2
   Mediasize: 16013377536 (14G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 544768
   Mode: r1w1e1
   rawuuid: 94abd8fc-ab11-11e4-a2c1-1c6f65f806cd
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: 1
   length: 16013377536
   offset: 544768
   type: freebsd-zfs
   index: 2
   end: 31277191
   start: 1064
Consumers:
1. Name: da0
   Mediasize: 16013942784 (14G)
   Sectorsize: 512
   Mode: r1w1e2

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: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   rawuuid: d0e60d48-d8fc-11e3-bc91-1c6f65f806cd
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: 1
   length: 2147483648
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 4194431
   start: 128
2. Name: ada1p2
   Mediasize: 998057316352 (929G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   rawuuid: d0fa855a-d8fc-11e3-bc91-1c6f65f806cd
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: 1
   length: 998057316352
   offset: 2147549184
   type: freebsd-zfs
   index: 2
   end: 1953525127
   start: 4194432
Consumers:
1. Name: ada1
   Mediasize: 1000204886016 (931G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
 
D

dlavigne

Guest
What steps (in detail) did you take to replace the drive? Is the old drive still inserted? Did you reboot?
 

Fatih Suzer

Cadet
Joined
Feb 16, 2014
Messages
4
What steps (in detail) did you take to replace the drive? Is the old drive still inserted? Did you reboot?

One of the drives failed and the pool was degraded. I tried to erase the failed drive but then freenas warned me the pool must be umounted. So, I detached the pool (Idiot move) and erased the failed drive thinking it might come back to life.
Now, when I try to import the pool, that's where it fails. I did not remove the failed drive, it is still connected.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Stop erasing things that you think are important, like photos!

Sound like you should be able to go into the GUI and offline the drive you erased and then replace it with itself.
 
Status
Not open for further replies.
Top