Re: Disk problems with Slackware 14.1 and WD EIDE drives

Bob McConnell <[email protected]> Mon, 02 Feb 2015 13:41:23 -0500
Newsgroups gmane.linux.slackware
Message-ID <[email protected]>
Jostein Berntsen wrote:
> On 02.02.15,12:30, Bob McConnell wrote:
>> I have two computers with WD IDE drives running Slackware 14.1. Both of them
>> have been giving me the same set of error messages which don't make any
>> sense to me. Can anyone tell me what is going on with them?
>>
>> Dec 28 10:53:59 workdesk kernel: [91574.369664] ata1.00: configured for
>> UDMA/100
>> Dec 28 10:53:59 workdesk kernel: [91574.369690] sd 2:0:0:0: [sda] Unhandled
>> sense code
>> Dec 28 10:53:59 workdesk kernel: [91574.369694] sd 2:0:0:0: [sda]
>> Dec 28 10:53:59 workdesk kernel: [91574.369700] sd 2:0:0:0: [sda]
>> Dec 28 10:53:59 workdesk kernel: [91574.369709]         72 03 11 04 00 00 00
>> 0c 00 0a 80 00 00 00 00 00
>> Dec 28 10:53:59 workdesk kernel: [91574.369720]         00 11 3c bf
>> Dec 28 10:53:59 workdesk kernel: [91574.369725] sd 2:0:0:0: [sda]
>> Dec 28 10:53:59 workdesk kernel: [91574.369731] sd 2:0:0:0: [sda] CDB:
>> Dec 28 10:53:59 workdesk kernel: [91574.369767] ata1: EH complete
>>
>>
>> The disk specs are
>>
>> Model Family:     Western Digital Caviar Blue EIDE
>> Device Model:     WDC WD3200AAJB-00WGA0
>>
>> The most troublesome is running the huge kernel on a Pentium 4. (Dell
>> Optiplex GX240). Most of the resulting file system errors show up in sda2,
>> which is the /usr partition. Several applications are no longer functional,
>> so it appears to be losing active sectors to this error.
>>
>> My biggest question is why is there an unhandled code? Shouldn't this kernel
>> know how to handle all of the status codes the disk can generate?
>>
> 
> Can you run "smartctl -a /dev/sda" and see if you get some more useful
> information then?
> 
> Jostein


I get a lot of data, but I haven't been able to interpret it well enough 
to know if it is useful. Where can I got an explanation of what all of 
this means?

Bob McConnell
N2SPP

