Opened 2 years ago

Last modified 10 months ago

#826 new defect

Old OCZ-Vertex2 drive: badly formed scsi parameters

Reported by: Yves Lavoie Owned by:
Priority: minor Milestone: undecided
Component: all Version: 6.5
Keywords: linux scsi Cc:

Description

This used to be supported, 5.39.1 reported it correctly. See https://hardforum.com/threads/ssd-smart-data-ocz-vertex-2.1825300/, for example.

Version 6.6 now reports Read SMART Data failed: scsi error badly formed scsi parameters. For example:

REPORT-IOCTL: Device=/dev/sda 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=0x2, host_status=0x0, driver_status=0x8
  info=0x1  duration=24 milliseconds  resid=0
  status=2: sense_key=5 asc=21 ascq=4
sat_device::ata_pass_through: scsi error: badly formed scsi parameters
 [Duration: 0,020s]
REPORT-IOCTL: Device=/dev/sda Command=SMART READ ATTRIBUTE VALUES returned -1 errno=5 [scsi error badly formed scsi parameters]
Read SMART Data failed: scsi error badly formed scsi parameters

This is the actual booted device on a Linux 4.10.1 amd64 server.

Change History (13)

comment:1 Changed 2 years ago by Christian Franke

Milestone: undecided

Version 6.6 is not released yet. Please (always!) provide the very first line of smartctl output as it provides important info for diagnostics: SVN revision number, platform, and (in some cases) distribution.

Did smartctl 5.39.1 run on same system (same kernel!) actually provide the correct info?

Possibly related, same SCSI(SAT) error is reported: ticket #819.

Similar questions arise:
Did smartctl -x work with other drives behind same (which?) controller+driver?
Are any -d TYPE options used?

For further diagnostics, please provide output of:
smartctl -r ioctl,2 -i -H -A ...
of smartctl 5.39.1 and the 6.6 SVN snapshot used above.

comment:2 Changed 2 years ago by Christian Franke

Keywords: linux scsi added
Summary: Old OCZ-Vertex2 driveOld OCZ-Vertex2 drive: badly formed scsi parameters

comment:3 Changed 2 years ago by Yves Lavoie

Current info for OCZ-Vertex2:

smartctl -i /dev/sda
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.10.1] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     SandForce[290900]
Serial Number:    1
LU WWN Device Id: 5 00232d 000000001
Firmware Version: 1.28
User Capacity:    115 033 153 536 bytes [115 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ATA8-ACS T13/1699-D revision 6
SATA Version is:  SATA 2.6, 3.0 Gb/s
Local Time is:    Sun Apr  2 10:51:21 2017 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

smartctl -A /dev/sda
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.10.1] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

Read SMART Data failed: scsi error badly formed scsi parameters

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

Other drives read correctly but they are much younger. For example:

 smartctl -i /dev/sdb
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.10.1] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Black
Device Model:     WDC WD1003FZEX-00K3CA0
Serial Number:    WD-WCC6Y2SP8KAK
LU WWN Device Id: 5 0014ee 262cb4c0f
Firmware Version: 01.01A01
User Capacity:    1 000 204 886 016 bytes [1,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-3 T13/2161-D revision 3b
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Sun Apr  2 10:50:56 2017 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

 smartctl -A /dev/sdb
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.10.1] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
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       -       0
  3 Spin_Up_Time            0x0027   188   173   021    Pre-fail  Always       -       1600
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       50
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   200   200   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   091   091   000    Old_age   Always       -       7227
 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       -       50
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       41
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       72
194 Temperature_Celsius     0x0022   117   088   000    Old_age   Always       -       26
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   200   200   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   200   200   000    Old_age   Offline      -       0

Detailed output with version 6.6

