Can't bring drive ONLINE from UNAVAIL

Status
Not open for further replies.

eqartimus

Explorer
Joined
Aug 2, 2014
Messages
66
Ok, I have read sooooo much. I am willing to read more if you point me somewhere. I even found a few threads with this same title (very similar.) But I still can't resolve my situation.

FreeNAS-9.2.1.6-RELEASE-x64 (ddd1e39)
Intel(R) Xeon(R) CPU E3-1226 v3 @ 3.30GHz
32402MB (ECC)

I have 6x2TB:
Code:
[root@freenas] ~# zpool status
  pool: Deerhaven1
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://illumos.org/msg/ZFS-8000-2Q
  scan: scrub repaired 0 in 0h7m with 0 errors on Sat Aug  9 20:14:20 2014
config:

        NAME                                                STATE     READ WRITE CKSUM
        Deerhaven1                                          DEGRADED     0     0     0
          raidz2-0                                          DEGRADED     0     0     0
            gptid/38009294-1dcb-11e4-82ae-d05099013a39.eli  ONLINE       0     0     0
            6630984596155414364                             UNAVAIL      0     0     0  was /dev/gptid/38b76d59-1dcb-11e4-82ae-d05099013a39.eli
            gptid/3965262b-1dcb-11e4-82ae-d05099013a39.eli  ONLINE       0     0     0
            gptid/3a143aab-1dcb-11e4-82ae-d05099013a39.eli  ONLINE       0     0     0
            gptid/3ac8051b-1dcb-11e4-82ae-d05099013a39.eli  ONLINE       0     0     0
            gptid/3b79f677-1dcb-11e4-82ae-d05099013a39.eli  ONLINE       0     0     0

errors: No known data errors

I *think* i bumped the cable when I put the cover back on the case. The drive *disappeared*. I shutdown and changed the cable. Now the drive is *there*. But I am unable to Online it or whatever. I scrubbed it and I did Online it, but none of that changed the status of UNAVAIL.

Code:
[root@freenas] ~# camcontrol devlist
<WDC WD20EFRX-68EUZN0 80.00A80>    at scbus5 target 0 lun 0 (ada0,pass0)
<WDC WD20EFRX-68EUZN0 80.00A80>    at scbus6 target 0 lun 0 (ada1,pass1)
<WDC WD20EFRX-68EUZN0 80.00A80>    at scbus7 target 0 lun 0 (ada2,pass2)
<WDC WD20EFRX-68EUZN0 80.00A80>    at scbus8 target 0 lun 0 (ada3,pass3)
<WDC WD20EFRX-68EUZN0 80.00A80>    at scbus9 target 0 lun 0 (ada4,pass4)
<WDC WD20EFRX-68EUZN0 80.00A80>    at scbus10 target 0 lun 0 (ada5,pass5)
<PNY USB 2.0 FD 0.00>              at scbus12 target 0 lun 0 (da0,pass6)


Code:
[root@freenas] ~# gpart show
=>        34  3907029101  ada0  GPT  (1.8T)
          34          94        - free -  (47k)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  3902834696     2  freebsd-zfs  (1.8T)
  3907029128           7        - free -  (3.5k)

=>        34  3907029101  ada1  GPT  (1.8T)
          34          94        - free -  (47k)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  3902834696     2  freebsd-zfs  (1.8T)
  3907029128           7        - free -  (3.5k)

=>        34  3907029101  ada2  GPT  (1.8T)
          34          94        - free -  (47k)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  3902834696     2  freebsd-zfs  (1.8T)
  3907029128           7        - free -  (3.5k)

=>        34  3907029101  ada3  GPT  (1.8T)
          34          94        - free -  (47k)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  3902834696     2  freebsd-zfs  (1.8T)
  3907029128           7        - free -  (3.5k)

=>        34  3907029101  ada4  GPT  (1.8T)
          34          94        - free -  (47k)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  3902834696     2  freebsd-zfs  (1.8T)
  3907029128           7        - free -  (3.5k)

=>        34  3907029101  ada5  GPT  (1.8T)
          34          94        - free -  (47k)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  3902834696     2  freebsd-zfs  (1.8T)
  3907029128           7        - free -  (3.5k)

=>       63  125030337  da0  MBR  (59G)
         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  121125408       - free -  (57G)

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


Code:
[root@freenas] ~# glabel status
                                      Name  Status  Components
