From owner-freebsd-geom@FreeBSD.ORG Thu Apr 27 08:56:28 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D8D316A402 for ; Thu, 27 Apr 2006 08:56:28 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2A0143D46 for ; Thu, 27 Apr 2006 08:56:27 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id F234152C10; Thu, 27 Apr 2006 10:56:25 +0200 (CEST) Received: from localhost (ana50.internetdsl.tpnet.pl [83.17.82.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 8759C50F93; Thu, 27 Apr 2006 10:56:17 +0200 (CEST) Date: Thu, 27 Apr 2006 10:54:51 +0200 From: Pawel Jakub Dawidek To: "Ian A. Tegebo" Message-ID: <20060427085451.GA20828@garage.freebsd.pl> References: <20060426214402.GA2496@rescomp.berkeley.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="h31gzZEtNLTqOjlF" Content-Disposition: inline In-Reply-To: <20060426214402.GA2496@rescomp.berkeley.edu> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r535 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: Failure Detection X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 08:56:28 -0000 --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 26, 2006 at 02:44:04PM -0700, Ian A. Tegebo wrote: +> I'm trying to write a nagios check that will run on my gmirror hosts. I= 'd=20 +> like to know what I should look for to be able to determine if a failure= =20 +> has occurred. +>=20 +> I took a look at the man pages: gmirror, geom, vinum, and so on but +> couldn't find much information about state (DIRTY for instance). After +> searching this list some, I found that DIRTY apparently means that it's +> ready to be written to? DIRTY means that device is open for writting and when a crash/power failure occur, it will be synchronized on next boot. +> Further search revealed that a 'gmirror status' should return something +> like "degraded" if a device has failed. I'm running 5.3 and am not +> seeing the 'status' command for gmirror so I'm supposing I'll need to +> upgrade. The 'status' subcommand was introduce in 6.x. +> Where can I find more detailed information about what the output of +> 'gmirror list' means? Has anyone come up with a better way then +> grepping 'gmirror status' output for 'degraded'? Grepping 'gmirror status' should be enough. I'm wodering about a way to report failures from GEOM classes to userland, but haven't had time to work on this yet. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --h31gzZEtNLTqOjlF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFEUIbbForvXbEpPzQRAuj9AJ9EaZQc8ANE7DAdF7WnairRWmqm+gCbBRK9 Vsndpzi9lItleCgSx26npCo= =qrDD -----END PGP SIGNATURE----- --h31gzZEtNLTqOjlF--