smartctl -r ioctl,2 -i -H -A /dev/sda
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.10.1] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

 [inquiry: 12 00 00 00 24 00 ]
  scsi_status=0x0, host_status=0x0, driver_status=0x0
  info=0x0  duration=0 milliseconds  resid=0
  Incoming data, len=36:
 00     00 00 05 02 5b 00 00 02  41 54 41 20 20 20 20 20
 10     53 61 6e 64 46 6f 72 63  65 5b 32 39 30 39 30 30
 20     31 2e 32 38
 [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=4 milliseconds  resid=0
  Incoming data, len=512 [only first 256 bytes shown]:
 00     40 00 ff 3f 37 c8 10 00  00 00 00 00 3f 00 00 00
 10     00 00 00 00 20 31 20 20  20 20 20 20 20 20 20 20
 20     20 20 20 20 20 20 20 20  00 00 00 00 04 00 2e 31
 30     38 32 20 20 20 20 61 53  64 6e 6f 46 63 72 5b 65
 40     39 32 39 30 30 30 20 5d  20 20 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 00 00 2f 00 40 00 02  00 02 07 00 ff 3f 10 00
 70     3f 00 10 fc fb 00 01 91  50 41 64 0d 00 00 07 00
 80     03 00 78 00 78 00 78 00  78 00 00 40 00 00 00 00
 90     00 00 00 00 00 00 1f 00  06 07 00 00 4c 00 44 00
 a0     fc 01 28 00 6b 74 01 75  63 61 69 70 01 b4 63 61
 b0     7f 40 c8 00 c8 00 fe 00  00 00 00 00 00 00 00 00
 c0     00 00 00 00 00 00 00 00  50 41 64 0d 00 00 00 00
 d0     00 00 01 00 00 40 00 00  02 50 d0 32 00 00 01 00
 e0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 14 40
 f0     14 40 00 00 00 00 00 00  00 00 00 00 00 00 00 00
/dev/sda [SAT]: Device open changed type from 'scsi' to 'sat'

REPORT-IOCTL: Device=/dev/sda 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=12 milliseconds  resid=0
  Incoming data, len=512 [only first 256 bytes shown]:
 00     40 00 ff 3f 37 c8 10 00  00 00 00 00 3f 00 00 00
 10     00 00 00 00 20 31 20 20  20 20 20 20 20 20 20 20
 20     20 20 20 20 20 20 20 20  00 00 00 00 04 00 2e 31
 30     38 32 20 20 20 20 61 53  64 6e 6f 46 63 72 5b 65
 40     39 32 39 30 30 30 20 5d  20 20 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 00 00 2f 00 40 00 02  00 02 07 00 ff 3f 10 00
 70     3f 00 10 fc fb 00 01 91  50 41 64 0d 00 00 07 00
 80     03 00 78 00 78 00 78 00  78 00 00 40 00 00 00 00
 90     00 00 00 00 00 00 1f 00  06 07 00 00 4c 00 44 00
 a0     fc 01 28 00 6b 74 01 75  63 61 69 70 01 b4 63 61
 b0     7f 40 c8 00 c8 00 fe 00  00 00 00 00 00 00 00 00
 c0     00 00 00 00 00 00 00 00  50 41 64 0d 00 00 00 00
 d0     00 00 01 00 00 40 00 00  02 50 d0 32 00 00 01 00
 e0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 14 40
 f0     14 40 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 [Duration: 0.010s]
REPORT-IOCTL: Device=/dev/sda Command=IDENTIFY DEVICE returned 0

===== [IDENTIFY DEVICE] DATA START (BASE-16) =====
000-015: 40 00 ff 3f 37 c8 10 00 00 00 00 00 3f 00 00 00 |@..?7.......?...|
016-031: 00 00 00 00 20 31 20 20 20 20 20 20 20 20 20 20 |.... 1          |
032-047: 20 20 20 20 20 20 20 20 00 00 00 00 04 00 2e 31 |        .......1|
048-063: 38 32 20 20 20 20 61 53 64 6e 6f 46 63 72 5b 65 |82    aSdnoFcr[e|
064-079: 39 32 39 30 30 30 20 5d 20 20 20 20 20 20 20 20 |929000 ]        |
080-095: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 10 80 |              ..|
096-111: 00 00 00 2f 00 40 00 02 00 02 07 00 ff 3f 10 00 |.../.@.......?..|
112-127: 3f 00 10 fc fb 00 01 91 50 41 64 0d 00 00 07 00 |?.......PAd.....|
128-143: 03 00 78 00 78 00 78 00 78 00 00 40 00 00 00 00 |..x.x.x.x..@....|
144-159: 00 00 00 00 00 00 1f 00 06 07 00 00 4c 00 44 00 |............L.D.|
160-175: fc 01 28 00 6b 74 01 75 63 61 69 70 01 b4 63 61 |..(.kt.ucaip..ca|
176-191: 7f 40 c8 00 c8 00 fe 00 00 00 00 00 00 00 00 00 |.@..............|
192-207: 00 00 00 00 00 00 00 00 50 41 64 0d 00 00 00 00 |........PAd.....|
208-223: 00 00 01 00 00 40 00 00 02 50 d0 32 00 00 01 00 |.....@...P.2....|
224-239: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 14 40 |...............@|
240-255: 14 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |.@..............|
256-271: 01 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 01 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 00 00 00 |............=...|
416-431: 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 |...@............|
432-447: 00 00 01 00 00 00 00 00 00 00 00 00 10 10 ff ff |................|
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 a5 9d |................|
===== [IDENTIFY DEVICE] DATA END (512 Bytes) =====

=== START OF INFORMATION SECTION ===
Device Model:     SandForce[290900]
Serial Number:    1
LU WWN Device Id: 5 00232d 000000001
Firmware Version: 1.28
User Capacity:    115 033 153 536 bytes [115 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ATA8-ACS T13/1699-D revision 6
SATA Version is:  SATA 2.6, 3.0 Gb/s
Local Time is:    Sun Apr  2 10:52:24 2017 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled


REPORT-IOCTL: Device=/dev/sda 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=0x2, host_status=0x0, driver_status=0x8
  info=0x1  duration=20 milliseconds  resid=0
  Incoming data, len=512 [only first 256 bytes shown]:
 00     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 10     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 20     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 30     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 40     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 50     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 60     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 70     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 80     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 90     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 a0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 b0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 c0     00 00 00 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
  >>> Sense buffer, len=18:
 00     70 00 05 00 00 00 00 0a  04 51 00 01 21 04 00 00
 10     00 00
  status=2: sense_key=5 asc=21 ascq=4
sat_device::ata_pass_through: scsi error: badly formed scsi parameters
 [Duration: 0,021s]
REPORT-IOCTL: Device=/dev/sda Command=SMART READ ATTRIBUTE VALUES returned -1 errno=5 [scsi error badly formed scsi parameters]

===== [SMART READ ATTRIBUTE VALUES] DATA START (BASE-16) =====
000-015: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
016-031: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
032-047: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
048-063: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
064-079: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
080-095: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
096-111: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
112-127: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
128-143: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
144-159: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
160-175: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
176-191: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
192-207: 00 00 00 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 00 |................|
===== [SMART READ ATTRIBUTE VALUES] DATA END (512 Bytes) =====

Read SMART Data failed: scsi error badly formed scsi parameters

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

REPORT-IOCTL: Device=/dev/sda 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=0x2, host_status=0x0, driver_status=0x8
  info=0x1  duration=28 milliseconds  resid=0
  >>> Sense buffer, len=18:
 00     70 00 05 00 00 00 00 0a  04 51 00 00 21 04 00 00
 10     00 00
  status=2: sense_key=5 asc=21 ascq=4
sat_device::ata_pass_through: scsi error: badly formed scsi parameters
 [Duration: 0,027s]
REPORT-IOCTL: Device=/dev/sda Command=SMART STATUS CHECK returned -1 errno=5 [scsi error badly formed scsi parameters]
SMART Status command failed: scsi error badly formed scsi parameters
SMART overall-health self-assessment test result: UNKNOWN!
SMART Status, Attributes and Thresholds cannot be read.

Version 5.39 doesn't compile anymore on current kernels, it is dated 2012.

comment:4 Changed 2 years ago by Christian Franke

Device Model:     SandForce[290900]
Serial Number:    1

Just curious: Is this an early engineering sample?

Symptoms are the same as reported in ticket #819 for a newer SSD on Linux 4.4.53: SMART SAT commands fail, Linux kernel returns bogus sense data.

comment:5 Changed 2 years ago by Yves Lavoie

I don't know why it doesn't report OCZ-Vertex2, which is what is printed on both sides of the drive.
I was able to compile 5.43, which show the same problem as 6.6, so it was brought between 5.39 and 5.43

comment:6 in reply to:  5 Changed 2 years ago by Christian Franke

Thanks for testing,.

I was able to compile 5.43, which show the same problem as 6.6, so it was brought between 5.39 and 5.43

Probably not. Smartmontools 5.43 was released June 2012. If there is a related bug in smartmontools since then, I'm sure that it would have been reported since then. The fact that two similar reports appear now suggest that there is a problem in the SAT ATA-PASS-THROUGH code of recent Linux kernels.

comment:7 in reply to:  description Changed 2 years ago by Christian Franke

This used to be supported, 5.39.1 reported it correctly.

Smartmontools 5.39 and 5.39.1 could be compiled after applying the fix r3178 which simply adds #include <stddef.h> to top of os_linux.cpp (tested on Debian Jessie). Smartmontools 5.40 already included this fix.

If the SCSI error persists then, this is likely a kernel bug (or a lack of backward compatibility). If not, we should be able to track down the problem by analyzing code changes between 5.39.1 and 5.4x.

comment:8 Changed 2 years ago by Yves Lavoie

It does indeed compile and required also a fix in knowndrives.cpp to allow my weird model.
"OCZ[ -]VERTEX.*|SandForce\\[290900\\]" did the trick.

But then it wasn't able to enable smart on this device:

/smartctl --smart=on -d sat -a -T permissive /dev/sda
smartctl 5.39.1 2010-01-28 r3054 [x86_64-unknown-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family:     OCZ Vertex SSD
Device Model:     SandForce[290900]
Serial Number:    1
Firmware Version: 1.28
User Capacity:    115 033 153 536 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   8
ATA Standard is:  ATA-8-ACS revision 6
Local Time is:    Mon Apr  3 10:28:47 2017 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
SMART Disabled. Use option -s with argument 'on' to enable it.

comment:9 Changed 2 years ago by Christian Franke

The result is as expected. Smartctl up to 5.39.1 use a more strict SMART support check inherited from the early ATA-3 days: It refuses to continue if the SMART RETURN STATUS command does not work at all.

If the command is repeated with -r ioctl,2 set, the debug output will likely report a SCSI error with sense_key=5 asc=21 ascq=4 as seen in previous debug output.

comment:10 Changed 2 years ago by Yves Lavoie

Confirmed.

comment:11 Changed 2 years ago by Christian Franke

Source of Linux Kernel 4.10.* function ata_to_sense_error() suggests that these SCSI sense codes are returned as a fallback if the ATA command failed with an error code not matched by the sense_table.

Please provide the kernel log messages which occur when smartctl fails. There should be at least one message which shows the original ATA error and status codes:

... ata.: translated ATA stat/err 0x../.. to SCSI SK/ASC/ASCQ 0x5/21/04

Please also include related messages which may show details of the failed ATA command.

comment:12 Changed 2 years ago by Christian Franke

Please also provide info about SATA controller and Linux distribution used.

comment:13 Changed 10 months ago by Christian Franke

Possibly related: tickets #819 and #1070.

Note: See TracTickets for help on using tickets.