From owner-freebsd-questions@FreeBSD.ORG Wed May 27 19:42:35 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2563B1065675 for ; Wed, 27 May 2009 19:42:35 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id A01478FC22 for ; Wed, 27 May 2009 19:42:34 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by bwz9 with SMTP id 9so5001643bwz.43 for ; Wed, 27 May 2009 12:42:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=I9MrvxBczM4NVrEZ1pH92zh2CsyPIaEfdKadaad36Ec=; b=QttZthM6iwBWJsu1GD5jTSXe17TRjfhXAmKOyVlMz8ETITUPZ20dUkLVUKNQti6dVo VuomUeJ2Ai1cK4YrrnqlkwtIhKjdd9YHsqkHiSssT0OkV4F5V1CoU5g5imiKF3hNvKX6 0XzF1R0E5Py4ibEAYIGMsbOjA5kuuSxGbkkqk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Y9dqxedAC13drXz8dyardyrS1044+pKa4lEh3KoIlSdaXro4qiXhbkYYW/q/MeH1JX fwoV6bkXM7MVy+B6lePHSdvww/SGbXoKadO+Lmej8MQMUEY7riIsyLlrA2aT4dzbaJj2 9/a5e72w+glMtxVVAjPsMi9h8rxeFAJwgkf7k= MIME-Version: 1.0 Received: by 10.223.113.9 with SMTP id y9mr469489fap.61.1243453353162; Wed, 27 May 2009 12:42:33 -0700 (PDT) In-Reply-To: References: Date: Wed, 27 May 2009 15:42:33 -0400 Message-ID: <4ad871310905271242q2479cc6dg93b6aba703f4e22d@mail.gmail.com> From: Glen Barber To: Peter Steele Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: How to detect when gmirror sync is complete? 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, 27 May 2009 19:42:35 -0000 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