Smartmontools
Jump to navigation
Jump to search
The server recently froze and then refused to boot after several attempts. At one point, it froze during LILO at the point of "LIL". I was convinced that I had a hard disk failure and bought a new drive. When I tried to boot after getting back from the store, the server came up.
Now I'm afraid to reboot since I'm sure it will fail at the next power cycle. My goal is to get as much of a backup as I possibly can without a reboot, and maybe even without unmounting the filesystem.
I've got snapshots of the important things and now it is time to get serious.
I installed smartmontools and got this report from the suspect drive:
root@weasel:/var/run# smartctl -a -d ata /dev/sda smartctl version 5.37 [x86_64-unknown-linux-gnu] Copyright (C) 2002-6 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION === Model Family: Seagate Barracuda 7200.8 family Device Model: ST3250823AS Serial Number: 4ND06C1Q Firmware Version: 3.03 User Capacity: 250,059,350,016 bytes Device is: In smartctl database [for details use: -P show] ATA Version is: 7 ATA Standard is: Exact ATA specification draft version not indicated Local Time is: Tue May 20 13:11:39 2008 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: (0x82) Offline data collection activity was completed without error. Auto Offline Data Collection: Enabled. 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: ( 430) 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. General Purpose Logging supported. Short self-test routine recommended polling time: ( 1) minutes. Extended self-test routine recommended polling time: ( 84) minutes. 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 050 046 006 Pre-fail Always - 67789707 3 Spin_Up_Time 0x0003 098 098 000 Pre-fail Always - 0 4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 31 5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0 7 Seek_Error_Rate 0x000f 078 060 030 Pre-fail Always - 78856544 9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 871 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0 12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 39 194 Temperature_Celsius 0x0022 039 047 000 Old_age Always - 39 (Lifetime Min/Max 0/20) 195 Hardware_ECC_Recovered 0x001a 050 046 000 Old_age Always - 67789707 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 199 000 Old_age Always - 1 200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age Offline - 0 202 TA_Increase_Count 0x0032 100 253 000 Old_age Always - 0 SMART Error Log Version: 1 ATA Error Count: 1 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 1 occurred at disk power-on lifetime: 380 hours (15 days + 20 hours) When the command that caused the error occurred, the device was active or idle. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 84 51 00 6d a1 d7 e0 Error: ICRC, ABRT at LBA = 0x00d7a16d = 14131565 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- 25 00 08 66 a1 d7 e0 00 04:38:40.754 READ DMA EXT 25 00 10 76 ff bb e0 00 04:38:40.753 READ DMA EXT 25 00 08 ce ee bb e0 00 04:38:40.749 READ DMA EXT 35 00 08 be 19 08 e0 00 04:38:40.749 WRITE DMA EXT 35 00 68 56 19 08 e0 00 04:38:40.744 WRITE DMA EXT 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.
That compares with this report for a newer disk in the same system:
root@weasel:/var/run# smartctl -a -d ata /dev/sdb smartctl version 5.37 [x86_64-unknown-linux-gnu] Copyright (C) 2002-6 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION === Model Family: Seagate Barracuda 7200.8 family Device Model: ST3250823AS Serial Number: 4ND05VJS Firmware Version: 3.03 User Capacity: 250,059,350,016 bytes Device is: In smartctl database [for details use: -P show] ATA Version is: 7 ATA Standard is: Exact ATA specification draft version not indicated Local Time is: Tue May 20 13:17:34 2008 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: (0x82) Offline data collection activity was completed without error. Auto Offline Data Collection: Enabled. 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: ( 430) 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. General Purpose Logging supported. Short self-test routine recommended polling time: ( 1) minutes. Extended self-test routine recommended polling time: ( 84) minutes. 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 048 046 006 Pre-fail Always - 121096821 3 Spin_Up_Time 0x0003 099 098 000 Pre-fail Always - 0 4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 41 5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0 7 Seek_Error_Rate 0x000f 085 060 030 Pre-fail Always - 349296371 9 Power_On_Hours 0x0032 076 076 000 Old_age Always - 21740 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0 12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 44 194 Temperature_Celsius 0x0022 040 051 000 Old_age Always - 40 (Lifetime Min/Max 0/20) 195 Hardware_ECC_Recovered 0x001a 048 046 000 Old_age Always - 121096821 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 153 000 Old_age Always - 71 200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age Offline - 0 202 TA_Increase_Count 0x0032 100 253 000 Old_age Always - 0 SMART Error Log Version: 1 ATA Error Count: 67 (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 67 occurred at disk power-on lifetime: 21647 hours (901 days + 23 hours) When the command that caused the error occurred, the device was active or idle. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 84 51 00 00 00 00 e0 Error: ICRC, ABRT at LBA = 0x00000000 = 0 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- 25 00 01 00 00 00 e0 00 00:07:03.246 READ DMA EXT 91 00 3f 00 00 00 ef 00 00:07:02.967 INITIALIZE DEVICE PARAMETERS [OBS-6] c6 00 10 00 00 00 e0 00 00:07:02.670 SET MULTIPLE MODE 91 00 3f 00 00 00 ef 00 00:04:06.868 INITIALIZE DEVICE PARAMETERS [OBS-6] 10 00 00 00 00 00 e0 00 00:04:06.868 RECALIBRATE [OBS-4] Error 66 occurred at disk power-on lifetime: 14169 hours (590 days + 9 hours) When the command that caused the error occurred, the device was active or idle. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 84 51 00 00 00 00 e0 Error: ICRC, ABRT at LBA = 0x00000000 = 0 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- 25 00 01 00 00 00 e0 00 00:00:11.079 READ DMA EXT 91 00 3f 00 00 00 ef 00 00:00:11.078 INITIALIZE DEVICE PARAMETERS [OBS-6] c6 00 10 00 00 00 e0 00 00:00:10.816 SET MULTIPLE MODE 91 00 3f 00 00 00 ef 00 00:00:08.392 INITIALIZE DEVICE PARAMETERS [OBS-6] 10 00 00 00 00 00 e0 00 1d+13:16:57.727 RECALIBRATE [OBS-4] Error 65 occurred at disk power-on lifetime: 14166 hours (590 days + 6 hours) When the command that caused the error occurred, the device was active or idle. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 84 51 00 ce 01 10 e0 Error: ICRC, ABRT at LBA = 0x001001ce = 1049038 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- 25 00 08 c7 01 10 e0 00 16:27:15.928 READ DMA EXT 25 00 08 c7 01 10 e0 00 16:27:15.928 READ DMA EXT 35 00 08 07 02 98 e0 00 16:27:15.922 WRITE DMA EXT 35 00 08 cf 01 98 e0 00 16:27:15.918 WRITE DMA EXT 35 00 08 47 ff ae e0 00 16:27:15.918 WRITE DMA EXT Error 64 occurred at disk power-on lifetime: 14166 hours (590 days + 6 hours) When the command that caused the error occurred, the device was active or idle. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 84 51 00 ce 01 10 e0 Error: ICRC, ABRT at LBA = 0x001001ce = 1049038 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- 25 00 08 c7 01 10 e0 00 16:27:15.928 READ DMA EXT 35 00 08 07 02 98 e0 00 16:27:15.928 WRITE DMA EXT 35 00 08 cf 01 98 e0 00 16:27:15.922 WRITE DMA EXT 35 00 08 47 ff ae e0 00 16:27:15.918 WRITE DMA EXT 35 00 08 f7 f1 ae e0 00 16:27:15.918 WRITE DMA EXT Error 63 occurred at disk power-on lifetime: 13553 hours (564 days + 17 hours) When the command that caused the error occurred, the device was active or idle. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 84 51 00 26 0b ac e0 Error: ICRC, ABRT at LBA = 0x00ac0b26 = 11275046 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- 25 00 08 1f 0b ac e0 00 02:35:40.734 READ DMA EXT 25 00 08 1f 0b ac e0 00 02:35:40.285 READ DMA EXT 25 00 08 1f 0b ac e0 00 02:35:39.835 READ DMA EXT 25 00 08 1f 0b ac e0 00 02:35:39.395 READ DMA EXT 25 00 08 1f 0b ac e0 00 02:35:38.942 READ DMA EXT 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.