Opened 6 years ago

Last modified 2 years ago

#1070 new defect

SSDSC2KB019T7R scsi error badly formed scsi parameters

Reported by: Mark Heily Owned by:
Priority: minor Milestone: undecided
Component: all Version: 6.2
Keywords: linux scsi Cc:

Description

Dell-branded Intel drive with model # SSDSC2KB019T7R is not in the database, and generates an error message in smartctl 6.2:

Read SMART Selective Self-test Log failed: scsi error badly formed scsi parameters

I compiled smartmontools from source and tried again, but got the same error.

See attached for the full output of "smartctl -r ioctl,2 -a /dev/sda"

Attachments (3)

smartctl6_2_with_ioctl.txt (35.1 KB ) - added by Mark Heily 6 years ago.
smartctl_output.txt (89.8 KB ) - added by mad1ost 6 years ago.
ct500-smart.log (50.3 KB ) - added by Linas Vepstas 4 years ago.
crucial-ct500-smart-v6.6.log

Download all attachments as: .zip

Change History (11)

by Mark Heily, 6 years ago

Attachment: smartctl6_2_with_ioctl.txt added

comment:1 by Christian Franke, 6 years ago

Keywords: linux scsi added
Milestone: undecided

Please note that drive database and the SCSI error are unrelated. Adding the device to database won't fix the SCSI error.

Possibly related: tickets #819 and #826.

Please check kernel log for original ATA error code (see ticket #826).

comment:2 by Christian Franke, 6 years ago

Please also provide output of smartctl -r ioctl,2 -x /dev/sda to check whether 48-bit ATA commands (e.g. READ LOG EXT) work. Also include possible kernel messages which report the original ATA error and status code: ...translated ATA stat/err 0x../.. to SCSI SK/ASC/ASCQ 0x5/21/04.

comment:3 by mad1ost, 6 years ago

I have the same problem but with disk SSDSC2KB480G7R. The output of smartctl -r ioctl,2 -x /dev/sda in attachment.

Last edited 6 years ago by mad1ost (previous) (diff)

by mad1ost, 6 years ago

Attachment: smartctl_output.txt added

comment:4 by Christian Franke, 6 years ago

Please also provide kernel messages related to the error (see ticket #826).

comment:5 by mad1ost, 6 years ago

Unfortunately there are no any error messages in dmesg. Should I use a more verbose mode?

by Linas Vepstas, 4 years ago

Attachment: ct500-smart.log added

crucial-ct500-smart-v6.6.log

comment:6 by Linas Vepstas, 4 years ago

My apologies if I'm piling on inappropriately ... have a brand new Crucial MX500 SSD drive, sata-attached. Device Model: CT500MX500SSD1 The smartctl -a looks reasonable, except for:

Read SMART Error Log failed: scsi error badly formed scsi parameters
Read SMART Self-test Log failed: scsi error badly formed scsi parameters
Read SMART Selective Self-test Log failed: scsi error badly formed scsi parameters

This is with smartmon version 6.6 ... no obvious kernel dmesg errors... attaching output of
smartctl -r ioctl,2 -x /dev/sdb ... which ... does show the correct log info: (wow!)

SMART Extended Comprehensive Error Log Version: 1 (1 sectors)
No Errors Logged
SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%         0         -
# 2  Conveyance offline  Completed without error       00%         0         -

Above looks correct, since I just plugged in the brand new disk (thus zero lifetime hours), and then ran the conveyance and the short tests...

Simply running smartctl -x /dev/sdb declutters the display slightly, and suggestively reveals the likely problem:

=== START OF INFORMATION SECTION ===
... the usual stuff...
Read SCT Status failed: scsi error badly formed scsi parameters
Wt Cache Reorder: Unknown (SCT Feature Control command failed)
=== START OF READ SMART DATA SECTION ===
... the usual stuff...
SMART Extended Comprehensive Error Log Version: 1 (1 sectors)
No Errors Logged

SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%         0         -
# 2  Conveyance offline  Completed without error       00%         0         -

Read SMART Selective Self-test Log failed: scsi error badly formed scsi parameters

Read SCT Status failed: scsi error badly formed scsi parameters

SCT Error Recovery Control command not supported

Oh, that's weird ... so I started to just plain use the disk, i.e. gdisk, copy data onto it, etc. and now the log is .. sort of working ... it shows the below ... so that is unexpected but pleasant surprise...

Read SMART Error Log failed: scsi error badly formed scsi parameters

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  Conveyance offline  Completed without error       00%         0         -

Read SMART Selective Self-test Log failed: scsi error badly formed scsi parameters

... or not ... half an hour later, the self-test log has disappeared, again. (but still visible with smartctl -x) I conclude that I have in my possession brand-new faulty hardware with some kind of intermittency bug ...

Last edited 4 years ago by Christian Franke (previous) (diff)

comment:7 by petera703, 2 years ago

Still getting the same issue in Jan 2023...

Device Model:     Samsung SSD 870 EVO 1TB
Device is:        In smartctl database 7.3/5319

Getting the error trying to do a short test:

[root@sysrescue ~]# smartctl -t short /dev/sdb
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-5.15.83-1-lts] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

Read SMART Data failed: scsi error badly formed scsi parameters

And the error is reported repeatedly in the --all output:

[root@sysrescue ~]# smartctl --all /dev/sdb
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-5.15.83-1-lts] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Samsung based SSDs
Device Model:     Samsung SSD 870 EVO 1TB
Serial Number:    S626NF0R233316P
LU WWN Device Id: 5 002538 f4121c384
Firmware Version: SVT01B6Q
User Capacity:    1,000,204,886,016 bytes [1.00 TB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      2.5 inches
TRIM Command:     Available, deterministic, zeroed
Device is:        In smartctl database 7.3/5319
ATA Version is:   ACS-4 T13/BSR INCITS 529 revision 5
SATA Version is:  SATA 3.3, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Fri Jan 20 16:41:04 2023 UTC
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

Read SMART Data failed: scsi error badly formed scsi parameters

=== START OF READ SMART DATA SECTION ===
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.

Read SMART Log Directory failed: scsi error badly formed scsi parameters

Read SMART Error Log failed: scsi error badly formed scsi parameters

Read SMART Self-test Log failed: scsi error badly formed scsi parameters

Selective Self-tests/Logging not supported

This is a SATA SSD so not sure why it's talking about SCSI anyway?
Hope the additional info helps someone investigate and resolve this eventually.

comment:8 by petera703, 2 years ago

Another snippet of info that may help investigation: I just tried the SMART test on the same bad disk via Disks in Linux Mint, and here the error is reported as:

Error starting SMART self-test

sk_disk_open:Input/output error (udisks-error-quark,0)

Note: See TracTickets for help on using tickets.