Date: Thu, 27 Apr 2006 10:54:51 +0200 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: "Ian A. Tegebo" <yontege@rescomp.berkeley.edu> Cc: freebsd-geom@freebsd.org Subject: Re: Failure Detection Message-ID: <20060427085451.GA20828@garage.freebsd.pl> In-Reply-To: <20060426214402.GA2496@rescomp.berkeley.edu> References: <20060426214402.GA2496@rescomp.berkeley.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060427085451.GA20828>