Opened 5 years ago

Closed 5 years ago

#1285 closed defect (invalid)

Smartctl on Sandforce OCZ-VERTEX3 appears to decode xselftest log badly

Reported by: Christopher Head Owned by:
Priority: major Milestone:
Component: smartctl Version:
Keywords: ata Cc:

Description

Here’s some output that doesn’t look right:

# smartctl -l xselftest /dev/sdb
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-4.19.86-gentoo] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Self-test routine in progress 10%      9479         -
# 2  Extended offline    Self-test routine in progress 10%      9479         -
# 3  Extended offline    Self-test routine in progress 10%      9479         -
# 4  Extended offline    Self-test routine in progress 10%      9479         -
# 5  Extended offline    Self-test routine in progress 10%      9479         -
# 6  Extended offline    Self-test routine in progress 20%      9479         -
# 7  Extended offline    Self-test routine in progress 20%      9479         -
# 8  Extended offline    Self-test routine in progress 20%      9479         -
# 9  Extended offline    Self-test routine in progress 20%      9479         -
#10  Extended offline    Self-test routine in progress 20%      9479         -
#11  Extended offline    Self-test routine in progress 20%      9479         -
#12  Extended offline    Self-test routine in progress 20%      9479         -
#13  Extended offline    Self-test routine in progress 20%      9479         -
#14  Extended offline    Self-test routine in progress 20%      9479         -
#15  Extended offline    Self-test routine in progress 20%      9479         -
#16  Extended offline    Self-test routine in progress 20%      9479         -
#17  Extended offline    Self-test routine in progress 20%      9479         -
#18  Extended offline    Self-test routine in progress 30%      9478         -
#19  Extended offline    Self-test routine in progress 10%      9479         -

It appears to be showing the same test 19 times (except for 18, curiously), and none of them claim to have finished. I definitely didn’t start 18 tests in the same hour! This was also a long time ago; the test isn’t running right now (in fact my power on hours are now at 9493), yet it says they’re all in progress, too.

Change History (4)

comment:1 by Christian Franke, 5 years ago

Keywords: ata added
Milestone: undecided

Bogus self-tests and self-test logs appear on various SSDs.

Please provide output of smartctl -r ioctl,2 -l xselftest ... for this device.

comment:2 by Christopher Head, 5 years ago

smartctl 7.0 2018-12-30 r4883 [x86_64-linux-4.19.86-gentoo] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

sdb -> /sys/class/scsi_host/host2/proc_name: "ahci"
>>>> do_scsi_cmnd_io: sg_io_ver=3
 [inquiry: 12 00 00 00 24 00 ]
  scsi_status=0x0, sg_transport_status=0x0, sg_driver_status=0x0
  sg_info=0x0  sg_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     4f 43 5a 2d 56 45 52 54  45 58 33 20 20 20 20 20
 20     32 2e 32 32
>>>> do_scsi_cmnd_io: sg_io_ver=3
 [ata pass-through(16): 85 08 0e 00 00 00 01 00 00 00 00 00 00 00 ec 00 ]
  scsi_status=0x0, sg_transport_status=0x0, sg_driver_status=0x0
  sg_info=0x0  sg_duration=11 milliseconds  resid=0
  Incoming data, len=512 [only first 256 bytes shown]:
 00     5a 0c ff 3f 37 c8 10 00  00 00 00 00 3f 00 00 00
 10     00 00 00 00 43 4f 2d 5a  38 36 42 56 56 46 35 50
 20     4f 4a 30 52 34 58 39 4a  00 00 00 00 04 00 2e 32
 30     32 32 20 20 20 20 43 4f  2d 5a 45 56 54 52 58 45
 40     20 33 20 20 20 20 20 20  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 40 00 2f 00 40 00 02  00 02 07 00 ff 3f 10 00
 70     3f 00 10 fc fb 00 10 01  b0 4b f9 0d 00 00 07 00
 80     03 00 78 00 78 00 78 00  78 00 00 42 00 00 00 00
 90     00 00 00 00 00 00 1f 00  0e c7 04 00 4c 00 44 00
 a0     fc 01 10 01 6b 74 69 74  63 61 29 74 49 b4 63 61
 b0     7f 40 01 00 00 00 fe 00  fe ff 00 00 00 00 00 00
 c0     00 00 00 00 00 00 00 00  b0 4b f9 0d 00 00 00 00
 d0     00 00 08 00 00 40 00 00  83 5e 7e a9 7a 0b 2a d1
 e0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 1a 40
 f0     18 40 00 00 00 00 00 00  00 00 00 00 00 00 00 00
