Failure Detection

Pawel Jakub Dawidek pjd at FreeBSD.org
Thu Apr 27 08:56:28 UTC 2006


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 
+> like to know what I should look for to be able to determine if a failure 
+> has occurred.
+> 
+> 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.

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20060427/a22cdf28/attachment.pgp


More information about the freebsd-geom mailing list