Temperature sensor on SCSI disks (IBM / Hitachi)

Panagiotis Christias christias at gmail.com
Thu Mar 30 18:47:13 UTC 2006


On 3/30/06, Oliver Fromme <olli at lurza.secnetix.de> wrote:
> Kenneth D. Merry <ken at freebsd.org> wrote:
>  > Oliver Fromme wrote:
>  > > I have the following SCSI disks in a server:
>  > >
>  > > <IBM DDYS-T18350M S96H>   at scbus0 target 0 lun 0 (pass0,da0)
>  > > <IBM DDYS-T18350M S96H>   at scbus0 target 1 lun 0 (pass1,da1)
>  > >
>  > > Searching the mailing lists revealed that IBM SCSI disks
>  > > (Hitachi nowadays) have a temperature sensor that can be
>  > > queried with a special (prioprietary) command like this:
>  > > [...]
>  > With some more recent IBM drives (possibly including DDYS drives, can't
>  > remember), you can get the temperature like this:
>  >
>  > camcontrol cmd da0 -v -u $i -c "4D 0 6F 0 0 0 0 0 20 0" -i 32 "s10 i1"`
>
> Cool, that one works.
>
> # camcontrol cmd da0 -v -c "4D 0 6F 0 0 0 0 0 20 0" -i 32 "s10 i1"
> 33
> # camcontrol cmd da1 -v -c "4D 0 6F 0 0 0 0 0 20 0" -i 32 "s10 i1"
> 36
>
> Thanks very much!
>
> Do such commands exist for other drives or vendors, too?
>
> Best regards
>    Oliver

Very interesting! I am wondering if it would be possible to get that
kind of information if the disks are part of a hardware RAID. Our
systems have IBM/Hitachi disks connected on RAID controllers
(accessible using the amr driver). Any ideas?

Thank you in advance,
Panagiotis


More information about the freebsd-scsi mailing list