From owner-freebsd-questions@FreeBSD.ORG Wed Feb 14 20:22:33 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4B3FB16A401 for ; Wed, 14 Feb 2007 20:22:33 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id 2E3C813C46B for ; Wed, 14 Feb 2007 20:22:33 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from localhost (jn@ns1 [69.55.238.237]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id l1EKMTAE082707; Wed, 14 Feb 2007 15:22:30 -0500 (EST) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-questions@freebsd.org Date: Wed, 14 Feb 2007 15:16:46 -0500 User-Agent: KMail/1.9.5 References: <000101c5929c$73643e30$0201a8c0@IVAN> <20070214150908.U59589@arbitor.digitalfreaks.org> In-Reply-To: <20070214150908.U59589@arbitor.digitalfreaks.org> X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*.<=?utf-8?q?of=5F4NrS=0A=09P*M/9CpxDo!D6?=)IY1w<9B1jB; tBQf[RU-R<,I)e"$q7N7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702141516.46899.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: Ivan Carey , "Brian A. Seklecki" Subject: Re: How does gmirror know of a faulty drive 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: Wed, 14 Feb 2007 20:22:33 -0000 On Wednesday 14 February 2007 15:10, Brian A. Seklecki wrote: > On Wed, 27 Jul 2005, Ivan Carey wrote: > > In FreeBSD 5.3 I have set up 2 drives in RAID-1 format. > > How will I know if one of the drives is faulty such as either not working > > or > > > > has some lost sectors? > > > > Is it possible to have gmirror email me if there is a problem? > > I just actually replied to a thread about this. Apparently there is no > automatic demotion of a device to DEGRADED. I just had a provider error > for a good 5 minutes of SCSI kernel messages (bad sectors, grown defects), > without any automatic corrective action taken by gmirror(4) In my experience gmirror will automatically detach any consumer that has a hard read or write error. (I haven't had occasion to use gmirror with SCSI devices yet though, so this could just be limited to ATA.) Re: e-mail notification, you can get a daily report if you set 'daily_status_gmirror_enable="YES"' in /etc/periodic.conf. If you'd like more frequent checks it wouldn't be hard to put a script together to run "gmirror status" every N minutes from cron, parse the output and forward it to you if it said anything but COMPLETE for each provider. JN