Disk Unavailable

lmannyr

Contributor
Joined
Oct 11, 2015
Messages
198
I replaced a failing drive.

Ran Short, Long, Conveyence, and badblocks on the replacement disk on a different system; no errors.

In webGUI, followed the manual to take the bad disk out. After the disk was replaced, I put it online/replace etc... It said resilvering process would be started or something to that effect. a couple days has passed and I still have a "DEGRADED" pool with he replacement disk "unavailable".

Smart and zpool status output attached.




Code:
smartctl 6.6 2017-11-05 r4594 [FreeBSD 11.2-STABLE amd64] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Red
Device Model:     WDC WD40EFRX-68N32N0
Serial Number:    WD-WCC7K6AF8J4X
LU WWN Device Id: 5 0014ee 2677e76a8
Firmware Version: 82.00A82
User Capacity:    4,000,787,030,016 bytes [4.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Wed Oct 14 10:58:17 2020 EDT
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:      (   0)    The previous self-test routine completed
                    without error or no self-test has ever
                    been run.
Total time to complete Offline
data collection:         (42780) 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:      ( 454) minutes.
Conveyance self-test routine
recommended polling time:      (   5) minutes.
SCT capabilities:            (0x303d)    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   219   184   021    Pre-fail  Always       -       4041
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       10
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   100   253   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       97
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       -       10
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       6
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       6
194 Temperature_Celsius     0x0022   118   112   000    Old_age   Always       -       32
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  Extended offline    Completed without error       00%         9         -
# 2  Conveyance offline  Completed without error       00%         1         -
# 3  Short offline       Completed without error       00%         1         -
# 4  Short offline       Completed without error       00%         1         -

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.

root@Sparrow:~ # zpool status
  pool: BANK
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 0 days 05:30:23 with 0 errors on Sat Sep 19 05:30:27 2020
config:

    NAME                                            STATE     READ WRITE CKSUM
    BANK                                            DEGRADED     0     0     0
      raidz2-0                                      DEGRADED     0     0     0
        gptid/a30076fc-7a79-11e5-8637-0cc47a6ae0be  ONLINE       0     0     0
        gptid/a3bebf3c-7a79-11e5-8637-0cc47a6ae0be  ONLINE       0     0     0
        gptid/ed456456-e41f-11e6-9400-0cc47a6ae0be  ONLINE       0     0     0
        3796397183362776384                         UNAVAIL      0     0     0  was /dev/gptid/3f72adff-1dd6-11e9-b2cb-0cc47a6ae0be
        gptid/014298d9-1dd6-11e9-b2cb-0cc47a6ae0be  ONLINE       0     0     0
        gptid/a6b36e4f-7a79-11e5-8637-0cc47a6ae0be  ONLINE       0     0     0
        gptid/a7706d59-7a79-11e5-8637-0cc47a6ae0be  ONLINE       0     0     0
        gptid/a82c560c-7a79-11e5-8637-0cc47a6ae0be  ONLINE       0     0     0
        gptid/a8e7d0ca-7a79-11e5-8637-0cc47a6ae0be  ONLINE       0     0     0
        gptid/00fb152c-210e-11e9-a350-0cc47a6ae0be  ONLINE       0     0     0

errors: No known data errors

  pool: freenas-boot
state: ONLINE
  scan: scrub repaired 0 in 0 days 00:40:02 with 0 errors on Sun Oct 11 04:25:02 2020
config:

    NAME                                            STATE     READ WRITE CKSUM
    freenas-boot                                    ONLINE       0     0     0
      mirror-0                                      ONLINE       0     0     0
        da8p2                                       ONLINE       0     0     0
        gptid/b9305013-5b3b-11ea-8936-0cc47a6ae0be  ONLINE       0     0     0

errors: No known data errors
 
Last edited:
Joined
Jan 7, 2015
Messages
1,150
Do camcontrol devlist, count your drives, seems you should have 12 devices. Basically I just want to know if there is in fact a missing drive or not.
 

lmannyr

Contributor
Joined
Oct 11, 2015
Messages
198
Do camcontrol devlist, count your drives, seems you should have 12 devices. Basically I just want to know if there is in fact a missing drive or not.
da1 is the one not working.

Code:
camcontrol devlist
<ATA WDC WD40EFRX-68N 0A82>        at scbus0 target 0 lun 0 (pass0,da0)
<ATA WDC WD40EFRX-68N 0A82>        at scbus0 target 1 lun 0 (pass1,da1)
<ATA WDC WD40EFRX-68W 0A82>        at scbus0 target 2 lun 0 (pass2,da2)
<ATA WDC WD40EFRX-68W 0A82>        at scbus0 target 3 lun 0 (pass3,da3)
<ATA WDC WD40EFRX-68W 0A82>        at scbus0 target 4 lun 0 (pass4,da4)
<ATA WDC WD40EFRX-68W 0A82>        at scbus0 target 5 lun 0 (pass5,da5)
<ATA WDC WD40EFRX-68W 0A82>        at scbus0 target 6 lun 0 (pass6,da6)
<ATA WDC WD40EFRX-68W 0A82>        at scbus0 target 7 lun 0 (pass7,da7)
<WDC WD40EFRX-68WT0N0 82.00A82>    at scbus1 target 0 lun 0 (pass8,ada0)
<WDC WD40EFRX-68WT0N0 82.00A82>    at scbus2 target 0 lun 0 (pass9,ada1)
<SanDisk Cruzer Fit 1.27>          at scbus8 target 0 lun 0 (pass10,da8)
<SanDisk Cruzer Fit 1.27>          at scbus9 target 0 lun 0 (pass11,da9)
 
Joined
Jan 7, 2015
Messages
1,150
Says 12. Try running thru the disk replace again.
 

lmannyr

Contributor
Joined
Oct 11, 2015
Messages
198
Says 12. Try running thru the disk replace again.

Using webGUI, I went to pool status to the one disk that says "unavailable" and selected "Online". Then the below changes happened. The disk still shows "unavailable" in the pool status.

Code:
FN ZFS: vdev state changed, pool_guid=18188337117115067697 vdev_guid=11967199016064865894
Oct 18 15:47:16 FN ZFS: vdev state changed, pool_guid=18188337117115067697 vdev_guid=13124258259480360076
Oct 18 15:47:16 FN ZFS: vdev state changed, pool_guid=18188337117115067697 vdev_guid=1031715006901143710
Oct 18 15:47:17 FN ZFS: vdev state changed, pool_guid=18188337117115067697 vdev_guid=3796397183362776384
Oct 18 15:47:17 FN ZFS: vdev state changed, pool_guid=18188337117115067697 vdev_guid=6699592297095300927
Oct 18 15:47:17 FN ZFS: vdev state changed, pool_guid=18188337117115067697 vdev_guid=8958299495562291915
Oct 18 15:47:17 FN ZFS: vdev state changed, pool_guid=18188337117115067697 vdev_guid=685725589415410791
Oct 18 15:47:17 FN ZFS: vdev state changed, pool_guid=18188337117115067697 vdev_guid=2262143812474197006
Oct 18 15:47:17 FN ZFS: vdev state changed, pool_guid=18188337117115067697 vdev_guid=1361399097482395068
Oct 18 15:47:17 FN ZFS: vdev state changed, pool_guid=18188337117115067697 vdev_guid=8321468576493238873


zpool status in ssh... after attempting to ONLINE the disk.

Code:
zpool status
  pool: BANK
 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 0 days 04:58:39 with 0 errors on Thu Oct 15 04:58:43 2020
config:

    NAME                                            STATE     READ WRITE CKSUM
    BANK                                            DEGRADED     0     0     0
      raidz2-0                                      DEGRADED     0     0     0
        gptid/a30076fc-7a79-11e5-8637-0cc47a6ae0be  ONLINE       0     0     0
        gptid/a3bebf3c-7a79-11e5-8637-0cc47a6ae0be  ONLINE       0     0     0
        gptid/ed456456-e41f-11e6-9400-0cc47a6ae0be  ONLINE       0     0     0
        3796397183362776384                         UNAVAIL      0     0     0  was /dev/gptid/3f72adff-1dd6-11e9-b2cb-0cc47a6ae0be
        gptid/014298d9-1dd6-11e9-b2cb-0cc47a6ae0be  ONLINE       0     0     0
        gptid/a6b36e4f-7a79-11e5-8637-0cc47a6ae0be  ONLINE       0     0     0
        gptid/a7706d59-7a79-11e5-8637-0cc47a6ae0be  ONLINE       0     0     0
        gptid/a82c560c-7a79-11e5-8637-0cc47a6ae0be  ONLINE       0     0     0
        gptid/a8e7d0ca-7a79-11e5-8637-0cc47a6ae0be  ONLINE       0     0     0
        gptid/00fb152c-210e-11e9-a350-0cc47a6ae0be  ONLINE       0     0     0

errors: No known data errors

  pool: freenas-boot
 state: ONLINE
  scan: scrub repaired 0 in 0 days 00:27:39 with 0 errors on Sat Oct 17 04:12:39 2020
config:

    NAME                                            STATE     READ WRITE CKSUM
    freenas-boot                                    ONLINE       0     0     0
      mirror-0                                      ONLINE       0     0     0
        da8p2                                       ONLINE       0     0     0
        gptid/b9305013-5b3b-11ea-8936-0cc47a6ae0be  ONLINE       0     0     0

errors: No known data errors
 

lmannyr

Contributor
Joined
Oct 11, 2015
Messages
198
Tried zpool online and zpool replace...

Code:
root@FN:~ # zpool online BANK 3796397183362776384
warning: device '3796397183362776384' onlined, but remains in faulted state
use 'zpool replace' to replace devices that are no longer present




root@FN:~ # zpool online BANK /dev/gptid/3f72adff-1dd6-11e9-b2cb-0cc47a6ae0be
warning: device '/dev/gptid/3f72adff-1dd6-11e9-b2cb-0cc47a6ae0be' onlined, but remains in faulted state
use 'zpool replace' to replace devices that are no longer present
root@Sparrow:~ # zpool status
 
Top