From owner-freebsd-stable@FreeBSD.ORG Wed Mar 16 15:45:54 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F60716A4CE for ; Wed, 16 Mar 2005 15:45:54 +0000 (GMT) Received: from darwin.illian.net (darwin.illian.net [80.69.74.160]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C44343D48 for ; Wed, 16 Mar 2005 15:45:53 +0000 (GMT) (envelope-from rutger.bevaart@illian.net) Received: from localhost (localhost.illian.net [127.0.0.1]) by darwin.illian.net (Postfix) with ESMTP id 8D24B451A2 for ; Wed, 16 Mar 2005 16:46:04 +0100 (CET) Received: from darwin.illian.net ([127.0.0.1]) by localhost (darwin.illian.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 87289-01 for ; Wed, 16 Mar 2005 16:46:01 +0100 (CET) Received: from www.illian.net (localhost.illian.net [127.0.0.1]) by darwin.illian.net (Postfix) with ESMTP id BEB0945198 for ; Wed, 16 Mar 2005 16:46:01 +0100 (CET) Received: from 213.236.112.75 (SquirrelMail authenticated user rutger); by www.illian.net with HTTP; Wed, 16 Mar 2005 16:46:01 +0100 (CET) Message-ID: <28573.213.236.112.75.1110987961.squirrel@213.236.112.75> In-Reply-To: <20050316120038.4A6C616A522@hub.freebsd.org> References: <20050316120038.4A6C616A522@hub.freebsd.org> Date: Wed, 16 Mar 2005 16:46:01 +0100 (CET) From: "Rutger Bevaart" To: freebsd-stable@freebsd.org User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: amavisd-new at illian.net Subject: Re: Panic with amr and 5.4-PRERELEASE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2005 15:45:54 -0000 can't you get that information by using the combination of compat4x package, the amrcontrol tool from E Moore? (see http://people.freebsd.org/~emoore/MegaRAID_SCSI/). i've actually succeeded in rebuilding a RAID on a Dell PE2850 using the MEGAMGR application which provides the same GUI as the BIOS interface does. get the asci character set of your terminal right (search google) and you can manage. there seems to be no sourcecode available of the amrcontrol tool that allows a clean build unfortunately. On Tue, Mar 15, 2005 at 11:12:49AM +0100, Constant, Benjamin wrote: > > Fyi, > > The tool is working fine but doesn't show up rebuild state (just removed a > drive and card bios is showing up rebuild on hotspare). > I think it's coming from the driver as it doesn't say that logical device is > in rebuild state. > > root@liemaster01:~: dmesg | grep amrd0 > amrd0: on amr0 > amrd0: 35073MB (71829504 sectors) RAID 1 (degraded) > Mounting root from ufs:/dev/amrd0s1a > > root@liemaster01:~: ./amrstat -l0 > Drive 0: 34.25 GB, RAID1 > degraded > You're right. The driver doesn't report the rebuild state. > > By the way, this tool seems promising, thanks for the effort! > Coupled with a simple perl script which periodically calls amrstat on all volumes, it has been proved very useful by the past. However, under heavy I/O load, the amr driver returns meaningful information. This is the reason why amrstat.c make a few attempts. Since this is only to send a mail for an alert, We ignore these "false positive". Pierre David