From owner-freebsd-scsi@FreeBSD.ORG Thu Mar 30 18:47:13 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 7681216A41F for ; Thu, 30 Mar 2006 18:47:13 +0000 (UTC) (envelope-from christias@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.238]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08BF443D46 for ; Thu, 30 Mar 2006 18:47:12 +0000 (GMT) (envelope-from christias@gmail.com) Received: by wproxy.gmail.com with SMTP id i21so528199wra for ; Thu, 30 Mar 2006 10:47:12 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Hp2QP/HUGd737h6qxS8+ceBIc3GtK58dUDufgtGdCS3cSQHP8Ufsla22XPC6rV3HDUbisDiFssuZa+wYRTA07FdaVaTufQKKD8pEXBW7CYV1OM9v5VCE8HhtnLDVn38Do4EnccjhR8UUuPgcLz/3ax69P3yWOrMfIRB3ej6P85s= Received: by 10.64.10.5 with SMTP id 5mr1466256qbj; Thu, 30 Mar 2006 10:47:11 -0800 (PST) Received: by 10.64.196.6 with HTTP; Thu, 30 Mar 2006 10:47:11 -0800 (PST) Message-ID: Date: Thu, 30 Mar 2006 21:47:11 +0300 From: "Panagiotis Christias" To: freebsd-scsi@freebsd.org In-Reply-To: <200603301243.k2UChHSp054250@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060329160129.GA95084@nargothrond.kdm.org> <200603301243.k2UChHSp054250@lurza.secnetix.de> 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: Thu, 30 Mar 2006 18:47:13 -0000 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