Opened 9 years ago

Closed 9 years ago

#548 closed defect (fixed)

smartctl mistakenly reports error where none is...

Reported by: Dave Purdy Owned by: Christian Franke
Priority: minor Milestone: Release 6.5
Component: smartctl Version: 6.3
Keywords: Cc:

Description

The offending line/output is:
SMART Status command failed: scsi error medium or hardware error (serious)

I noticed this odd behavior when I upgraded from smartmontools from 5.41 to 6.4 (automatically triggered in Debian when diet-upgrading from Wheezy to Jessie).

I had several SATA drives (SSD and rotational) that I had tested when connected via SATA and they tested fine, in both 5.41 and in 6.4. When connected to a supported USB FA-GoFlex Desk device, it worked fine under 5.41. After upgrading to 6.4, I saw this erroneous output :

smartctl 6.4 2014-10-07 r4002 [armv5tel-linux-3.14.0-kirkwood-tld-1] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Red
Device Model:     WDC WD10EFRX-68FYTN0
Serial Number:    WD-WCC4J4YR09FP
LU WWN Device Id: 5 0014ee 2b64e6f60
Firmware Version: 82.00A82
User Capacity:    1,000,204,886,016 bytes [1.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: 1.5 Gb/s)
Local Time is:    Sat May  9 16:52:44 2015 CDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART Status command failed: scsi error medium or hardware error (serious)
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.

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: 		(13620) 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: 	 ( 155) minutes.
Conveyance self-test routine
recommended polling time: 	 (   5) minutes.
SCT capabilities: 	       (0x303d)	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     0x002f   100   253   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0027   100   253   021    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       3
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   100   253   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       0
 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       -       3
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       0
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       4
194 Temperature_Celsius     0x0022   114   114   000    Old_age   Always       -       29
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   100   253   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   253   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   100   253   000    Old_age   Offline      -       0

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  Short offline       Completed without error       00%         0         -
# 2  Short offline       Completed without error       00%         0         -
# 3  Short offline       Completed without error       00%         0         -
# 4  Short offline       Completed without error       00%         0         -
# 5  Short offline       Completed without error       00%         0         -

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.


Again, this has been replicated w/ known good drives. Downgrading to 5.41 mitigates the error.

Change History (8)

comment:1 by Christian Franke, 9 years ago

Milestone: Release 6.4undecided

Please attach output of

  smartctl -r ioctl,2 -i -H /dev/sdX

comment:2 by Dave Purdy, 9 years ago

Below is the output you requested. ( This is with a 2-day-old WDC Red NAS 1TB drive that I just received and installed. )

smartctl -r ioctl,2 -i -H /dev/sdb
smartctl 5.41 2011-06-09 r3365 [armv5tel-linux-3.14.0-kirkwood-tld-1] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

USB ID = 0x0bc2:0x5070 (0x157)

REPORT-IOCTL: Device=/dev/sdb Command=IDENTIFY DEVICE
 Input:   FR=...., SC=0x01, LL=...., LM=...., LH=...., DEV=...., CMD=0xec IN
 [ata pass-through(16): 85 08 0e 00 00 00 01 00 00 00 00 00 00 00 ec 00 ]
  scsi_status=0x0, host_status=0x0, driver_status=0x0
  info=0x0  duration=0 milliseconds  resid=0
  Incoming data, len=512 [only first 256 bytes shown]:
 00     7a 42 ff 3f 37 c8 10 00  00 00 00 00 3f 00 00 00                        
 10     00 00 00 00 20 20 20 20  57 20 2d 44 43 57 34 43                        
 20     34 4a 52 59 39 30 50 46  00 00 00 00 00 00 32 38                        
 30     30 2e 41 30 32 38 44 57  20 43 44 57 30 31 46 45                        
 40     58 52 36 2d 46 38 54 59  30 4e 20 20 20 20 20 20                        
 50     20 20 20 20 20 20 20 20  20 20 20 20 20 20 10 80                        
 60     00 40 00 2f 01 40 00 00  00 00 07 00 ff 3f 10 00                        
 70     3f 00 10 fc fb 00 00 01  ff ff ff 0f 00 00 07 01                        
 80     03 00 78 00 78 00 78 00  78 00 00 00 00 00 00 00                        
 90     00 00 00 00 00 00 1f 00  0e 9f 02 00 4c 00 40 00                        
 a0     fe 03 00 00 6b 74 61 7d  33 67 69 74 41 bc 23 67                        
 b0     7f 00 48 00 48 00 00 00  fe ff 00 00 00 00 08 00                        
 c0     00 00 00 00 a0 86 01 00  b0 6d 70 74 00 00 00 00                        
 d0     00 00 00 00 03 60 00 00  01 50 e2 4e 4e b6 60 6f                        
 e0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 1c 40                        
 f0     1c 40 00 00 00 00 00 00  00 00 00 00 00 00 00 00                        
  status=0x0
