Opened 9 years ago

Closed 9 years ago

#139 closed defect (wontfix)

smartctl can not modify CCTL ( TLER equivalent) on Hitachi UltraStar on LSI 1068 SAS controller.

Reported by: maurice780 Owned by: somebody
Priority: major Milestone:
Component: all Version: 5.40
Keywords: Cc:

Description

Using Hitachi 1TB UltraStar? disks, HUA722010CLA330
On LSI1068 embedded SAS chip (on motherboard)
OS: CentOS 5.1 on ROCKS5 cluster.
Updated mptsas driver to mptlinux-4.24.00.00-2.x86_64
smartmontools 5.40
kernel 2.6.18-194.11.3.el5

Trying to read/modify CCTL settings.
Fails to communicate with the drives CCTL.
CAN see drives.
Examples:
smartctl -l scterc /dev/sda
smartctl 5.40 2010-10-16 r3189 [x86_64-redhat-linux-gnu] (local build)
Probable ATA device behind a SAT layer
Try an additional '-d ata' or '-d sat' argument.

[root@lagavulin ~]# smartctl -d sat -T permissive -l scterc /dev/sda
smartctl 5.40 2010-10-16 r3189 [x86_64-redhat-linux-gnu] (local build)
Smartctl: Device Read Identity Failed (not an ATA/ATAPI device)
Warning: device does not support SCT Commands

A couple more tests show that it thinks it's a scsi device, and then '-l scterc' returns nothing. This is true for both Hitachi and Seagate drives.

[root@lagavulin ~]# smartctl -d test /dev/sda
smartctl 5.40 2010-10-16 r3189 [x86_64-redhat-linux-gnu] (local build)
/dev/sda: Device of type 'scsi' [SCSI] detected
/dev/sda: Device of type 'scsi' [SCSI] opened
[root@lagavulin ~]# smartctl -a -d scsi /dev/sda
smartctl 5.40 2010-10-16 r3189 [x86_64-redhat-linux-gnu] (local build)
Serial number: JPW9J0HD0DD0TC
Device type: disk
Local Time is: Wed Dec 1 13:25:04 2010 EST
Device supports SMART and is Enabled
Temperature Warning Disabled or Not Supported
SMART Health Status: OK
Error Counter logging not supported
Device does not support Self Test logging

[root@lagavulin ~]# smartctl -a -d scsi /dev/sdb
smartctl 5.40 2010-10-16 r3189 [x86_64-redhat-linux-gnu] (local build)
Serial number: 3QJ01G92
Device type: disk
Local Time is: Wed Dec 1 13:37:03 2010 EST
Device supports SMART and is Enabled
Temperature Warning Disabled or Not Supported
SMART Health Status: OK
Error Counter logging not supported
Device does not support Self Test logging

[root@lagavulin ~]# smartctl -d scsi -l scterc /dev/sda
smartctl 5.40 2010-10-16 r3189 [x86_64-redhat-linux-gnu] (local build)

Verifying current versions and earlier problems with lockups on the mptsas device we tried this test:
# while true; do smartctl -a /dev/sdb > /dev/null; done

This produced no errors or lockups.

Is there SOME WAY to set CCTL on these drives??

Change History (6)

comment:1 Changed 9 years ago by Christian Franke

Keywords: CCTL TLER removed

The driver/firmware of the LSI1068 SAS chip does probably not support SAT.

Please attach output of

# smartctl -r ioctl,2 -d sat -i /dev/sda

comment:2 in reply to:  1 ; Changed 9 years ago by maurice780

Replying to chrfranke:

Please attach output of
# smartctl -r ioctl,2 -d sat -i /dev/sda

Certainly:

smartctl 5.40 2010-10-16 r3189 [x86_64-redhat-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net

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=0x2, host_status=0x0, driver_status=0x8
info=0x1 duration=1 milliseconds resid=512
Incoming data trimmed to nothing by resid

Sense buffer, len=18:

00 70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00
10 00 00

status=2: sense_key=5 asc=20 ascq=0

sat_device::ata_pass_through: scsi error: unsupported scsi opcode
REPORT-IOCTL: Device=/dev/sda Command=IDENTIFY DEVICE returned -1 errno=5 [scsi error unsupported scsi opcode]

[IDENTIFY DEVICE] 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 |................|

[IDENTIFY DEVICE] DATA END (512 Bytes)

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

Input: FR=...., SC=0x01, LL=...., LM=...., LH=...., DEV=...., CMD=0xa1 IN
[ata pass-through(16): 85 08 0e 00 00 00 01 00 00 00 00 00 00 00 a1 00 ]

scsi_status=0x2, host_status=0x0, driver_status=0x8
info=0x1 duration=0 milliseconds resid=512
Incoming data trimmed to nothing by resid

Sense buffer, len=18:

00 70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00
10 00 00

status=2: sense_key=5 asc=20 ascq=0

sat_device::ata_pass_through: scsi error: unsupported scsi opcode
REPORT-IOCTL: Device=/dev/sda Command=IDENTIFY PACKET DEVICE returned -1 errno=5 [scsi error unsupported scsi opcode]

[IDENTIFY PACKET DEVICE] 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 |................|

[IDENTIFY PACKET DEVICE] DATA END (512 Bytes)

Smartctl: Device Read Identity Failed (not an ATA/ATAPI device)

A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.

comment:3 in reply to:  2 Changed 9 years ago by Christian Franke

Replying to maurice780:

...
[ata pass-through(16): 85 08 0e 00 00 00 01 00 00 00 00 00 00 00 ec 00 ]
...

status=2: sense_key=5 asc=20 ascq=0

sat_device::ata_pass_through: scsi error: unsupported scsi opcode

Support for SAT SCSI command ATA PASS-THROUGH(16) is missing in controller driver/firmware.

There is a small chance that ATA PASS-THROUGH(12) is supported, please try:

# smartctl -d sat,12 -i /dev/sda

Otherwise smartmontools will not work at all with SATA devices behind this SAS controller.

comment:4 Changed 9 years ago by maurice780

I tried that, and it failed. However "scsi" works a bit:

# smartctl -d sat,12 -i /dev/sda
smartctl 5.40 2010-10-16 r3189 [x86_64-redhat-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net

Smartctl: Device Read Identity Failed (not an ATA/ATAPI device)

A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.

AND:

# smartctl -d scsi -i /dev/sda
smartctl 5.40 2010-10-16 r3189 [x86_64-redhat-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net

Serial number: JPW9J0HD0DD0TC
Device type: disk
Local Time is: Wed Dec 29 20:46:32 2010 EST
Device supports SMART and is Enabled
Temperature Warning Disabled or Not Supported

comment:5 in reply to:  4 Changed 9 years ago by Christian Franke

Replying to maurice780:

I tried that, and it failed. However "scsi" works a bit:

This is normal: The SAT layer translates mandatory SCSI commands to their ATA equivalents. This provides a very limited SCSI view of the device to smartctl. Unfortunately the SATL of this controller does not implement the optional ATA PASS-THROUGH commands required to access ATA functionality not translated to SCSI. See section "ATA, SCSI command sets and SAT" on smartctl man page for further info.

comment:6 Changed 9 years ago by Christian Franke

Resolution: wontfix
Status: newclosed

The SCSI command ATA PASS-THROUGH is not available with this controller.

Note: See TracTickets for help on using tickets.