An adage for gmirror users

Chris Cowart ccowart at
Wed Jun 3 21:33:05 UTC 2009

Reid Linnemann wrote:
> Written by Wojciech Puchar on 06/03/09 15:58>>
> > i simply have in crontab a script running once per hour:
> > 
> > #!/bin/sh
> > /sbin/gmirror status|grep -q DEGRADED && \\
> > mail -s "gmirror failure" myphonenumber at </dev/null
> Surely you jest! You presume that I have access to cheap, unrestrictive
> communications technology ;) In the US, ISPs prevent clients routing
> their own mail and text messages are outrageously expensive with our
> cell carriers! Seriously though, that's a good idea. Maybe I could have
> it wall the message and/or put it in /etc/motd to get my attention.

Or simply put daily_status_gmirror_enable="YES" in /etc/periodic.conf
and watch your dailies.

Chris Cowart
Network Technical Lead
Network & Infrastructure Services, RSSP-IT
UC Berkeley
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list