From owner-freebsd-questions@FreeBSD.ORG Wed Jun 3 21:15:05 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 91631106567D for ; Wed, 3 Jun 2009 21:15:05 +0000 (UTC) (envelope-from lreid@cs.okstate.edu) Received: from webmail.cs.okstate.edu (webmail.cs.okstate.edu [139.78.140.125]) by mx1.freebsd.org (Postfix) with ESMTP id 6EB8E8FC26 for ; Wed, 3 Jun 2009 21:15:05 +0000 (UTC) (envelope-from lreid@cs.okstate.edu) Received: from [127.0.0.1] (a.cs.okstate.edu [139.78.140.79]) by webmail.cs.okstate.edu (Postfix) with ESMTP id CD6108E821A; Wed, 3 Jun 2009 16:14:52 -0500 (CDT) Message-ID: <4A26E7CA.6020306@cs.okstate.edu> Date: Wed, 03 Jun 2009 16:14:50 -0500 From: Reid Linnemann User-Agent: Thunderbird 2.0.0.6 (X11/20070926) MIME-Version: 1.0 To: Wojciech Puchar References: <4A26DBAD.6000005@cs.okstate.edu> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: Reid Linnemann , freebsd-questions Subject: Re: An adage for gmirror users 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, 03 Jun 2009 21:15:07 -0000 Written by Wojciech Puchar on 06/03/09 15:58>> >> My mirror gm0 consists of two SATA disks, ad4 and ad6. Now, I have a >> finicky controller that sporadically spits out READ_DMA and READ_DMA48 > > or bad cables. > I'll have to try different cables sometime, you may very well be correct. >> timeouts inexplicably. So at some point in time immemorial after >> installing the last kernel, ad4 suffered a number of READ_DMA48 errors >> and dropped out without being removed from the mirror's provider list . >> So when I installed my new flashy kernel with all my filesystems >> mounted, it was put into /boot/kernel on the mirror, which at that point >> consisted of only ad6. On boot, the loader grabbed the kernel from > > i simply have in crontab a script running once per hour: > > #!/bin/sh > /sbin/gmirror status|grep -q DEGRADED && \\ > mail -s "gmirror failure" myphonenumber@mygsmoperator.pl > > anyway - what a sense of using gmirror without regularly checking of > failures at all? Touché! I set up my mirror after my last disk started dying and I realized I needed at least some minimal fault protection. Mirroring seemed expedient. My ideal situation would be additionally backing up things I can't bear to lose on optical or tape media, but as this is my hobby machine and I have many adult responsibilities that fall before it, some things just have to wait.