Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2018 18:14:07 -0700
From:      Aaron <drizzt321@gmail.com>
To:        Mike Tancsa <mike@sentex.net>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: ZFS mirror keeps going offline/removed
Message-ID:  <CAEsW2o9eiwb=TqvNge6oOjYaOyq3EQSAeCpriHvrjoTF88qP%2BA@mail.gmail.com>
In-Reply-To: <7e6ff012-5108-aa30-2909-6a638b2cdbb1@sentex.net>
References:  <CAEsW2o-DANYo0ka3UDuqumeFMBnfzz1FaRxJCCAwW=mW80z8Yw@mail.gmail.com> <7e6ff012-5108-aa30-2909-6a638b2cdbb1@sentex.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hm. SMART seems fine (see below for ada2 & ada8), but looks fine. I did
look at camcontrol, don't see anything obvious but strange that ada2 & ada8
have the pass first, than the name. I do wonder if perhaps it's the SATA
controller that might be going bad. Can't figure out if both drivers are on
the same controller or not without cracking open the case. Unless you know
some other command that I don't know about :)    If it was just 1 disk the
mirror wouldn't go offline if 1 of them had errors, right? It'd just be
marked as degraded but still functional, right? This the entire mirror
drops offline entirely.

# camcontrol devlist
<WDC WD20EURS-63S48Y0 51.0AB51>    at scbus0 target 0 lun 0 (ada0,pass0)
<WDC WD20EURS-73SPKY0 80.00A80>    at scbus1 target 0 lun 0 (ada1,pass1)
<ST4000DM005-2DP166 0001>          at scbus2 target 0 lun 0 (pass2,ada2)
<WDC WD20EURS-63S48Y0 51.0AB51>    at scbus3 target 0 lun 0 (ada3,pass3)
<BP5 SAFM12.2>                     at scbus4 target 0 lun 0 (ada4,pass4)
<WDC WD20EURS-63S48Y0 51.0AB51>    at scbus6 target 0 lun 0 (ada5,pass5)
<WDC WD20EURS-63S48Y0 51.0AB51>    at scbus7 target 0 lun 0 (ada6,pass6)
<WDC WD20EURS-63S48Y0 51.0AB51>    at scbus8 target 0 lun 0 (ada7,pass7)
<ST4000DM005-2DP166 0001>          at scbus9 target 0 lun 0 (pass8,ada8)
<AHCI SGPIO Enclosure 1.00 0001>   at scbus10 target 0 lun 0 (ses0,pass9)


