久々にコンソールにHDDのエラーが。
(ada1:ahcich1:0:0:0): READ_FPDMA_QUEUED. ACB: 60 01 45 34 f3 40 49 00 00 00 00 00 (ada1:ahcich1:0:0:0): CAM status: ATA Status Error (ada1:ahcich1:0:0:0): ATA status: 41 (DRDY ERR), error: 40 (UNC ) (ada1:ahcich1:0:0:0): RES: 41 40 45 34 f3 40 49 00 00 00 00 (ada1:ahcich1:0:0:0): Error 5, Retries exhausted
smartctlみたら前エラーになったHDDかな。 そういえばミラー化したのでそのまま使っていた。
fsrv1# smartctl -a /dev/ada1 smartctl 7.1 2019-12-30 r5022 [FreeBSD 11.3-RELEASE-p9 amd64] (local build) Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Western Digital Green Device Model: WDC WD20EZRX-00D8PB0 Serial Number: WD-WMC4N0EASTST LU WWN Device Id: 5 0014ee 6afc1c7da Firmware Version: 80.00A80 User Capacity: 2,000,398,934,016 bytes [2.00 TB] Sector Sizes: 512 bytes logical, 4096 bytes physical Rotation Rate: 5400 rpm Device is: In smartctl database [for details use: -P show] ATA Version is: ACS-2 (minor revision not indicated) SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s) Local Time is: Sun Sep 27 13:00:49 2020 JST 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: (0x84) Offline data collection activity was suspended by an interrupting command from host. Auto Offline Data Collection: Enabled. Self-test execution status: ( 118) The previous self-test completed having the read element of the test failed. Total time to complete Offline 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: ( 314) minutes. Conveyance self-test routine recommended polling time: ( 5) minutes. SCT capabilities: (0x7035) SCT Status 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 - 638 3 Spin_Up_Time 0x0027 206 177 021 Pre-fail Always - 4691 4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 31 5 Reallocated_Sector_Ct 0x0033 183 183 140 Pre-fail Always - 504 7 Seek_Error_Rate 0x002e 200 197 000 Old_age Always - 29 9 Power_On_Hours 0x0032 033 033 000 Old_age Always - 49029 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 - 30 192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 16 193 Load_Cycle_Count 0x0032 001 001 000 Old_age Always - 5808553 194 Temperature_Celsius 0x0022 109 100 000 Old_age Always - 41 196 Reallocated_Event_Count 0x0032 193 193 000 Old_age Always - 7 197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 9 198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline - 6 199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0 200 Multi_Zone_Error_Rate 0x0008 200 198 000 Old_age Offline - 283 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: read failure 60% 49018 1240675391 # 2 Short offline Completed without error 00% 49016 - # 3 Extended offline Completed without error 00% 35774 - # 4 Short offline Completed without error 00% 35768 - # 5 Short offline Aborted by host 50% 35768 - # 6 Short offline Completed: read failure 90% 35768 1929616911 # 7 Short offline Completed: read failure 90% 35768 1929616912 # 8 Short offline Completed: read failure 90% 35768 1929614695 # 9 Short offline Completed: read failure 90% 35768 1929609983 #10 Short offline Completed: read failure 90% 35767 626870735 #11 Short offline Completed: read failure 90% 35767 626868107 #12 Short offline Completed: read failure 90% 35767 626868103 #13 Short offline Completed: read failure 90% 35767 626865486 #14 Short offline Completed: read failure 90% 35767 626865481 #15 Short offline Completed: read failure 90% 35767 626865480 #16 Short offline Completed: read failure 90% 35767 626865479 #17 Short offline Completed: read failure 90% 35767 626862854 #18 Short offline Completed: read failure 90% 35767 626862852 #19 Short offline Completed: read failure 90% 35767 626862848 #20 Short offline Completed: read failure 90% 35767 626862853 #21 Extended offline Completed: read failure 90% 35767 626862847 16 of 17 failed self-tests are outdated by newer successful extended offline self-test # 3 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.
ddコマンドで1240675398まで行ったらエラーがなくなった。
dd if=/dev/ada1 of=/dev/ada1 bs=512 count=1 iseek=1240675398 oseek=1240675398 conv=noerror,sync
とりあえず、もう一度selftestしておくか・・・