---------------------------
root@workdesk:~# smartctl --all /dev/sda
smartctl 5.43 2012-06-30 r3573 [i686-linux-3.10.17] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Caviar Blue EIDE
Device Model:     WDC WD3200AAJB-00WGA0
Serial Number:    WD-WCARW3382751
LU WWN Device Id: 5 0014ee 1ab511c25
Firmware Version: 00.02C01
User Capacity:    320,072,933,376 bytes [320 GB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   8
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Sun Dec 28 11:10:11 2014 EST
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:      (   0)	The previous self-test routine 
completed
					without error or no self-test has ever
					been run.
Total time to complete Offline
data collection: 		( 8760) seconds.
Offline data collection
capabilities: 			 (0x7b) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					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: 	 ( 104) minutes.
Conveyance self-test routine
recommended polling time: 	 (   5) minutes.
SCT capabilities: 	       (0x203f)	SCT Status supported.
					SCT Error Recovery Control 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     0x000f   199   199   051    Pre-fail 
Always       -       6323
   3 Spin_Up_Time            0x0003   158   158   021    Pre-fail 
Always       -       5075
   4 Start_Stop_Count        0x0032   100   100   000    Old_age 
Always       -       116
   5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail 
Always       -       0
   7 Seek_Error_Rate         0x000e   200   200   051    Old_age 
Always       -       0
   9 Power_On_Hours          0x0032   056   056   000    Old_age 
Always       -       32553
  10 Spin_Retry_Count        0x0012   100   100   051    Old_age 
Always       -       0
  11 Calibration_Retry_Count 0x0012   100   100   051    Old_age 
Always       -       0
  12 Power_Cycle_Count       0x0032   100   100   000    Old_age 
Always       -       114
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always 
       -       65
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always 
       -       116
194 Temperature_Celsius     0x0022   104   089   000    Old_age   Always 
       -       43
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always 
       -       0
197 Current_Pending_Sector  0x0012   199   199   000    Old_age   Always 
       -       65
198 Offline_Uncorrectable   0x0010   199   199   000    Old_age 
Offline      -       60
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always 
       -       0
200 Multi_Zone_Error_Rate   0x0008   200   200   051    Old_age 
Offline      -       0

SMART Error Log Version: 1
ATA Error Count: 6321 (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 6321 occurred at disk power-on lifetime: 32552 hours (1356 days + 
8 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
   -- -- -- -- -- -- --
   40 51 01 bf 3c 11 e0  Error: UNC 1 sectors at LBA = 0x00113cbf = 1129663

   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 b8 3c 11 00 08   1d+01:42:31.003  READ DMA
   ea 00 00 4f 41 a5 01 08   1d+01:42:30.985  FLUSH CACHE EXT
   ca 00 08 48 41 a5 01 08   1d+01:42:30.985  WRITE DMA
   ea 00 00 57 9a 63 10 08   1d+01:42:30.948  FLUSH CACHE EXT
   35 00 08 50 9a 63 10 08   1d+01:42:30.947  WRITE DMA EXT

Error 6320 occurred at disk power-on lifetime: 32552 hours (1356 days + 
8 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
   -- -- -- -- -- -- --
   40 51 01 bf 3c 11 e0  Error: UNC 1 sectors at LBA = 0x00113cbf = 1129663

   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 b8 3c 11 00 08   1d+01:42:27.772  READ DMA
   ca 00 08 98 2c 88 01 08   1d+01:42:25.876  WRITE DMA
   ca 00 08 38 1e 85 01 08   1d+01:42:25.876  WRITE DMA
   ca 00 08 e0 3d 84 01 08   1d+01:42:25.876  WRITE DMA
   ca 00 08 a0 22 84 01 08   1d+01:42:25.876  WRITE DMA

Error 6319 occurred at disk power-on lifetime: 32552 hours (1356 days + 
8 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
   -- -- -- -- -- -- --
   40 51 01 bf 3c 11 e0  Error: UNC 1 sectors at LBA = 0x00113cbf = 1129663

   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 b8 3c 11 00 08   1d+01:40:07.743  READ DMA
   ea 00 00 17 3e a5 01 08   1d+01:40:07.734  FLUSH CACHE EXT
   ca 00 08 10 3e a5 01 08   1d+01:40:07.734  WRITE DMA
   ea 00 00 0f 3e a5 01 08   1d+01:40:07.717  FLUSH CACHE EXT
   ca 00 38 d8 3d a5 01 08   1d+01:40:07.716  WRITE DMA

Error 6318 occurred at disk power-on lifetime: 32552 hours (1356 days + 
8 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
   -- -- -- -- -- -- --
   40 51 01 bf 3c 11 e0  Error: UNC 1 sectors at LBA = 0x00113cbf = 1129663

   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 b8 3c 11 00 08   1d+01:40:04.525  READ DMA
   ea 00 00 d7 3d a5 01 08   1d+01:40:00.472  FLUSH CACHE EXT
   ca 00 08 d0 3d a5 01 08   1d+01:40:00.472  WRITE DMA
   ea 00 00 cf 3d a5 01 08   1d+01:40:00.453  FLUSH CACHE EXT
   ca 00 18 b8 3d a5 01 08   1d+01:40:00.453  WRITE DMA

Error 6317 occurred at disk power-on lifetime: 32552 hours (1356 days + 
8 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
   -- -- -- -- -- -- --
   40 51 01 bf 3c 11 e0  Error: UNC 1 sectors at LBA = 0x00113cbf = 1129663

   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 b8 3c 11 00 08   1d+01:28:37.239  READ DMA
   ca 00 08 28 30 a5 01 08   1d+01:28:37.239  WRITE DMA
   ea 00 00 9f 24 90 01 08   1d+01:28:37.208  FLUSH CACHE EXT
   ca 00 10 90 24 90 01 08   1d+01:28:37.208  WRITE DMA
   ca 00 50 d8 2f a5 01 08   1d+01:28:37.207  WRITE DMA

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       90%     31094 
      8654863

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.