# smartctl -a  /dev/ada2
smartctl 6.6 2017-11-05 r4594 [FreeBSD 11.0-RELEASE-p1 amd64] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 3.5
Device Model:     ST4000DM005-2DP166
Serial Number:    ZDH1CTDZ
LU WWN Device Id: 5 000c50 0a2bdc9c5
Firmware Version: 0001
User Capacity:    4,000,787,030,016 bytes [4.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5980 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 May 30 18:02:12 2018 PDT
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:                (  591) seconds.
Offline data collection
capabilities:                    (0x73) SMART execute Offline immediate.
                                        Auto Offline data collection on/off
support.
                                        Suspend Offline collection upon new
                                        command.
                                        No 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:        (   1) minutes.
Extended self-test routine
recommended polling time:        ( 640) minutes.
Conveyance self-test routine
recommended polling time:        (   2) minutes.
SCT capabilities:              (0x10a5) SCT Status supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED
WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   100   064   006    Pre-fail
Always       -       36944
  3 Spin_Up_Time            0x0003   095   094   000    Pre-fail
Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age
Always       -       24
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail
Always       -       0
  7 Seek_Error_Rate         0x000f   076   060   045    Pre-fail
Always       -       39669459
  9 Power_On_Hours          0x0032   091   091   000    Old_age
Always       -       8225 (171 185 0)
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail
Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age
Always       -       11
183 Runtime_Bad_Block       0x0032   100   100   000    Old_age
Always       -       0
184 End-to-End_Error        0x0032   100   100   099    Old_age
Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age
Always       -       0
188 Command_Timeout         0x0032   100   100   000    Old_age
Always       -       0 0 0
189 High_Fly_Writes         0x003a   100   100   000    Old_age
Always       -       0
190 Airflow_Temperature_Cel 0x0022   071   062   040    Old_age
Always       -       29 (Min/Max 28/34)
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age
Always       -       0
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age
Always       -       1
193 Load_Cycle_Count        0x0032   099   099   000    Old_age
Always       -       3008
194 Temperature_Celsius     0x0022   029   040   000    Old_age
Always       -       29 (0 19 0 0 0)
197 Current_Pending_Sector  0x0012   100   100   000    Old_age
Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age
Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age
Always       -       0
240 Head_Flying_Hours       0x0000   100   253   000    Old_age
Offline      -       496h+27m+04.872s
241 Total_LBAs_Written      0x0000   100   253   000    Old_age
Offline      -       15191309585
242 Total_LBAs_Read         0x0000   100   253   000    Old_age
Offline      -       43595023625

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

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.



# smartctl -a  /dev/ada8
smartctl 6.6 2017-11-05 r4594 [FreeBSD 11.0-RELEASE-p1 amd64] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 3.5
Device Model:     ST4000DM005-2DP166
Serial Number:    ZDH1CS9M
LU WWN Device Id: 5 000c50 0a2bdfd11
Firmware Version: 0001
User Capacity:    4,000,787,030,016 bytes [4.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5980 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: 3.0 Gb/s)
Local Time is:    Wed May 30 18:03:20 2018 PDT
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:                (  601) seconds.
Offline data collection
capabilities:                    (0x73) SMART execute Offline immediate.
                                        Auto Offline data collection on/off
support.
                                        Suspend Offline collection upon new
                                        command.
                                        No 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:        (   1) minutes.
Extended self-test routine
recommended polling time:        ( 658) minutes.
Conveyance self-test routine
recommended polling time:        (   2) minutes.
SCT capabilities:              (0x10a5) SCT Status supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED
WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   100   064   006    Pre-fail
Always       -       47704
  3 Spin_Up_Time            0x0003   096   094   000    Pre-fail
Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age
Always       -       23
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail
Always       -       0
  7 Seek_Error_Rate         0x000f   075   060   045    Pre-fail
Always       -       35081586
  9 Power_On_Hours          0x0032   091   091   000    Old_age
Always       -       8212 (143 206 0)
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail
Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age
Always       -       12
183 Runtime_Bad_Block       0x0032   100   100   000    Old_age
Always       -       0
184 End-to-End_Error        0x0032   100   100   099    Old_age
Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age
Always       -       0
188 Command_Timeout         0x0032   100   100   000    Old_age
Always       -       0 0 0
189 High_Fly_Writes         0x003a   100   100   000    Old_age
Always       -       0
190 Airflow_Temperature_Cel 0x0022   070   061   040    Old_age
Always       -       30 (Min/Max 29/35)
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age
Always       -       0
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age
Always       -       0
193 Load_Cycle_Count        0x0032   099   099   000    Old_age
Always       -       2863
194 Temperature_Celsius     0x0022   030   040   000    Old_age
Always       -       30 (0 19 0 0 0)
197 Current_Pending_Sector  0x0012   100   100   000    Old_age
Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age
Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age
Always       -       0
240 Head_Flying_Hours       0x0000   100   253   000    Old_age
Offline      -       413h+54m+28.689s
241 Total_LBAs_Written      0x0000   100   253   000    Old_age
Offline      -       22813192594
242 Total_LBAs_Read         0x0000   100   253   000    Old_age
Offline      -       28024253036

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

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.

--Aaron

On Wed, May 30, 2018 at 8:24 AM, Mike Tancsa <mike@sentex.net> wrote:

> On 5/29/2018 10:29 PM, Aaron wrote:
> > So recently my ZFS mirror keeps getting both drives marked as removed
> which
> >
> > May 29 19:20:33 darkserver kernel: ada2 at ahcich2 bus 0 scbus2 target 0
> > lun 0
> > May 29 19:20:33 darkserver kernel: ada2: <ST4000DM005-2DP166 0001> s/n
> > ZDH1CTDZ detached
>
> If I am reading this right, the physical drive is disappearing from the
> system.
> Try installing smartmontools
> and post
> smartctl -a /dev/ada2
>
>
>
>
> --
> -------------------
> Mike Tancsa, tel +1 519 651 3400 x203
> Sentex Communications, mike@sentex.net
> Providing Internet services since 1994 www.sentex.net
> Cambridge, Ontario Canada
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEsW2o9eiwb=TqvNge6oOjYaOyq3EQSAeCpriHvrjoTF88qP%2BA>