/dev/sdb [SAT]: Device open changed type from 'scsi' to 'sat'

REPORT-IOCTL: Device=/dev/sdb Command=IDENTIFY DEVICE
 Input:   FR=...., SC=0x01, LL=...., LM=...., LH=...., DEV=...., CMD=0xec IN
>>>> do_scsi_cmnd_io: sg_io_ver=3
 [ata pass-through(16): 85 08 0e 00 00 00 01 00 00 00 00 00 00 00 ec 00 ]
  scsi_status=0x0, sg_transport_status=0x0, sg_driver_status=0x0
  sg_info=0x0  sg_duration=10 milliseconds  resid=0
  Incoming data, len=512 [only first 256 bytes shown]:
 00     5a 0c ff 3f 37 c8 10 00  00 00 00 00 3f 00 00 00
 10     00 00 00 00 43 4f 2d 5a  38 36 42 56 56 46 35 50
 20     4f 4a 30 52 34 58 39 4a  00 00 00 00 04 00 2e 32
 30     32 32 20 20 20 20 43 4f  2d 5a 45 56 54 52 58 45
 40     20 33 20 20 20 20 20 20  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 40 00 2f 00 40 00 02  00 02 07 00 ff 3f 10 00
 70     3f 00 10 fc fb 00 10 01  b0 4b f9 0d 00 00 07 00
 80     03 00 78 00 78 00 78 00  78 00 00 42 00 00 00 00
 90     00 00 00 00 00 00 1f 00  0e c7 04 00 4c 00 44 00
 a0     fc 01 10 01 6b 74 69 74  63 61 29 74 49 b4 63 61
 b0     7f 40 01 00 00 00 fe 00  fe ff 00 00 00 00 00 00
 c0     00 00 00 00 00 00 00 00  b0 4b f9 0d 00 00 00 00
 d0     00 00 08 00 00 40 00 00  83 5e 7e a9 7a 0b 2a d1
 e0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 1a 40
 f0     18 40 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 [Duration: 0.010s]
REPORT-IOCTL: Device=/dev/sdb Command=IDENTIFY DEVICE returned 0

===== [IDENTIFY DEVICE] DATA START (BASE-16) =====
000-015: 5a 0c ff 3f 37 c8 10 00 00 00 00 00 3f 00 00 00 |Z..?7.......?...|
016-031: 00 00 00 00 43 4f 2d 5a 38 36 42 56 56 46 35 50 |....CO-Z86BVVF5P|
032-047: 4f 4a 30 52 34 58 39 4a 00 00 00 00 04 00 2e 32 |OJ0R4X9J.......2|
048-063: 32 32 20 20 20 20 43 4f 2d 5a 45 56 54 52 58 45 |22    CO-ZEVTRXE|
064-079: 20 33 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | 3              |
080-095: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 10 80 |              ..|
096-111: 00 40 00 2f 00 40 00 02 00 02 07 00 ff 3f 10 00 |.@./.@.......?..|
112-127: 3f 00 10 fc fb 00 10 01 b0 4b f9 0d 00 00 07 00 |?........K......|
128-143: 03 00 78 00 78 00 78 00 78 00 00 42 00 00 00 00 |..x.x.x.x..B....|
144-159: 00 00 00 00 00 00 1f 00 0e c7 04 00 4c 00 44 00 |............L.D.|
160-175: fc 01 10 01 6b 74 69 74 63 61 29 74 49 b4 63 61 |....ktitca)tI.ca|
176-191: 7f 40 01 00 00 00 fe 00 fe ff 00 00 00 00 00 00 |.@..............|
192-207: 00 00 00 00 00 00 00 00 b0 4b f9 0d 00 00 00 00 |.........K......|
208-223: 00 00 08 00 00 40 00 00 83 5e 7e a9 7a 0b 2a d1 |.....@...^~.z.*.|
224-239: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1a 40 |...............@|
240-255: 18 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |.@..............|
256-271: 09 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 21 00 00 00 |............!...|
416-431: 00 00 00 40 00 00 00 00 00 01 00 00 00 00 00 00 |...@............|
432-447: 00 00 01 00 00 00 00 00 00 00 00 00 3f 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 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 63 |...............c|
===== [IDENTIFY DEVICE] DATA END (512 Bytes) =====


