[OpenIndiana-discuss] Hard Drive Temp

andre at ak47.co.za andre at ak47.co.za
Tue May 22 11:30:10 UTC 2012


  

On 22.05.2012 13:03, Jim Klimov wrote: 

> 2012-05-22 14:53, Scott
LeFevre написал:
> 
>> I've been using smartmontools 5.40 for a while
with few issues. I have 9 drives between two SATA controllers and use
the following line in smartd.conf to run the self tests:
/dev/rdsk/c1t0d0 -d sat,12 -o on -S on -t -I 194 -I 231 -I 9 -l error -l
selftest -s (S/../.././02|L/../../4/04) -m slefevre at example.com [1] This
line is repeated once for each drive. To get the temperature for a
drive, a simple one-liner works: smartctl -A -d sat,12 /dev/rdsk/c1t0d0
| grep ^194 | awk '{print $10}'
> 
> Thanks a log for the "-d sat,12"
tip. I've seen it sometime
> ago, but lost and couldn't reproduce :)
>

> This way smartctl yields even more info on my homebox disks
>
(including the temperature on the root disk absent in the
> "-d scsi"
query results), but did not work on the Thumper.
> So, YMMV :)
> 
>
Thanks again,
> //Jim Klimov
> 
>
_______________________________________________
> OpenIndiana-discuss
mailing list
> OpenIndiana-discuss at openindiana.org [2]
>
http://openindiana.org/mailman/listinfo/openindiana-discuss [3]

Isn't
this just a little weird (I haven't checked my BIOS just yet for disk
settings): 

smartctl --scan
/dev/rdsk/c10d0s0 -d ata
[ATA]
/dev/rdsk/c10d1s0 -d ata [ATA]
/dev/rdsk/c7d0s0 -d ata
[ATA]
/dev/rdsk/c7d1s0 -d ata [ATA]
/dev/rdsk/c9d1s0 -d ata [ATA] 

It
finds the disks. So I perform a test: 

smartctl -d test
/dev/rdsk/c7d1s0
smartctl 5.40 2010-10-16 r3189 [i386-pc-solaris2.11]
(local build)
Copyright (C) 2002-10 by Bruce Allen,
http://smartmontools.sourceforge.net

/dev/rdsk/c7d1s0: Device of type
'ata' [ATA] detected
/dev/rdsk/c7d1s0: Device of type 'ata' [ATA] opened


Looks as though it should work, however if I try and get info, it
fails: 

smartctl /dev/rdsk/c7d1s0
smartctl 5.40 2010-10-16 r3189
[i386-pc-solaris2.11] (local build)
Copyright (C) 2002-10 by Bruce
Allen,
http://smartmontools.sourceforge.net

#######################################################################
ATA
command routine ata_command_interface() NOT IMPLEMENTED under
Solaris.
Please contact smartmontools-support at lists.sourceforge.net
if
you want to help in porting smartmontools to
Solaris.
#######################################################################

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. 

The problem probably lies with, "ATA command
routine ata_command_interface() NOT IMPLEMENTED under Solaris." 
 


Links:
------
[1] mailto:slefevre at example.com
[2]
mailto:OpenIndiana-discuss at openindiana.org
[3]
http://openindiana.org/mailman/listinfo/openindiana-discuss


More information about the OpenIndiana-discuss mailing list