From owner-freebsd-questions@FreeBSD.ORG Sun Feb 3 22:40:51 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC8EB16A417 for ; Sun, 3 Feb 2008 22:40:51 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id CCDAC13C4D1 for ; Sun, 3 Feb 2008 22:40:40 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8) with ESMTP id m13Me2hc007854; Sun, 3 Feb 2008 23:40:02 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8/Submit) with ESMTP id m13MdxYh007851; Sun, 3 Feb 2008 23:40:01 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Sun, 3 Feb 2008 23:39:59 +0100 (CET) From: Wojciech Puchar To: Gunther Mayer In-Reply-To: <47A6287C.9040902@gmail.com> Message-ID: <20080203233311.X7800@wojtek.tensor.gdynia.pl> References: <47A6287C.9040902@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: questions@freebsd.org Subject: Re: automatic fsck on gmirror failure 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: Sun, 03 Feb 2008 22:40:51 -0000 it failed while rebuilding with badly written data on the disk that was used, while other rebuild. now it can't read it. if you are sure that it doesn't pass through fsck before second reboot, do the following. 1) turn off gmirror 2) clear gmirror header on both providers 3) run fsck the other drive (not ad6, but the other used on mirror). 4) pray 5) after fsck will end it successfully (it should), create gmirror with the disk you checked gmirror label gmirror-name /dev/thedisk 6) reboot and start the system. should go well. 7) after system is running and not too much needing disk I/O, do gmirror insert gmirror-name /dev/ad6 8) pray again, but with much less fear. 9) if gmirror will finish rebuild, all right. if you got write errors in log, ad6 needs to be replaced. wish it helps.