Opened 14 years ago

Closed 13 years ago

#155 closed defect (worksforme)

Error SMART Status command failed

Reported by: panticz4 Owned by: somebody
Priority: major Milestone:
Component: all Version: 5.40
Keywords: megaraid linux Cc:

Description

Hi, when i run "smartctl -x /dev/sda" i get this error from my Hitachi Deskstar 7K1000.C attached on LSI MegaRAID SAS 9240:

START OF READ SMART DATA SECTION

Error SMART Status command failed
Please get assistance from http://smartmontools.sourceforge.net/
Register values returned from SMART Status command are:

ERR=...., SC=...., LL=...., LM=...., LH=...., DEV=...., STS=....

SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.

Attachments (2)

Hitachi_HDS721010CLA332_smartctl_-x.log (10.0 KB ) - added by panticz4 14 years ago.
Hitachi_HDS721010CLA332_smartctl_-r_ioctl_2_-H.txt (15.4 KB ) - added by panticz4 14 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 by Christian Franke, 14 years ago

Keywords: megaraid linux added
Milestone: Release 5.41
Owner: changed from somebody to Christian Franke
Status: newaccepted

The SAT layer in the MegaRAID firmware does not support ATA return descriptor which is required for SMART STATUS command, see ticket #149.

The smartctl message is misleading but this should be fixed since r3262.

For further diagnostics please attach output of:

smartctl -d megaraid,N -r ioctl,2 -H /dev/sda

comment:2 by panticz4, 14 years ago

Hi, here the output from

"smartctl -d megaraid,0 -r ioctl,2 -H /dev/sda"
smartctl 5.41 2011-03-24 r3301 [x86_64-unknown-linux-gnu-2.6.35-24-server] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

Creating /dev/megaraid_sas_ioctl_node = 17

[inquiry: 12 00 00 00 24 00 ]

Smartctl open device: /dev/sda [megaraid_disk_00] failed: INQUIRY failed

and "smartctl -r ioctl,2 -H /dev/sda"
smartctl 5.41 2011-03-24 r3301 [x86_64-unknown-linux-gnu-2.6.35-24-server] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

[inquiry: 12 00 00 00 24 00 ]

scsi_status=0x0, host_status=0x0, driver_status=0x0
info=0x0 duration=380 milliseconds resid=0
Incoming data, len=36:

00 00 00 05 12 45 00 00 02 41 54 41 20 20 20 20 20
10 48 69 74 61 63 68 69 20 48 44 53 37 32 31 30 31
20 41 33 4d 41

status=0x0

[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=270 milliseconds resid=0
Incoming data, len=512 [only first 256 bytes shown]:

00 5a 04 ff 3f 37 c8 10 00 00 00 00 00 3f 00 00 00
10 00 00 00 00 20 20 20 20 20 20 50 4a 39 36 30 34
20 5a 48 5a 31 4d 57 46 41 03 00 5f ea 38 00 50 4a
30 4f 34 33 41 41 4d 69 48 61 74 68 63 20 69 44 48
40 37 53 31 32 31 30 43 30 41 4c 33 33 20 32 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 00 01 ff ff ff 0f 00 00 07 00
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 06 17 00 00 5e 00 44 00
a0 fc 01 29 00 6b 34 69 7d 73 47 69 34 41 bc 63 47
b0 7f 40 6c 00 00 00 00 00 fe ff 00 00 00 00 08 00
c0 ca 00 f9 00 10 27 00 00 b0 6d 70 74 00 00 00 00
d0 ca 00 00 00 00 00 87 5a 00 50 a3 cc dc 75 55 22
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

status=0x0

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=190 milliseconds resid=0
Incoming data, len=512 [only first 256 bytes shown]:

00 5a 04 ff 3f 37 c8 10 00 00 00 00 00 3f 00 00 00
10 00 00 00 00 20 20 20 20 20 20 50 4a 39 36 30 34
20 5a 48 5a 31 4d 57 46 41 03 00 5f ea 38 00 50 4a
30 4f 34 33 41 41 4d 69 48 61 74 68 63 20 69 44 48
40 37 53 31 32 31 30 43 30 41 4c 33 33 20 32 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 00 01 ff ff ff 0f 00 00 07 00
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 06 17 00 00 5e 00 44 00
a0 fc 01 29 00 6b 34 69 7d 73 47 69 34 41 bc 63 47
b0 7f 40 6c 00 00 00 00 00 fe ff 00 00 00 00 08 00
c0 ca 00 f9 00 10 27 00 00 b0 6d 70 74 00 00 00 00
d0 ca 00 00 00 00 00 87 5a 00 50 a3 cc dc 75 55 22
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

status=0x0

REPORT-IOCTL: Device=/dev/sda Command=IDENTIFY DEVICE returned 0

[IDENTIFY DEVICE] DATA START (BASE-16)

000-015: 5a 04 ff 3f 37 c8 10 00 00 00 00 00 3f 00 00 00 |Z..?7.......?...|
016-031: 00 00 00 00 20 20 20 20 20 20 50 4a 39 36 30 34 |.... PJ9604|
032-047: 5a 48 5a 31 4d 57 46 41 03 00 5f ea 38 00 50 4a |ZHZ1MWFA.._.8.PJ|
048-063: 4f 34 33 41 41 4d 69 48 61 74 68 63 20 69 44 48 |O43AAMiHathc iDH|
064-079: 37 53 31 32 31 30 43 30 41 4c 33 33 20 32 20 20 |7S1210C0AL33 2 |
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 00 01 ff ff ff 0f 00 00 07 00 |?...............|
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 06 17 00 00 5e 00 44 00 |.............D.|
160-175: fc 01 29 00 6b 34 69 7d 73 47 69 34 41 bc 63 47 |..).k4i}sGi4A.cG|
176-191: 7f 40 6c 00 00 00 00 00 fe ff 00 00 00 00 08 00 |.@l.............|
192-207: ca 00 f9 00 10 27 00 00 b0 6d 70 74 00 00 00 00 |.....'...mpt....|
208-223: ca 00 00 00 00 00 87 5a 00 50 a3 cc dc 75 55 22 |.......Z.P...uU"|
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 0b 00 00 00 00 00 80 20 f1 0d 00 fa 01 00 |......... ......|
272-287: 00 40 04 04 6a 02 00 00 00 00 07 06 03 0b 04 09 |.@..j...........|
288-303: 05 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
304-319: 4e 34 33 42 00 00 04 68 00 00 bd 5d d3 a1 00 80 |N43B...h...]....|
320-335: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
336-351: 02 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 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 20 1c 00 00 00 00 00 00 00 00 1f 10 21 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 e0 03 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 ce |................|

