How to detect when gmirror sync is complete?

Glen Barber glen.j.barber at gmail.com
Wed May 27 19:42:35 UTC 2009


Hi, Peter

On Tue, May 26, 2009 at 4:33 PM, Peter Steele
<psteele at webmail.maxiscale.com> wrote:
> I know I could have a script that continually checks "gmirror status" to
> detect when a gmirror synchronization has completed, but is there a more
> event-driven approach? Something that could be used to trigger and event
> like devd does for drive pulls/inserts would be nice. Is this possible?
>
>

If, by chance you use Nagios, there is the net-mgmt/nagios-geom-1.3
port that detects degraded arrays and (as with the rest of Nagios
tools) will auto-alert when there is a problem (and when the problem
has recovered).

-- 
Glen Barber


More information about the freebsd-questions mailing list