From owner-freebsd-questions@FreeBSD.ORG Mon Jun 26 12:54:21 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CAAFC16A404 for ; Mon, 26 Jun 2006 12:54:21 +0000 (UTC) (envelope-from joao.barros@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 036A34492D for ; Mon, 26 Jun 2006 12:54:14 +0000 (GMT) (envelope-from joao.barros@gmail.com) Received: by py-out-1112.google.com with SMTP id c31so1502898pyd for ; Mon, 26 Jun 2006 05:54:14 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ePIGBYHI9l21IAI+8urRK1iT+Oj0GbHir30fZEwUtI7l8qZ351eNcLepwW+AyvYGwCVwLSJ/v1NyCjN+zFjuyYMEn6RjqPt3qk0lG5wMFoMXwZEpog+TMbAmVJA4x3Nt0Nt8iruJeOE8qZVGdHYewyE2e99LKNADMPGlWRgD5No= Received: by 10.35.83.6 with SMTP id k6mr5909972pyl; Mon, 26 Jun 2006 05:54:14 -0700 (PDT) Received: by 10.35.117.14 with HTTP; Mon, 26 Jun 2006 05:54:14 -0700 (PDT) Message-ID: <70e8236f0606260554i71131819o5e776dea33fa61a5@mail.gmail.com> Date: Mon, 26 Jun 2006 13:54:14 +0100 From: "Joao Barros" To: "Scott Mitchell" In-Reply-To: <20060626104957.GB67667@llama.fishballoon.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2f488c030606221106q4183de17gbff80d696f704505@mail.gmail.com> <449BAE45.7030705@dial.pipex.com> <2f488c030606231113i2b9b4bdcsa1b4192be54b9011@mail.gmail.com> <70e8236f0606231240t77e1b510xd5ecd98c093af559@mail.gmail.com> <2f488c030606231623x662d93afl8ff4875989d143c8@mail.gmail.com> <70e8236f0606240917m2d872902sce15c7cbacbdbc36@mail.gmail.com> <449FB7B2.7030808@dial.pipex.com> <20060626104957.GB67667@llama.fishballoon.org> Cc: freebsd-questions , Alex Zbyslaw Subject: Re: Hot-Swapping hard drives on Dell PowerEdge 2850 running FBSD 5.5-PRE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 12:54:21 -0000 On 6/26/06, Scott Mitchell wrote: > Yeah, megarc does have possibly the worst interface I've seen in quite a > long time. Allegedly the Linux monitoring tools for these adapters will > work with 6.1, although I haven't tried this myself yet. Yes, I think it was Doug Ambrisko who put in the shims for that, but haven't tested it. And yes, megarc should be on wikipedia as a bad example for bad interfaces. > > I've attached a couple of scripts I use for monitoring amr(4) adapters. > One (amr-check-status) is run hourly from crontab to alert of any change > in drive or array status. The other (700.amr-status) is a daily periodic > script. amrstat from ports also include a daily crontab script which I'm hapilly using. For the hourly job, there is a function in the amr(4) driver that's supposed to do a constant check of the controller but alas the function is just declared, empty in function. If this was to work, a message to syslog would be enough to send out an email with an alert for example. I started this weekend(again) my port of bio from OpenBSD and I really like what they did with the sysctl variables and with sensorsd like: $ sysctl hw.sensors hw.sensors.0=sd0, ami0 0, drive online, OK hw.sensors.1=sd1, ami0 1, degraded, WARN hw.sensors.2=sd2, ami0 2, failed, CRITICAL With sensorsd on top of that, monitoring is a breeze. I think after bio I know what I will do next ;-) -- Joao Barros