gptid/38009294-1dcb-11e4-82ae-d05099013a39     N/A  ada0p2
gptid/38b76d59-1dcb-11e4-82ae-d05099013a39     N/A  ada1p2
gptid/3965262b-1dcb-11e4-82ae-d05099013a39     N/A  ada2p2
gptid/3a143aab-1dcb-11e4-82ae-d05099013a39     N/A  ada3p2
gptid/3ac8051b-1dcb-11e4-82ae-d05099013a39     N/A  ada4p2
gptid/3b79f677-1dcb-11e4-82ae-d05099013a39     N/A  ada5p2
                             ufs/FreeNASs3     N/A  da0s3
                             ufs/FreeNASs4     N/A  da0s4
                            ufs/FreeNASs1a     N/A  da0s1a



Tried to online it:
Code:
[root@freenas] ~# zpool online Deerhaven1 /dev/gptid/38b76d59-1dcb-11e4-82ae-d05099013a39.eli
warning: device '/dev/gptid/38b76d59-1dcb-11e4-82ae-d05099013a39.eli' onlined, but remains in faulted state
use 'zpool replace' to replace devices that are no longer present


And the drive info:
Code:
[root@freenas] ~# smartctl -q noserial -a /dev/ada1
smartctl 6.2 2013-07-26 r3841 [FreeBSD 9.2-RELEASE-p9 amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Red (AF)
Device Model:     WDC WD20EFRX-68EUZN0
Firmware Version: 80.00A80
User Capacity:    2,000,398,934,016 bytes [2.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2 (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sat Aug  9 21:28:09 2014 CDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Disabled.
Self-test execution status:      ( 249) Self-test routine in progress...
                                        90% of test remaining.
Total time to complete Offline
data collection:                (26460) seconds.
Offline data collection
capabilities:                    (0x7b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        ( 267) minutes.
Conveyance self-test routine
recommended polling time:        (   5) minutes.
SCT capabilities:              (0x703d) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   200   200   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0027   175   175   021    Pre-fail  Always       -       4241
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       14
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   200   200   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       67
 10 Spin_Retry_Count        0x0032   100   253   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   253   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       14
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       11
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       10
194 Temperature_Celsius     0x0022   111   100   000    Old_age   Always       -       36
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   100   253   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   200   200   000    Old_age   Offline      -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Conveyance offline  Completed without error       00%        67         -
# 2  Short offline       Completed without error       00%        67         -
# 3  Short offline       Completed without error       00%        66         -
# 4  Extended offline    Completed without error       00%        11         -
# 5  Conveyance offline  Completed without error       00%         6         -
# 6  Short offline       Completed without error       00%         5         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.


So, should I just hit the "replace" button and see if it brings it back?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
You can try doing a replace, but you're probably going to have to take the drive that isn't in the pool anymore and zero out the disk, THEN do a replace.

This is why you don't touch shit with the server on! LOL
 

eqartimus

Explorer
Joined
Aug 2, 2014
Messages
66
Replace seems to have worked. I am going with the story that I bumped the cable. I have been reading non-stop for 2 weeks now (retired from CIS field 15 years ago) and still feel pretty much "in the woods" on this stuff.

I guess I will set up SMART drive test to run -- and verify that I have no actual drive problem. I have yet to see the output from these SMART tests. I am guessing that they are SMART enough to tell me if I need to know something :P

Thank you for your support cyber -- I watched your slide show .. it was nice to see things organized ...
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
Sir:

If you have the SMART service set up in the GUI, it should email you with problems.

However, if you'd like, you can drop to the FreeNAS shell prompt, and do: smartctl -x /dev/adaN where N is the drive number, and you will see the full SMART output. Midway in that output will be the results of the last several SMART tests ("Completed without Error" is what you'll probably see since you didn't get an email).

Cyberjock and I recommend doing a "long" SMART test biweekly, and in the off weeks, that's when we schedule scrubs. On any given week, therefore, you should have either a scrub, or a "long" SMART test scheduled. You can configure these, I am sure as you know, in the GUI.
 

eqartimus

Explorer
Joined
Aug 2, 2014
Messages
66
Thanks DrKK and Cyber ... I will set my machine as you suggest. I spent 30 years knowing everything about computers and after 15 years out of the field, I know next to nothing. (As Cyber warned) it has been steep learning curve ... and clearly, Im not even close to done. But it's really nice that you guys contribute your time and attention to the people here that need it. THANK YOU!

David
 
Status
Not open for further replies.
Top