From owner-freebsd-scsi@FreeBSD.ORG Fri Mar 31 03:34:20 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A65EF16A420 for ; Fri, 31 Mar 2006 03:34:20 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC99443D6B for ; Fri, 31 Mar 2006 03:34:15 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id k2V3YETH011818; Thu, 30 Mar 2006 20:34:14 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <442CA330.4090904@samsco.org> Date: Thu, 30 Mar 2006 20:34:08 -0700 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051230 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Panagiotis Christias References: <20060329160129.GA95084@nargothrond.kdm.org> <200603301243.k2UChHSp054250@lurza.secnetix.de> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on pooker.samsco.org Cc: freebsd-scsi@freebsd.org Subject: Re: Temperature sensor on SCSI disks (IBM / Hitachi) X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Mar 2006 03:34:20 -0000 Panagiotis Christias wrote: > On 3/30/06, Oliver Fromme wrote: > >>Kenneth D. Merry wrote: >> > Oliver Fromme wrote: >> > > I have the following SCSI disks in a server: >> > > >> > > at scbus0 target 0 lun 0 (pass0,da0) >> > > 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 The amr driver has a SCSI passthrough mechanism for talking to the underlying disks (assuming that the disks are SCSI and not SATA), but it's been broken for several months. Since such a mechanism has such limited use, I haven't bothered to fix it. I definitely don't have time to fix it now, but I can give pointers to anyone who does want to look at it. Scott