How to figure out which drive is degraded?

KevDog

Patron
Joined
Nov 26, 2016
Messages
462
I received a notice today about one of the drives in my Zpool being unavailable. What's the proper procedure to address this? I assume SMART testing if possible. Anyway to figure out what drive specifically this refers to in the installation? I have 8 drives. Not exactly sure the exact HD this is.
Code:
freenas% zpool status
  pool: freenas-boot
 state: ONLINE
  scan: scrub repaired 0 in 0 days 00:02:35 with 0 errors on Tue Feb  4 03:47:35 2020
config:

    NAME        STATE     READ WRITE CKSUM
    freenas-boot  ONLINE       0     0     0
      mirror-0  ONLINE       0     0     0
        ada0p2  ONLINE       0     0     0
        ada1p2  ONLINE       0     0     0

errors: No known data errors

  pool: tank
 state: ONLINE
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:08:32 with 0 errors on Sun Feb  2 05:08:35 2020
config:

    NAME                                            STATE     READ WRITE CKSUM
    tank                                            ONLINE       0     0     0
      raidz2-0                                      ONLINE       0     0     0
        gptid/2e48e04a-d2f0-11e6-8e60-0cc47a84a594  ONLINE       0     0     0
        gptid/2eff3431-d2f0-11e6-8e60-0cc47a84a594  ONLINE       0     0     0
        gptid/2fad6079-d2f0-11e6-8e60-0cc47a84a594  ONLINE       0     0     0
        gptid/305f9785-d2f0-11e6-8e60-0cc47a84a594  ONLINE       0     0     0
        gptid/310fd248-d2f0-11e6-8e60-0cc47a84a594  ONLINE       0     0     0
        gptid/31c62952-d2f0-11e6-8e60-0cc47a84a594  ONLINE       0     0     0
        gptid/32845d1c-d2f0-11e6-8e60-0cc47a84a594  ONLINE       0     0     0
        gptid/3338ea10-d2f0-11e6-8e60-0cc47a84a594  ONLINE       0     0     0
    cache
      5095518990214578914                           UNAVAIL      0     0     0  was /dev/gptid/3385f967-d2f0-11e6-8e60-0cc47a84a594
    spares
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Anyway to figure out what drive specifically this refers to in the installation?
The status output tells you it's your cache device that's dropped out--I assume you know which device that is.
 

KevDog

Patron
Joined
Nov 26, 2016
Messages
462
Actually I do

I'm curious -- why isn't the device showing up within camctl:
Code:
<ATA WDC WD60EFRX-68L 0A82>        at scbus0 target 0 lun 0 (pass0,da0)
<ATA WDC WD60EFRX-68L 0A82>        at scbus0 target 1 lun 0 (pass1,da1)
<ATA WDC WD60EFRX-68L 0A82>        at scbus0 target 2 lun 0 (pass2,da2)
<ATA WDC WD60EFRX-68L 0A82>        at scbus0 target 3 lun 0 (pass3,da3)
<ATA WDC WD60EFRX-68L 0A82>        at scbus0 target 4 lun 0 (pass4,da4)
<ATA WDC WD60EFRX-68L 0A82>        at scbus0 target 5 lun 0 (pass5,da5)
<ATA WDC WD60EFRX-68L 0A82>        at scbus0 target 6 lun 0 (pass6,da6)
<ATA WDC WD60EFRX-68L 0A82>        at scbus0 target 7 lun 0 (pass7,da7)
<SATA SSD S9FM02.1>                at scbus1 target 0 lun 0 (pass8,ada0)
<SATA SSD S9FM02.1>                at scbus2 target 0 lun 0 (pass9,ada1)
<AHCI SGPIO Enclosure 2.00 0001>   at scbus7 target 0 lun 0 (pass10,ses0
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
If its dropped out that usually means its dead and likely the reason it wont show up.
 

KevDog

Patron
Joined
Nov 26, 2016
Messages
462
So -- I'm using an SSD drive as a cache -- not sure if this is smart or not -- just my setup. I pulled the cache drive and plugged it into nearby windows10 box. Drive showed right up and SMART status said everything OK. I'm really confused at this point.
 

KevDog

Patron
Joined
Nov 26, 2016
Messages
462
Thanks for link.
So I reconnected the cache drive back to the main installation and upon reboot -- zpool recognized it. I'm in process of running a long smartctl test on the drive to see results. Thanks for link. I might need help interpreting results.
 
Top