Re: How to detect when gmirror sync is complete?

2009-05-27 Thread Glen Barber
Hi, Peter

On Tue, May 26, 2009 at 4:33 PM, Peter Steele
 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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to detect when gmirror sync is complete?

2009-05-27 Thread Mel Flynn
On Tuesday 26 May 2009 22:33:54 Peter Steele 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?

Doesn't look like gmirror notifies devd. Look at devctl_notify examples[1] in 
the source tree to add it, where the hard part is figuring out when a gmirror 
sync is complete. Or you can file a PR requesting the feature, I'm sure you're 
not alone.

[1] Prototype: sys/bus.h, example: sys/dev/acpica/acpi.c.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


How to detect when gmirror sync is complete?

2009-05-26 Thread Peter Steele
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?

 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"