Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Feb 2007 15:16:46 -0500
From:      John Nielsen <lists@jnielsen.net>
To:        freebsd-questions@freebsd.org
Cc:        Ivan Carey <icarey@bigpond.com>, "Brian A. Seklecki" <lavalamp@spiritual-machines.org>
Subject:   Re: How does gmirror know of a faulty drive
Message-ID:  <200702141516.46899.lists@jnielsen.net>
In-Reply-To: <20070214150908.U59589@arbitor.digitalfreaks.org>
References:  <000101c5929c$73643e30$0201a8c0@IVAN> <20070214150908.U59589@arbitor.digitalfreaks.org>

index | next in thread | previous in thread | raw e-mail

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


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702141516.46899.lists>