[IDENTIFY DEVICE] DATA END (512 Bytes)

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=0x0, host_status=0x0, driver_status=0x0
info=0x0 duration=480 milliseconds resid=0
Incoming data, len=512 [only first 256 bytes shown]:

00 10 00 01 0b 00 64 64 00 00 00 00 00 00 00 02 05
10 00 64 64 00 00 00 00 00 00 00 03 07 00 64 64 fd
20 00 00 00 06 00 00 04 12 00 64 64 05 00 00 00 00
30 00 00 05 33 00 64 64 00 00 00 00 00 00 00 07 0b
40 00 64 64 00 00 00 00 00 00 00 08 05 00 64 64 00
50 00 00 00 00 00 00 09 12 00 64 64 00 00 00 00 00
60 00 00 0a 13 00 64 64 00 00 00 00 00 00 00 0c 32
70 00 64 64 05 00 00 00 00 00 00 c0 32 00 64 64 05
80 00 00 00 00 00 00 c1 12 00 64 64 05 00 00 00 00
90 00 00 c2 02 00 ce ce 1d 00 16 00 1d 00 00 c4 32
a0 00 64 64 00 00 00 00 00 00 00 c5 22 00 64 64 00
b0 00 00 00 00 00 00 c6 08 00 64 64 00 00 00 00 00
c0 00 00 c7 0a 00 c8 c8 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/sda Command=SMART READ ATTRIBUTE VALUES returned 0

[SMART READ ATTRIBUTE VALUES] DATA START (BASE-16)