REPORT-IOCTL: Device=/dev/sdb Command=SMART READ ATTRIBUTE VALUES
 Input:   FR=0xd0, SC=0x01, LL=...., LM=0x4f, LH=0xc2, DEV=...., CMD=0xb0 IN
>>>> do_scsi_cmnd_io: sg_io_ver=3
 [ata pass-through(16): 85 08 0e 00 d0 00 01 00 00 00 4f 00 c2 00 b0 00 ]
  scsi_status=0x0, sg_transport_status=0x0, sg_driver_status=0x0
  sg_info=0x0  sg_duration=8 milliseconds  resid=0
  Incoming data, len=512 [only first 256 bytes shown]:
 00     0a 00 01 0f 00 78 78 00  00 00 00 00 00 00 05 33
 10     00 64 64 00 00 00 00 00  00 00 09 32 00 00 00 18
 20     25 00 00 ae 0c 09 0c 32  00 63 63 25 05 00 00 00
 30     00 00 ab 32 00 00 00 00  00 00 00 00 00 00 ac 32
 40     00 00 00 00 00 00 00 00  00 00 ae 30 00 00 00 1e
 50     00 00 00 00 00 00 b1 00  00 00 00 00 00 00 00 00
 60     00 00 b5 32 00 00 00 00  00 00 00 00 00 00 b6 32
 70     00 00 00 00 00 00 00 00  00 00 bb 32 00 64 64 00
 80     00 00 00 00 00 00 c2 22  00 1e 1e 1e 00 1e 00 1e
 90     00 00 c3 1c 00 64 64 00  00 00 00 00 00 00 c4 33
 a0     00 64 64 00 00 00 00 00  00 00 c9 1c 00 64 64 00
 b0     00 00 00 00 00 00 cc 1c  00 64 64 00 00 00 00 00
 c0     00 00 e6 13 00 64 64 64  00 00 00 00 00 00 e7 13
 d0     00 64 64 00 00 00 00 00  00 00 e9 00 00 00 00 0a
 e0     06 00 00 00 00 00 ea 32  00 00 00 d1 04 00 00 00
 f0     00 00 f1 32 00 00 00 d1  04 00 00 00 00 00 f2 32
 [Duration: 0.008s]
REPORT-IOCTL: Device=/dev/sdb Command=SMART READ ATTRIBUTE VALUES returned 0

