Discussion:
ZFS mirror keeps going offline/removed
(too old to reply)
Aaron
2018-05-30 02:29:34 UTC
Permalink
So recently my ZFS mirror keeps getting both drives marked as removed which
makes my mirror go offline. I don't see anything obvious in my
/var/log/messages (other than as below), although the errors always seem to
be in metadata. The latest error seems to be in a non-metadata location,
although not a file but a zfs directory. Whenever I run zpool clear -F -n
bulk it ends up back online and after a scrub no errors, but it keeps
happening. Based on the below paste, what could I look at that would tell
me which drive, or both, or what the issue is?

I'm running an old dual Xeon x5650, ECC memory (ran memtest86+ on it before
installing, no errors).

--Aaron



/var/log/messages


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
May 29 19:20:33 darkserver kernel: (ada2:ahcich2:0:0:0): Periph destroyed
May 29 19:20:33 darkserver ZFS: vdev state changed,
pool_guid=9608097630476313818 vdev_guid=4999141564141954755
May 29 19:20:33 darkserver ZFS: vdev is removed,
pool_guid=9608097630476313818 vdev_guid=4999141564141954755
May 29 19:20:38 darkserver kernel: ada8 at ahcich9 bus 0 scbus9 target 0
lun 0
May 29 19:20:38 darkserver kernel: ada8: <ST4000DM005-2DP166 0001> s/n
ZDH1CS9M detached
May 29 19:20:38 darkserver kernel: (ada8:ahcich9:0:0:0): Periph destroyed
May 29 19:21:19 darkserver kernel: ada2 at ahcich2 bus 0 scbus2 target 0
lun 0
May 29 19:21:19 darkserver kernel: ada2: <ST4000DM005-2DP166 0001> ACS-3
ATA SATA 3.x device
May 29 19:21:19 darkserver kernel: ada2: Serial Number ZDH1CTDZ
May 29 19:21:19 darkserver kernel: ada2: 600.000MB/s transfers (SATA 3.x,
UDMA6, PIO 8192bytes)
May 29 19:21:19 darkserver kernel: ada2: Command Queueing enabled
May 29 19:21:19 darkserver kernel: ada2: 3815447MB (7814037168 512 byte
sectors)
May 29 19:21:19 darkserver kernel: ada2: quirks=0x1<4K>
May 29 19:21:21 darkserver kernel: ada8 at ahcich9 bus 0 scbus9 target 0
lun 0
May 29 19:21:21 darkserver kernel: ada8: <ST4000DM005-2DP166 0001> ACS-3
ATA SATA 3.x device
May 29 19:21:21 darkserver kernel: ada8: Serial Number ZDH1CS9M
May 29 19:21:21 darkserver kernel: ada8: 300.000MB/s transfers (SATA 2.x,
UDMA6, PIO 8192bytes)
May 29 19:21:21 darkserver kernel: ada8: Command Queueing enabled
May 29 19:21:21 darkserver kernel: ada8: 3815447MB (7814037168 512 byte
sectors)
May 29 19:21:21 darkserver kernel: ada8: quirks=0x1<4K>



# zpool status -x -v

pool: bulk
state: UNAVAIL
status: One or more devices are faulted in response to IO failures.
action: Make sure the affected devices are connected, then run 'zpool
clear'.
see: http://illumos.org/msg/ZFS-8000-HC
scan: scrub repaired 0 in 7h22m with 0 errors on Tue May 29 04:27:28 2018
config:

NAME STATE READ WRITE CKSUM
bulk UNAVAIL 0 0 0
mirror-0 UNAVAIL 1 0 0
4999141564141954755 REMOVED 0 0 0 was /dev/ada2
16676652866205005686 REMOVED 0 0 0 was /dev/ada8

errors: Permanent errors have been detected in the following files:

<metadata>:<0x0>
<metadata>:<0x1>
<metadata>:<0x1b>
<metadata>:<0x33>
bulk/video:<0xc0ad>
Mike Tancsa
2018-05-30 15:24:36 UTC
Permalink
Post by Aaron
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, ***@sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada
Aaron
2018-05-31 01:14:07 UTC
Permalink
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
Post by Mike Tancsa
Post by Aaron
So recently my ZFS mirror keeps getting both drives marked as removed
which
Post by Aaron
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
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada
Frank Leonhardt
2018-06-08 14:16:25 UTC
Permalink
*** Fixed Top Post - reply at bottom ***
Post by Aaron
Post by Mike Tancsa
Post by Aaron
So recently my ZFS mirror keeps getting both drives marked as removed
which
Post by Aaron
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
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
I see you're using "Green" drives, and this is most likely your problem.
Basically, if they go to sleep to conserve power and then don't respond
quickly enough then ZFS (and gmirror) will decide they're off-line, or
at least flaky, and detach them.

Regards, Frank.
Aaron
2018-06-22 23:42:36 UTC
Permalink
So I think I figured it out, don't know where I saw it but I think I came
across some advice somewhere saying to try replacing the SATA cables, and
that seems like it has done the trick. They were plugged into different
controllers (one mobo, one PCIe HBA card). Might only have been 1 cable
with a problem, or maybe simply re-seating the cables would have worked.
But the 2 new cables seems to have made it work well, so I'm going to leave
it as is.

--Aaron
Post by Frank Leonhardt
*** Fixed Top Post - reply at bottom ***
Post by Aaron
Post by Mike Tancsa
Post by Aaron
So recently my ZFS mirror keeps getting both drives marked as removed
which
Post by Aaron
May 29 19:20:33 darkserver kernel: ada2 at ahcich2 bus 0 scbus2 target
0
Post by Aaron
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
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
I see you're using "Green" drives, and this is most likely your problem.
Basically, if they go to sleep to conserve power and then don't respond
quickly enough then ZFS (and gmirror) will decide they're off-line, or at
least flaky, and detach them.
Regards, Frank.
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe
@freebsd.org"
Loading...