000-015: 10 00 01 0b 00 64 64 00 00 00 00 00 00 00 02 05 |.....dd.........|
016-031: 00 64 64 00 00 00 00 00 00 00 03 07 00 64 64 fd |.dd..........dd.|
032-047: 00 00 00 06 00 00 04 12 00 64 64 05 00 00 00 00 |.........dd.....|
048-063: 00 00 05 33 00 64 64 00 00 00 00 00 00 00 07 0b |...3.dd.........|
064-079: 00 64 64 00 00 00 00 00 00 00 08 05 00 64 64 00 |.dd..........dd.|
080-095: 00 00 00 00 00 00 09 12 00 64 64 00 00 00 00 00 |.........dd.....|
096-111: 00 00 0a 13 00 64 64 00 00 00 00 00 00 00 0c 32 |.....dd........2|
112-127: 00 64 64 05 00 00 00 00 00 00 c0 32 00 64 64 05 |.dd........2.dd.|
128-143: 00 00 00 00 00 00 c1 12 00 64 64 05 00 00 00 00 |.........dd.....|
144-159: 00 00 c2 02 00 ce ce 1d 00 16 00 1d 00 00 c4 32 |...............2|
160-175: 00 64 64 00 00 00 00 00 00 00 c5 22 00 64 64 00 |.dd........".dd.|
176-191: 00 00 00 00 00 00 c6 08 00 64 64 00 00 00 00 00 |.........dd.....|
192-207: 00 00 c7 0a 00 c8 c8 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 80 00 19 26 01 5b |.............&.[|
368-383: 03 00 01 00 01 a3 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 dd |................|

[SMART READ ATTRIBUTE VALUES] DATA END (512 Bytes)

REPORT-IOCTL: Device=/dev/sda 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=300 milliseconds resid=0
Incoming data, len=512 [only first 256 bytes shown]:

00 10 00 01 10 00 00 00 00 00 00 00 00 00 00 02 36
10 00 00 00 00 00 00 00 00 00 00 03 18 00 00 00 00
20 00 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00
30 00 00 05 05 00 00 00 00 00 00 00 00 00 00 07 43
40 00 00 00 00 00 00 00 00 00 00 08 14 00 00 00 00
50 00 00 00 00 00 00 09 00 00 00 00 00 00 00 00 00
60 00 00 0a 3c 00 00 00 00 00 00 00 00 00 00 0c 00
70 00 00 00 00 00 00 00 00 00 00 c0 00 00 00 00 00
80 00 00 00 00 00 00 c1 00 00 00 00 00 00 00 00 00
90 00 00 c2 00 00 00 00 00 00 00 00 00 00 00 c4 00
a0 00 00 00 00 00 00 00 00 00 00 c5 00 00 00 00 00
b0 00 00 00 00 00 00 c6 00 00 00 00 00 00 00 00 00
c0 00 00 c7 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/sda Command=SMART READ ATTRIBUTE THRESHOLDS returned 0

[SMART READ ATTRIBUTE THRESHOLDS] DATA START (BASE-16)

000-015: 10 00 01 10 00 00 00 00 00 00 00 00 00 00 02 36 |...............6|
016-031: 00 00 00 00 00 00 00 00 00 00 03 18 00 00 00 00 |................|
032-047: 00 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 |................|
048-063: 00 00 05 05 00 00 00 00 00 00 00 00 00 00 07 43 |...............C|
064-079: 00 00 00 00 00 00 00 00 00 00 08 14 00 00 00 00 |................|
080-095: 00 00 00 00 00 00 09 00 00 00 00 00 00 00 00 00 |................|
096-111: 00 00 0a 3c 00 00 00 00 00 00 00 00 00 00 0c 00 |...<............|
112-127: 00 00 00 00 00 00 00 00 00 00 c0 00 00 00 00 00 |................|
128-143: 00 00 00 00 00 00 c1 00 00 00 00 00 00 00 00 00 |................|
144-159: 00 00 c2 00 00 00 00 00 00 00 00 00 00 00 c4 00 |................|
160-175: 00 00 00 00 00 00 00 00 00 00 c5 00 00 00 00 00 |................|
176-191: 00 00 00 00 00 00 c6 00 00 00 00 00 00 00 00 00 |................|
192-207: 00 00 c7 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 64 |...............d|

[SMART READ ATTRIBUTE THRESHOLDS] DATA END (512 Bytes)

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=0x0, host_status=0x0, driver_status=0x0
info=0x0 duration=370 milliseconds resid=0
status=0x0

Error SMART Status command failed
Please get assistance from http://smartmontools.sourceforge.net/
Register values returned from SMART Status command are:

ERR=...., SC=...., LL=...., LM=...., LH=...., DEV=...., STS=....

REPORT-IOCTL: Device=/dev/sda Command=SMART STATUS CHECK returned -1
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.

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

Milestone: Release 5.41

"smartctl -d megaraid,0 -r ioctl,2 -H /dev/sda"
...

[inquiry: 12 00 00 00 24 00 ]

Smartctl open device: /dev/sda [megaraid_disk_00] failed: INQUIRY failed

The root of the problem is that the MegaRAID specific code does not work here. I have no idea why.

and "smartctl -r ioctl,2 -H /dev/sda"
...
Error SMART Status command failed
Please get assistance from http://smartmontools.sourceforge.net/
Register values returned from SMART Status command are:

ERR=...., SC=...., LL=...., LM=...., LH=...., DEV=...., STS=....

REPORT-IOCTL: Device=/dev/sda Command=SMART STATUS CHECK returned -1
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.

This is message is misleading, changed in r3304 to:
"SMART STATUS RETURN: incomplete response, ATA output registers missing"

SMART STATUS does not work because MegaRAID firmware does not support ATA return descriptor.

comment:4 by Christian Franke, 14 years ago

Owner: changed from Christian Franke to somebody
Status: acceptedassigned

MegaRAID code in os_linux.cpp code should be fixed by somebody.

comment:5 by panticz4, 14 years ago

If you need some further output / tests please let me know.

Pawel

comment:6 by Alex Samorukov, 13 years ago

Please try megaraid,0 - megaraid,32, it is possible that wrong number is used.

comment:7 by Alex Samorukov, 13 years ago

Resolution: worksforme
Status: assignedclosed

No replies for ~7 months, also i have a lot of megaraid controllers with working status. ATA registers are really not passed correctly, but it is a known issue of the firmware.

Note: See TracTickets for help on using tickets.