Re: POWER MODE and sat,12 again

Christian Franke <[email protected]>
Newsgroups gmane.linux.utilities.smartmontools
Message-ID <[email protected]>
Alfred Ganz wrote:
> However, after I just upgraded CentOS from 6.6. to 6.7 (which did not
> change smartmontools, 5.43-1.el6 before and after the upgrade) I now
> get an error message indicating that the standby parameter was ignored
> (and the disk is always spun up):
>    smartd[12177]: Device: /dev/sdb [SAT], no ATA CHECK POWER STATUS support,
> 	ignoring -n Directive
>
> Note that tests with smartctl show that the proper device type for the
> disk still has to be sat,12 and except for the -n parameter everything
> seems to work as expected. Here is the output for smartctl with -r and
> -n however:
>    # smartctl -r ioctl,2 -n standby -d sat,12 /dev/sdb
>    smartctl 5.43 2012-06-30 r3573 [i686-linux-2.6.32-573.1.1.el6.i686] (local build)
>    Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net
>    
>    
>    REPORT-IOCTL: Device=/dev/sdb Command=CHECK POWER MODE
>     Input:   FR=...., SC=...., LL=...., LM=...., LH=...., DEV=...., CMD=0xe5
>     [ata pass-through(12): a1 06 2c 00 00 00 00 00 00 e5 00 00 ]
>      scsi_status=0x0, host_status=0x7, driver_status=0x8
>      info=0x1  duration=1 milliseconds  resid=0
>      >>> Sense buffer, len=22:
>     00     72 04 00 00 00 00 00 0e  09 0c 00 00 50 ff 00 00
>     10     00 00 00 00 00 50
>      status=2: [desc] sense_key=4 asc=0 ascq=0
>    sat_device::ata_pass_through: scsi error: medium or hardware error (serious)
>    Values from ATA Return Descriptor are:
>     00     09 0c 00 00 50 ff 00 00  00 00 00 00 00 50
>     [Duration: 0.001s]
>    REPORT-IOCTL: Device=/dev/sdb Command=CHECK POWER MODE returned -1 errno=5 [scsi error medium or hardware error (serious)]

The SAT layer in this (very old?) Linux kernel is apparently broken.
It returns sense key 4 (HARDWARE ERROR) which means that the SAT ATA 
PASS-THROUGH(12) command has failed.
The kernel should return 1 (RECOVERED ERROR) if the command succeeded 
and output registers are returned in SCSI sense data.

Here similar problem with SMART STATUS of an USB bridge:
http://www.smartmontools.org/ticket/548#comment:3

Does the SMART STATUS (smartctl -H) work with this kernel?

Did you check -d sat ?

Thanks,
Christian


------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.