REPORT-IOCTL: Device=/dev/sdb Command=IDENTIFY DEVICE returned 0

===== [IDENTIFY DEVICE] DATA START (BASE-16) =====
000-015: 7a 42 ff 3f 37 c8 10 00 00 00 00 00 3f 00 00 00 |zB.?7.......?...|
016-031: 00 00 00 00 20 20 20 20 57 20 2d 44 43 57 34 43 |....    W -DCW4C|
032-047: 34 4a 52 59 39 30 50 46 00 00 00 00 00 00 32 38 |4JRY90PF......28|
048-063: 30 2e 41 30 32 38 44 57 20 43 44 57 30 31 46 45 |0.A028DW CDW01FE|
064-079: 58 52 36 2d 46 38 54 59 30 4e 20 20 20 20 20 20 |XR6-F8TY0N      |
080-095: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 10 80 |              ..|
096-111: 00 40 00 2f 01 40 00 00 00 00 07 00 ff 3f 10 00 |.@./.@.......?..|
112-127: 3f 00 10 fc fb 00 00 01 ff ff ff 0f 00 00 07 01 |?...............|
128-143: 03 00 78 00 78 00 78 00 78 00 00 00 00 00 00 00 |..x.x.x.x.......|
144-159: 00 00 00 00 00 00 1f 00 0e 9f 02 00 4c 00 40 00 |............L.@.|
160-175: fe 03 00 00 6b 74 61 7d 33 67 69 74 41 bc 23 67 |....kta}3gitA.#g|
176-191: 7f 00 48 00 48 00 00 00 fe ff 00 00 00 00 08 00 |..H.H...........|
192-207: 00 00 00 00 a0 86 01 00 b0 6d 70 74 00 00 00 00 |.........mpt....|
208-223: 00 00 00 00 03 60 00 00 01 50 e2 4e 4e b6 60 6f |.....`...P.NN.`o|
224-239: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1c 40 |...............@|
240-255: 1c 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |.@..............|
256-271: 21 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |!...............|
272-287: 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 |................|
288-303: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
304-319: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
320-335: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
336-351: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
352-367: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
368-383: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
384-399: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
400-415: 00 00 00 00 00 00 00 00 00 00 00 00 3d 30 00 00 |............=0..|
416-431: 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 |...@............|
432-447: 00 00 18 15 00 00 00 00 00 00 00 00 3e 10 00 00 |............>...|
448-463: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
464-479: 00 00 00 00 01 00 00 10 00 00 00 00 00 00 00 00 |................|
480-495: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
496-511: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a5 22 |..............."|
===== [IDENTIFY DEVICE] DATA END (512 Bytes) =====

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Red
Device Model:     WDC WD10EFRX-68FYTN0
Serial Number:    WD-WCC4J4YR09FP
LU WWN Device Id: 5 0014ee 2b64e6f60
Firmware Version: 82.00A82
User Capacity:    1,000,204,886,016 bytes [1.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   9
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Sun May 10 14:49:10 2015 CDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled


REPORT-IOCTL: Device=/dev/sdb Command=SMART READ ATTRIBUTE VALUES
 Input:   FR=0xd0, SC=0x01, LL=...., LM=0x4f, LH=0xc2, DEV=...., CMD=0xb0 IN
 [ata pass-through(16): 85 08 0e 00 d0 00 01 00 00 00 4f 00 c2 00 b0 00 ]
  scsi_status=0x0, host_status=0x0, driver_status=0x0
  info=0x0  duration=0 milliseconds  resid=0
  Incoming data, len=512 [only first 256 bytes shown]:
 00     10 00 01 2f 00 64 fd 00  00 00 00 00 00 00 03 27                        
 10     00 8a 89 fb 0f 00 00 00  00 00 04 32 00 64 64 29                        
 20     00 00 00 00 00 00 05 33  00 c8 c8 00 00 00 00 00                        
 30     00 00 07 2e 00 c8 c8 00  00 00 00 00 00 00 09 32                        
 40     00 64 64 16 00 00 00 00  00 00 0a 32 00 64 fd 00                        
 50     00 00 00 00 00 00 0b 32  00 64 fd 00 00 00 00 00                        
 60     00 00 0c 32 00 64 64 04  00 00 00 00 00 00 c0 32                        
 70     00 c8 c8 01 00 00 00 00  00 00 c1 32 00 c8 c8 55                        
 80     00 00 00 00 00 00 c2 22  00 75 71 1a 00 00 00 00                        
 90     00 00 c4 32 00 c8 c8 00  00 00 00 00 00 00 c5 32                        
 a0     00 c8 c8 00 00 00 00 00  00 00 c6 30 00 64 fd 00                        
 b0     00 00 00 00 00 00 c7 32  00 c8 c8 00 00 00 00 00                        
 c0     00 00 c8 08 00 64 fd 00  00 00 00 00 00 00 00 00                        
 d0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00                        
 e0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00                        
 f0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00                        
  status=0x0
REPORT-IOCTL: Device=/dev/sdb Command=SMART READ ATTRIBUTE VALUES returned 0

===== [SMART READ ATTRIBUTE VALUES] DATA START (BASE-16) =====
000-015: 10 00 01 2f 00 64 fd 00 00 00 00 00 00 00 03 27 |.../.d.........'|
016-031: 00 8a 89 fb 0f 00 00 00 00 00 04 32 00 64 64 29 |...........2.dd)|
032-047: 00 00 00 00 00 00 05 33 00 c8 c8 00 00 00 00 00 |.......3........|
048-063: 00 00 07 2e 00 c8 c8 00 00 00 00 00 00 00 09 32 |...............2|
064-079: 00 64 64 16 00 00 00 00 00 00 0a 32 00 64 fd 00 |.dd........2.d..|
080-095: 00 00 00 00 00 00 0b 32 00 64 fd 00 00 00 00 00 |.......2.d......|
096-111: 00 00 0c 32 00 64 64 04 00 00 00 00 00 00 c0 32 |...2.dd........2|
112-127: 00 c8 c8 01 00 00 00 00 00 00 c1 32 00 c8 c8 55 |...........2...U|
128-143: 00 00 00 00 00 00 c2 22 00 75 71 1a 00 00 00 00 |.......".uq.....|
144-159: 00 00 c4 32 00 c8 c8 00 00 00 00 00 00 00 c5 32 |...2...........2|
160-175: 00 c8 c8 00 00 00 00 00 00 00 c6 30 00 64 fd 00 |...........0.d..|
176-191: 00 00 00 00 00 00 c7 32 00 c8 c8 00 00 00 00 00 |.......2........|
192-207: 00 00 c8 08 00 64 fd 00 00 00 00 00 00 00 00 00 |.....d..........|
208-223: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
224-239: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
240-255: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
256-271: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
272-287: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
288-303: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
304-319: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
320-335: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
336-351: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
352-367: 00 00 00 00 00 00 00 00 00 00 00 00 34 35 01 7b |............45.{|
368-383: 03 00 01 00 02 9b 05 00 00 00 00 00 00 00 00 00 |................|
384-399: 00 00 01 02 00 00 00 00 00 00 00 00 00 00 00 00 |................|
400-415: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
416-431: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
432-447: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
448-463: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
464-479: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
480-495: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
496-511: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1b |................|
===== [SMART READ ATTRIBUTE VALUES] DATA END (512 Bytes) =====


REPORT-IOCTL: Device=/dev/sdb Command=SMART READ ATTRIBUTE THRESHOLDS
 Input:   FR=0xd1, SC=0x01, LL=0x01, LM=0x4f, LH=0xc2, DEV=...., CMD=0xb0 IN
 [ata pass-through(16): 85 08 0e 00 d1 00 01 00 01 00 4f 00 c2 00 b0 00 ]
  scsi_status=0x0, host_status=0x0, driver_status=0x0
  info=0x0  duration=0 milliseconds  resid=0
  Incoming data, len=512 [only first 256 bytes shown]:
 00     10 00 01 33 64 64 00 00  00 00 00 00 00 00 03 15                        
 10     00 00 00 00 00 00 00 00  00 00 04 00 00 00 00 00                        
 20     00 00 00 00 00 00 05 8c  00 00 00 00 00 00 00 00                        
 30     00 00 07 00 c8 c8 00 00  00 00 00 00 00 00 09 00                        
 40     00 00 00 00 00 00 00 00  00 00 0a 00 00 00 00 00                        
 50     00 00 00 00 00 00 0b 00  00 00 00 00 00 00 00 00                        
 60     00 00 0c 00 00 00 00 00  00 00 00 00 00 00 c0 00                        
 70     00 00 00 00 00 00 00 00  00 00 c1 00 00 00 00 00                        
 80     00 00 00 00 00 00 c2 00  00 00 00 00 00 00 00 00                        
 90     00 00 c4 00 00 00 00 00  00 00 00 00 00 00 c5 00                        
 a0     00 00 00 00 00 00 00 00  00 00 c6 00 00 00 00 00                        
 b0     00 00 00 00 00 00 c7 00  00 00 00 00 00 00 00 00                        
 c0     00 00 c8 00 00 00 00 00  00 00 00 00 00 00 00 00                        
 d0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00                        
 e0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00                        
 f0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00                        
  status=0x0
REPORT-IOCTL: Device=/dev/sdb Command=SMART READ ATTRIBUTE THRESHOLDS returned 0

===== [SMART READ ATTRIBUTE THRESHOLDS] DATA START (BASE-16) =====
000-015: 10 00 01 33 64 64 00 00 00 00 00 00 00 00 03 15 |...3dd..........|
016-031: 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 |................|
032-047: 00 00 00 00 00 00 05 8c 00 00 00 00 00 00 00 00 |................|
048-063: 00 00 07 00 c8 c8 00 00 00 00 00 00 00 00 09 00 |................|
064-079: 00 00 00 00 00 00 00 00 00 00 0a 00 00 00 00 00 |................|
080-095: 00 00 00 00 00 00 0b 00 00 00 00 00 00 00 00 00 |................|
096-111: 00 00 0c 00 00 00 00 00 00 00 00 00 00 00 c0 00 |................|
112-127: 00 00 00 00 00 00 00 00 00 00 c1 00 00 00 00 00 |................|
128-143: 00 00 00 00 00 00 c2 00 00 00 00 00 00 00 00 00 |................|
144-159: 00 00 c4 00 00 00 00 00 00 00 00 00 00 00 c5 00 |................|
160-175: 00 00 00 00 00 00 00 00 00 00 c6 00 00 00 00 00 |................|
176-191: 00 00 00 00 00 00 c7 00 00 00 00 00 00 00 00 00 |................|
192-207: 00 00 c8 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
208-223: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
224-239: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
240-255: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
256-271: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
272-287: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
288-303: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
304-319: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
320-335: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
336-351: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
352-367: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
368-383: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
384-399: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
400-415: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
416-431: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
432-447: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
448-463: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
464-479: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
480-495: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
496-511: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 65 |...............e|
===== [SMART READ ATTRIBUTE THRESHOLDS] DATA END (512 Bytes) =====

=== START OF READ SMART DATA SECTION ===

REPORT-IOCTL: Device=/dev/sdb Command=SMART STATUS CHECK
 Input:   FR=0xda, SC=...., LL=...., LM=0x4f, LH=0xc2, DEV=...., CMD=0xb0
 [ata pass-through(16): 85 06 2c 00 da 00 00 00 00 00 4f 00 c2 00 b0 00 ]
  scsi_status=0x0, host_status=0x7, driver_status=0x8
  info=0x1  duration=30 milliseconds  resid=0
  >>> Sense buffer, len=22:
 00     72 04 00 00 00 00 00 0e  09 0c 00 00 00 00 00 00                        
 10     00 4f 00 c2 00 50                                                       
  status=2: [desc] sense_key=4 asc=0 ascq=0
sat_device::ata_pass_through: scsi error: medium or hardware error (serious)
Values from ATA Return Descriptor are:
 00     09 0c 00 00 00 00 00 00  00 4f 00 c2 00 50                              
REPORT-IOCTL: Device=/dev/sdb Command=SMART STATUS CHECK returned -1 errno=5 [scsi error medium or hardware error (serious)]
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.


Version 0, edited 9 years ago by Dave Purdy (next)

comment:3 by Christian Franke, 9 years ago

Priority: majorminor

This USB bridge violates SAT standards. It actually reports an error in the sense data of the ATA PASS-THROUGH(16) SCSI command used to issue SMART RETURN STATUS ATA command:

  >>> Sense buffer, len=22:
 00     72 04!00 00 00 00 00 0e  09 0c 00 00 00 00 00 00                        
 10     00 4f 00 c2 00 50                                                       
  status=2: [desc] sense_key=4! asc=0 ascq=0

Sense key 4 means HARDWARE ERROR. SAT standards require sense key 1 (RECOVERED ERROR) for ATA PASS-THROUGH sense data returning ATA output registers (SMART RETURN STATUS result).

Therefore it is IMO correct that smartctl assumes that this SCSI command failed, prints a related error message, ignores the returned status info and does an attribute check instead (see Warning:...).

comment:4 by Dave Purdy, 9 years ago

Understood, as developers, you all made it clear that USB support could have some bumps, due to the "rich variety" of bridge devices.

Questions:
? Since smartmontools did function correctly with this USB bridge in version 5.4x (both not flagging "non-errors", and correctly detecting "bad or worrisome attributes"), do you think it is likely that you'll fix or revert whatever change took place between 5.4x and 6.3 ?

? Is there a flag that I could be utilizing to skip a certain SAT command (the one that triggers the error message? I still want to check the attributes, and would love to stick with the functionality that is there in the 5.4x versions. I've read the docs, searched here and there, but haven't seen any way to do that.

comment:5 by Christian Franke, 9 years ago

smartmontools now functions correctly because it both prints the error reported by the USB bridge firmware, and still checks the attributes for failures. :-)

Older versions ignored the SCSI error which resulted in bogus output with other devices. Therefore this fix will not be reverted.

There is no extra flag to skip this SAT command because this specific command is the only one requested if -H option is set.

Note that the only visible difference between old and new versions is that now these two additional lines are printed:

SMART Status command failed: scsi error medium or hardware error (serious)
...
Warning: This result is based on an Attribute check.

To better support such USB bridges with broken SAT layer, it possibly makes sense to heuristically ignore the sense key if a correct SAT ATA RETURN DESCRIPTOR is provided. This requires further investigation, therefore I leave this ticket open as 'undecided' for now.

comment:6 by Dave Purdy, 9 years ago

@ Chris : Thanks for clarifying that, I understand what you are saying. I'll set my server to hold my version/package at Debian's 5.41/r3365 for now.
:-)

comment:7 by Christian Franke, 9 years ago

Milestone: undecidedRelease 6.5
Owner: set to Christian Franke
Status: newaccepted

A similar problem was reported for an USB device (0x0d49:0x7310) behind Linux Kernel 2.6.32-573.1.1.el6 from CentOS 6.7, see smartmontools-support mailing list.

comment:8 by Christian Franke, 9 years ago

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.