自宅サーバ。ハードディスク壊れかけ?
ハードディスクが壊れたエラー?がstartdから/var/log/messagesに書き込まれていた。
なーんとなくいろんなログから使用時間が長いからもう壊れるんじゃね?早く交換したほうがいいんじゃね?って言われてる気がする。800日ほど試用しているらしい(smartctlより。TODO:あとでログ載せる)
Oct 11 23:34:18 **** smartd[5742]: Device: /dev/hdb, 3 Offline uncorrectable sectors Oct 12 00:04:18 **** smartd[5742]: Device: /dev/hdb, FAILED SMART self-check. BACK UP DATA NOW! Oct 12 00:04:18 **** smartd[5742]: Device: /dev/hdb, 3 Offline uncorrectable sectors Oct 12 00:34:18 **** ama smartd[5742]: Device: /dev/hdb, FAILED SMART self-check. BACK UP DATA NOW! Oct 12 00:34:18 **** smartd[5742]: Device: /dev/hdb, 3 Offline uncorrectable sectors Oct 12 01:04:19 **** smartd[5742]: Device: /dev/hdb, FAILED SMART self-check. BACK UP DATA NOW! Oct 12 01:04:19 **** smartd[5742]: Device: /dev/hdb, 3 Offline uncorrectable sectors Oct 12 01:34:18 **** ama smartd[5742]: Device: /dev/hdb, FAILED SMART self-check. BACK UP DATA NOW! Oct 12 01:34:18 **** smartd[5742]: Device: /dev/hdb, 3 Offline uncorrectable sectors Oct 12 02:04:18 **** smartd[5742]: Device: /dev/hdb, FAILED SMART self-check. BACK UP DATA NOW!
んで、チェックをしてみる。
# smartctl -t long /dev/hdb smartctl version 5.36 [i686-redhat-linux-gnu] Copyright (C) 2002-6 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION === Sending command: "Execute SMART Extended self-test routine immediately in off-line mode". Drive command "Execute SMART Extended self-test routine immediately in off-line mode" successful. Testing has begun. Please wait 21 minutes for test to complete. Test will complete after Sun Oct 12 02:39:27 2008 Use smartctl -X to abort test.
さてさて。
smartctl version 5.36 [i686-redhat-linux-gnu] Copyright (C) 2002-6 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION === Model Family: Maxtor Fireball 3 family Device Model: Maxtor 2F040J0 Serial Number: F13F4L1E Firmware Version: VAM51JJ0 User Capacity: 41,110,142,976 bytes Device is: In smartctl database [for details use: -P show] ATA Version is: 7 ATA Standard is: ATA/ATAPI-7 T13 1532D revision 0 Local Time is: Sun Oct 12 02:59:38 2008 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: FAILED! Drive failure expected in less than 24 hours. SAVE ALL DATA. See vendor-specific Attribute list for failed Attributes. General SMART Values: Offline data collection status: (0x82) Offline data collection activity was completed without error. Auto Offline Data Collection: Enabled. Self-test execution status: ( 64) The previous self-test completed having a test element that failed and the test element that failed is not known. Total time to complete Offline data collection: (1261) seconds. Offline data collection capabilities: (0x5b) SMART execute Offline immediate. Auto Offline data collection on/off support. Suspend Offline collection upon new command. Offline surface scan supported. Self-test supported. No 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. No General Purpose Logging support. Short self-test routine recommended polling time: ( 2) minutes. Extended self-test routine recommended polling time: ( 21) minutes. 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 3 Spin_Up_Time 0x0027 235 234 063 Pre-fail Always - 6322 4 Start_Stop_Count 0x0032 253 253 000 Old_age Always - 1386 5 Reallocated_Sector_Ct 0x0033 001 001 063 Pre-fail Always FAILING_NOW 1276 6 Read_Channel_Margin 0x0001 253 253 100 Pre-fail Offline - 0 7 Seek_Error_Rate 0x000a 253 252 000 Old_age Always - 0 8 Seek_Time_Performance 0x0027 249 230 187 Pre-fail Always - 54687 9 Power_On_Minutes 0x0032 189 189 000 Old_age Always - 591h+04m 10 Spin_Retry_Count 0x002b 253 252 157 Pre-fail Always - 0 11 Calibration_Retry_Count 0x002b 253 252 223 Pre-fail Always - 0 12 Power_Cycle_Count 0x0032 247 247 000 Old_age Always - 2589 192 Power-Off_Retract_Count 0x0032 252 252 000 Old_age Always - 1127 193 Load_Cycle_Count 0x0032 253 253 000 Old_age Always - 2400 194 Temperature_Celsius 0x0032 253 253 000 Old_age Always - 35 195 Hardware_ECC_Recovered 0x000a 253 251 000 Old_age Always - 3451 196 Reallocated_Event_Count 0x0008 253 253 000 Old_age Offline - 0 197 Current_Pending_Sector 0x0008 253 251 000 Old_age Offline - 0 198 Offline_Uncorrectable 0x0008 253 250 000 Old_age Offline - 0 199 UDMA_CRC_Error_Count 0x0008 001 001 000 Old_age Offline - 27066 200 Multi_Zone_Error_Rate 0x000a 253 252 000 Old_age Always - 0 201 Soft_Read_Error_Rate 0x000a 253 252 000 Old_age Always - 0 202 TA_Increase_Count 0x000a 253 105 000 Old_age Always - 0 203 Run_Out_Cancel 0x000b 253 252 180 Pre-fail Always - 0 204 Shock_Count_Write_Opern 0x000a 253 252 000 Old_age Always - 0 205 Shock_Rate_Write_Opern 0x000a 253 252 000 Old_age Always - 0 207 Spin_High_Current 0x002a 253 252 000 Old_age Always - 0 208 Spin_Buzz 0x002a 253 252 000 Old_age Always - 0 209 Offline_Seek_Performnce 0x0024 160 159 000 Old_age Offline - 0 99 Unknown_Attribute 0x0004 253 253 000 Old_age Offline - 0 100 Unknown_Attribute 0x0004 253 253 000 Old_age Offline - 0 101 Unknown_Attribute 0x0004 253 253 000 Old_age Offline - 0 SMART Error Log Version: 1 ATA Error Count: 44665 (device log contains only the most recent five errors) CR = Command Register [HEX] FR = Features Register [HEX] SC = Sector Count Register [HEX] SN = Sector Number Register [HEX] CL = Cylinder Low Register [HEX] CH = Cylinder High Register [HEX] DH = Device/Head Register [HEX] DC = Device Command Register [HEX] ER = Error register [HEX] ST = Status register [HEX] Powered_Up_Time is measured from power on, and printed as DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes, SS=sec, and sss=millisec. It "wraps" after 49.710 days. Error 44665 occurred at disk power-on lifetime: 20621 hours (859 days + 5 hours) When the command that caused the error occurred, the device was in an unknown state. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 40 51 02 41 00 00 f0 Error: UNC 2 sectors at LBA = 0x00000041 = 65 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- c8 00 02 41 00 00 f0 08 04:36:58.144 READ DMA e7 00 00 00 00 00 f0 08 04:36:58.144 FLUSH CACHE c8 00 01 3f 00 00 f0 08 04:36:58.144 READ DMA c8 00 01 0f 00 00 f0 08 04:36:58.144 READ DMA c8 00 01 0e 00 00 f0 08 04:36:58.144 READ DMA Error 44664 occurred at disk power-on lifetime: 20621 hours (859 days + 5 hours) When the command that caused the error occurred, the device was in an unknown state. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 40 51 07 40 00 00 f0 Error: UNC 7 sectors at LBA = 0x00000040 = 64 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- c8 00 07 40 00 00 f0 08 04:36:55.920 READ DMA c8 00 08 3f 00 00 f0 08 04:36:54.160 READ DMA c8 00 07 40 00 00 f0 08 04:35:46.896 READ DMA c8 00 08 3f 00 00 f0 08 04:35:45.152 READ DMA c8 00 01 7f 00 00 f0 08 04:35:45.136 READ DMA Error 44663 occurred at disk power-on lifetime: 20621 hours (859 days + 5 hours) When the command that caused the error occurred, the device was in an unknown state. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 40 51 07 3f 00 00 f0 Error: UNC 7 sectors at LBA = 0x0000003f = 63 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- c8 00 08 3f 00 00 f0 08 04:36:54.160 READ DMA c8 00 07 40 00 00 f0 08 04:35:46.896 READ DMA c8 00 08 3f 00 00 f0 08 04:35:45.152 READ DMA c8 00 01 7f 00 00 f0 08 04:35:45.136 READ DMA c8 00 01 41 00 00 f0 08 04:35:43.408 READ DMA Error 44662 occurred at disk power-on lifetime: 20621 hours (859 days + 5 hours) When the command that caused the error occurred, the device was in an unknown state. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 40 51 07 40 00 00 f0 Error: UNC 7 sectors at LBA = 0x00000040 = 64 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- c8 00 07 40 00 00 f0 08 04:35:46.896 READ DMA c8 00 08 3f 00 00 f0 08 04:35:45.152 READ DMA c8 00 01 7f 00 00 f0 08 04:35:45.136 READ DMA c8 00 01 41 00 00 f0 08 04:35:43.408 READ DMA c8 00 01 41 00 00 f0 08 04:35:41.664 READ DMA Error 44661 occurred at disk power-on lifetime: 20621 hours (859 days + 5 hours) When the command that caused the error occurred, the device was in an unknown state. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 40 51 07 3f 00 00 f0 Error: UNC 7 sectors at LBA = 0x0000003f = 63 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- c8 00 08 3f 00 00 f0 08 04:35:45.152 READ DMA c8 00 01 7f 00 00 f0 08 04:35:45.136 READ DMA c8 00 01 41 00 00 f0 08 04:35:43.408 READ DMA c8 00 01 41 00 00 f0 08 04:35:41.664 READ DMA c8 00 01 41 00 00 f0 08 04:35:39.936 READ DMA SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Extended offline Completed: unknown failure 00% 21033 - # 2 Short offline Completed: unknown failure 00% 21033 - 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.