From owner-freebsd-questions@freebsd.org Thu May 31 01:14:41 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C76F8FC9E44 for ; Thu, 31 May 2018 01:14:40 +0000 (UTC) (envelope-from drizzt321@gmail.com) Received: from mail-ua0-x232.google.com (mail-ua0-x232.google.com [IPv6:2607:f8b0:400c:c08::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5DEF88501C for ; Thu, 31 May 2018 01:14:40 +0000 (UTC) (envelope-from drizzt321@gmail.com) Received: by mail-ua0-x232.google.com with SMTP id f30-v6so12108031uab.11 for ; Wed, 30 May 2018 18:14:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=xdsatOfe/HZ3qY4SV25jOh3pqZ9J1J4K+Vn2LRI/qTE=; b=VTw5ET5aRWOdVSdL29izzSU+97MRHR0fbigbsPXpjIxRRR6jRFz5O/lxfiNGYyyW6E FO2vhUL0NuW+nqU8ywQxj0JnLtlLQTilh4GANAdhKRMTkTmilonc1GXnkbFj+HKCJWfR /EBYm093nCtkr0FBVi8gT/fSgls/JfrUfFl1sgYnmXJZ/N7Ke5hZm0BOMWFIKGaauH59 k9fxBJYAaiPNeAMeGFjKuN+908MJ7hmoZN3YlJsKf5nnV4JptRyzrvhCLkmgT3Wmy5KL LIlMOmG2QT74ktXzQh5L5z3rGCsCnlsBeCXTIwTBMbj/zorhn36jS9iBaOl+8OHsvrjp VZRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=xdsatOfe/HZ3qY4SV25jOh3pqZ9J1J4K+Vn2LRI/qTE=; b=mEyqU/cgpHqzcJREBPz/IqPv+4bFCwlg/cNjbSThsHQkR3LGJZmyyg3ZjvTHD6NWSQ uNNT78ugfk/I89JnqPox2zZjPBHhdMijrAGUQE2Yxx5oTPYnrZX0tRnbIT/gCQXYzTDx bExiMFYII0KXEpgz0yYgUN5FXIu5Ujbp6KTEYea2r7K64148VBeHPwZLKSX8NgoNRzsq xaRrvneMM/OmQ+Ed5vAaSvg2TQuploP4Rvhidbrs35D8kTxer/0kNkZuRU+9orXwSTzv aa1cLgeXD8gkkbGgraEYJ3jT/cnvVOWXWWG+53RYKu9iUiZgVNQrFyhVODz7LgIqflV8 uGxA== X-Gm-Message-State: ALKqPwfo+ywwlspCjz+2yKaRptlVgkS71Fw1fZghAlyYBZfgXwYPoMgG 3xnrNDvD251CHBDlPW+Y5vES0ofXiP6cDjw7oPMnBgm4 X-Google-Smtp-Source: ADUXVKJoO1AHfUYPwmRaExTvwjsp4F/GOcqa974ehIubvCbxkS1R54aKpjsogfoANlWOT+zks6aKA2v6+mOB6+XqMzY= X-Received: by 2002:ab0:130a:: with SMTP id g10-v6mr3048312uae.175.1527729277578; Wed, 30 May 2018 18:14:37 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:6206:0:0:0:0:0 with HTTP; Wed, 30 May 2018 18:14:07 -0700 (PDT) In-Reply-To: <7e6ff012-5108-aa30-2909-6a638b2cdbb1@sentex.net> References: <7e6ff012-5108-aa30-2909-6a638b2cdbb1@sentex.net> From: Aaron Date: Wed, 30 May 2018 18:14:07 -0700 Message-ID: Subject: Re: ZFS mirror keeps going offline/removed To: Mike Tancsa Cc: FreeBSD Questions Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 May 2018 01:14:41 -0000 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 at scbus0 target 0 lun 0 (ada0,pass0) at scbus1 target 0 lun 0 (ada1,pass1) at scbus2 target 0 lun 0 (pass2,ada2) at scbus3 target 0 lun 0 (ada3,pass3) at scbus4 target 0 lun 0 (ada4,pass4) at scbus6 target 0 lun 0 (ada5,pass5) at scbus7 target 0 lun 0 (ada6,pass6) at scbus8 target 0 lun 0 (ada7,pass7) at scbus9 target 0 lun 0 (pass8,ada8) 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 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: 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 >