Ooops... degraded ZFS pool due to loose SATA cable

Status
Not open for further replies.

Hexland

Contributor
Joined
Jan 17, 2012
Messages
110
So one of my drives had a loose SATA cable, and went offline for a bit when I bumped the machine...

The ZFS pool is made up of 6x2TB drives (ZFS-Raid2) plus a 60Gb SSD as a cache drive.

Code:
 zpool status
  pool: ZPOOL01
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
        the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: http://www.sun.com/msg/ZFS-8000-2Q
config:

        NAME                                            STATE     READ WRITE CKSUM
        ZPOOL01                                         DEGRADED     0     0     0
          raidz2                                        DEGRADED     0     0     0
            gptid/9741d656-c5c4-11e1-b4d4-6805ca02eb23  ONLINE       0     0     0
            gptid/980f181a-c5c4-11e1-b4d4-6805ca02eb23  ONLINE       0     0     0
            gptid/9870b3de-c5c4-11e1-b4d4-6805ca02eb23  ONLINE       0     0     0
            gptid/98c363fe-c5c4-11e1-b4d4-6805ca02eb23  UNAVAIL      3    65     0  cannot open
            gptid/9957482f-c5c4-11e1-b4d4-6805ca02eb23  ONLINE       0     0     0
            gptid/9a023f5b-c5c4-11e1-b4d4-6805ca02eb23  ONLINE       0     0     0
        cache
          gptid/6a80f31e-c613-11e1-b633-6805ca02eb23    ONLINE       0     0     0



The online option available through the GUI is 'replace' - but I don't seem to have the option of just re-initializing the disk that went offline (there's nothing wrong with it - it was just the cable (which has since been replaced))

What's the procedure for bringing this drive back online and resilvering?

Thanks
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
What's the procedure for bringing this drive back online and resilvering?
If the drive was showing as OFFLILNE then you would just
Code:
 zpool online pool device

It came up as UNAVAIL though. What's the output of:
Code:
camcontrol devlist

gpart show
 

Hexland

Contributor
Joined
Jan 17, 2012
Messages
110
Hmmm... after a quick reboot, seems to be back online again

Code:
 camcontrol devlist
<ATA ST2000DL003-9VT1 CC3C>        at scbus0 target 0 lun 0 (pass0,da0)
<ATA WDC WD20EARS-00M AB51>        at scbus0 target 1 lun 0 (pass1,da1)
<ATA CSSD-V60GB2 1.1>              at scbus0 target 2 lun 0 (pass2,da2)
<ATA ST32000542AS CC34>            at scbus0 target 4 lun 0 (pass3,da3)
<ATA ST32000542AS CC34>            at scbus0 target 5 lun 0 (pass4,da4)
<ATA Hitachi HDS72302 A5C0>        at scbus0 target 6 lun 0 (pass5,da5)
<ATA Hitachi HDS72302 A5C0>        at scbus0 target 7 lun 0 (pass6,da6)
<PNY USB 2.0 FD 8192>              at scbus7 target 0 lun 0 (pass7,da7)


[root@freenas] # gpart show
=>        34  3907029101  da0  GPT  (1.8T)
          34          94       - free -  (47K)
         128     4194304    1  freebsd-swap  (2.0G)
     4194432  3902834703    2  freebsd-zfs  (1.8T)

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

=>       34  117231341  da2  GPT  (56G)
         34         94       - free -  (47K)
        128    4194304    1  freebsd-swap  (2.0G)
    4194432  113036943    2  freebsd-zfs  (54G)

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

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

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

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

=>      63  15826860  da7  MBR  (7.5G)
        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  11921931       - free -  (5.7G)

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



zpool status
  pool: ZPOOL01
 state: ONLINE
 scrub: scrub in progress for 7h12m, 56.69% done, 5h30m to go
config:

        NAME                                            STATE     READ WRITE CKSUM
        ZPOOL01                                         ONLINE       0     0     0
          raidz2                                        ONLINE       0     0     0
            gptid/9741d656-c5c4-11e1-b4d4-6805ca02eb23  ONLINE       0     0     0
            gptid/980f181a-c5c4-11e1-b4d4-6805ca02eb23  ONLINE       0     0     0
            gptid/9870b3de-c5c4-11e1-b4d4-6805ca02eb23  ONLINE       0     0     0
            gptid/98c363fe-c5c4-11e1-b4d4-6805ca02eb23  ONLINE       0     0     0
            gptid/9957482f-c5c4-11e1-b4d4-6805ca02eb23  ONLINE       0     0     0
            gptid/9a023f5b-c5c4-11e1-b4d4-6805ca02eb23  ONLINE       0     0     0
        cache
          gptid/6a80f31e-c613-11e1-b633-6805ca02eb23    ONLINE       0     0     0

errors: No known data errors




Running a scrub now, just to make sure.

Thanks for the help
 
Status
Not open for further replies.
Top