===== [SMART READ ATTRIBUTE VALUES] DATA START (BASE-16) =====
000-015: 0a 00 01 0f 00 78 78 00 00 00 00 00 00 00 05 33 |.....xx........3|
016-031: 00 64 64 00 00 00 00 00 00 00 09 32 00 00 00 18 |.dd........2....|
032-047: 25 00 00 ae 0c 09 0c 32 00 63 63 25 05 00 00 00 |%......2.cc%....|
048-063: 00 00 ab 32 00 00 00 00 00 00 00 00 00 00 ac 32 |...2...........2|
064-079: 00 00 00 00 00 00 00 00 00 00 ae 30 00 00 00 1e |...........0....|
080-095: 00 00 00 00 00 00 b1 00 00 00 00 00 00 00 00 00 |................|
096-111: 00 00 b5 32 00 00 00 00 00 00 00 00 00 00 b6 32 |...2...........2|
112-127: 00 00 00 00 00 00 00 00 00 00 bb 32 00 64 64 00 |...........2.dd.|
128-143: 00 00 00 00 00 00 c2 22 00 1e 1e 1e 00 1e 00 1e |......."........|
144-159: 00 00 c3 1c 00 64 64 00 00 00 00 00 00 00 c4 33 |.....dd........3|
160-175: 00 64 64 00 00 00 00 00 00 00 c9 1c 00 64 64 00 |.dd..........dd.|
176-191: 00 00 00 00 00 00 cc 1c 00 64 64 00 00 00 00 00 |.........dd.....|
192-207: 00 00 e6 13 00 64 64 64 00 00 00 00 00 00 e7 13 |.....ddd........|
208-223: 00 64 64 00 00 00 00 00 00 00 e9 00 00 00 00 0a |.dd.............|
224-239: 06 00 00 00 00 00 ea 32 00 00 00 d1 04 00 00 00 |.......2........|
240-255: 00 00 f1 32 00 00 00 d1 04 00 00 00 00 00 f2 32 |...2...........2|
256-271: 00 00 00 96 08 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 7b |...............{|
368-383: 03 00 01 00 01 30 02 00 00 00 00 00 00 00 00 00 |.....0..........|
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 27 |...............'|
===== [SMART READ ATTRIBUTE VALUES] DATA END (512 Bytes) =====

=== START OF READ SMART DATA SECTION ===
>>>> do_scsi_cmnd_io: sg_io_ver=3
 [ata pass-through(16): 85 09 0e 00 00 00 01 00 00 00 00 00 00 00 2f 00 ]
  scsi_status=0x0, sg_transport_status=0x0, sg_driver_status=0x0
  sg_info=0x0  sg_duration=10 milliseconds  resid=0
  Incoming data, len=512 [only first 256 bytes shown]:
 00     01 00 00 00 00 00 00 00  00 00 00 00 00 00 01 00
 10     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 20     01 00 01 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
>>>> do_scsi_cmnd_io: sg_io_ver=3
 [ata pass-through(16): 85 09 0e 00 00 00 01 00 07 00 00 00 00 00 2f 00 ]
  scsi_status=0x0, sg_transport_status=0x0, sg_driver_status=0x0
  sg_info=0x0  sg_duration=10 milliseconds  resid=0
  Incoming data, len=512 [only first 256 bytes shown]:
 00     01 00 10 00 02 f2 07 25  00 00 00 00 00 00 00 00
 10     87 05 00 00 00 00 00 00  00 00 00 00 00 00 02 f2
 20     07 25 00 00 00 00 00 00  00 00 87 05 00 00 00 00
 30     00 00 00 00 00 00 00 00  02 f2 07 25 00 00 00 00
 40     00 00 00 00 88 05 00 00  00 00 00 00 00 00 00 00
 50     00 00 02 f2 07 25 00 00  00 00 00 00 00 00 89 05
 60     00 00 00 00 00 00 00 00  00 00 00 00 02 f2 07 25
 70     00 00 00 00 00 00 00 00  89 05 00 00 00 00 00 00
 80     00 00 00 00 00 00 02 f2  07 25 00 00 00 00 00 00
 90     00 00 8a 05 00 00 00 00  00 00 00 00 00 00 00 00
 a0     02 f2 07 25 00 00 00 00  00 00 00 00 8b 05 00 00
 b0     00 00 00 00 00 00 00 00  00 00 02 f2 07 25 00 00
 c0     00 00 00 00 00 00 8e 05  00 00 00 00 00 00 00 00
 d0     00 00 00 00 02 f2 07 25  00 00 00 00 00 00 00 00
 e0     91 05 00 00 00 00 00 00  00 00 00 00 00 00 02 f2
 f0     07 25 00 00 00 00 00 00  00 00 92 05 00 00 00 00
SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Self-test routine in progress 10%      9479         -
# 2  Extended offline    Self-test routine in progress 10%      9479         -
# 3  Extended offline    Self-test routine in progress 10%      9479         -
# 4  Extended offline    Self-test routine in progress 10%      9479         -
# 5  Extended offline    Self-test routine in progress 10%      9479         -
# 6  Extended offline    Self-test routine in progress 20%      9479         -
# 7  Extended offline    Self-test routine in progress 20%      9479         -
# 8  Extended offline    Self-test routine in progress 20%      9479         -
# 9  Extended offline    Self-test routine in progress 20%      9479         -
#10  Extended offline    Self-test routine in progress 20%      9479         -
#11  Extended offline    Self-test routine in progress 20%      9479         -
#12  Extended offline    Self-test routine in progress 20%      9479         -
#13  Extended offline    Self-test routine in progress 20%      9479         -
#14  Extended offline    Self-test routine in progress 20%      9479         -
#15  Extended offline    Self-test routine in progress 20%      9479         -
#16  Extended offline    Self-test routine in progress 20%      9479         -
#17  Extended offline    Self-test routine in progress 20%      9479         -
#18  Extended offline    Self-test routine in progress 30%      9478         -
#19  Extended offline    Self-test routine in progress 10%      9479         -

in reply to:  2 comment:3 by Christian Franke, 5 years ago

...
 [ata pass-through(16): 85 09 0e 00 00 00 01 00 07 00 00 00 00 00 2f 00 ]
  scsi_status=0x0, sg_transport_status=0x0, sg_driver_status=0x0
  sg_info=0x0  sg_duration=10 milliseconds  resid=0
  Incoming data, len=512 [only first 256 bytes shown]:
 00     01 00 10 00 02 f2 07 25  00 00 00 00 00 00 00 00
                          ^^-^^ ---- Lifetime: 0x2507 = 9479
                        ^----------- Remaining: 20%
                       ^------------ Status: in progress
                    ^^-------------- Type: extended offline
                   [<--- Index 1: entry #16 ...           
              ^^-^^----------------- Index (1-based) of entry #1: 16
 10     87 05 00 00 00 00 00 00  00 00 00 00 00 00 02 f2
        ^^-^^------ Vendor specific: not printed
        ...                 end of entry #16 --->][<--- Index 2: entry #15 ...
 20     07 25 00 00 00 00 00 00  00 00 87 05 00 00 00 00
 30     00 00 00 00 00 00 00 00  02 f2 07 25 00 00 00 00
        ...                --->] [<--- Index 3: entry #14 ...
 40     00 00 00 00 88 05 00 00  00 00 00 00 00 00 00 00
 50     00 00 02 f2 07 25 00 00  00 00 00 00 00 00 89 05
        --->][<--- Index 4: entry #13 ... same ... etc ...
...

Related output:

...
#13  Extended offline    Self-test routine in progress 20%      9479         -
#14  Extended offline    Self-test routine in progress 20%      9479         -
#15  Extended offline    Self-test routine in progress 20%      9479         -
#16  Extended offline    Self-test routine in progress 20%      9479         -
...

Conclusion: smartctl prints the log as returned by the drive.

comment:4 by Christian Franke, 5 years ago

Milestone: undecided
Resolution: invalid
Status: newclosed

The drive returns garbage in the SMART Extended self-test log. Smartctl prints the information as returned by the drive. This is not a smartctl bug. Needs to fixed in drive firmware.

Note: See TracTickets for help on using tickets.