From owner-freebsd-questions@FreeBSD.ORG Fri Feb 22 17:09:44 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 3EF9116A409 for ; Fri, 22 Feb 2008 17:09:44 +0000 (UTC) (envelope-from lavalamp@spiritual-machines.org) Received: from mail.digitalfreaks.org (arbitor.digitalfreaks.org [216.151.95.158]) by mx1.freebsd.org (Postfix) with ESMTP id 1AF8313C4EA for ; Fri, 22 Feb 2008 17:09:43 +0000 (UTC) (envelope-from lavalamp@spiritual-machines.org) Received: from localhost (localhost [127.0.0.1]) by mail.digitalfreaks.org (Postfix) with ESMTP id 3115E1824B; Fri, 22 Feb 2008 11:52:56 -0500 (EST) Received: from mail.digitalfreaks.org ([127.0.0.1]) by localhost (mail.digitalfreaks.org [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 99703-01-13; Fri, 22 Feb 2008 11:52:53 -0500 (EST) Received: from [192.168.2.161] (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.digitalfreaks.org (Postfix) with ESMTP id 9E568182A4; Fri, 22 Feb 2008 11:44:06 -0500 (EST) From: "Brian A. Seklecki" To: Wojciech Puchar In-Reply-To: <20080203233311.X7800@wojtek.tensor.gdynia.pl> References: <47A6287C.9040902@gmail.com> <20080203233311.X7800@wojtek.tensor.gdynia.pl> Content-Type: text/plain Date: Fri, 22 Feb 2008 11:43:52 -0500 Message-Id: <1203698632.10391.130.camel@soundwave.ws.pitbpa0.priv.collaborativefusion.com> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-1.fc8) Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.2 Cc: Gunther Mayer , 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: Fri, 22 Feb 2008 17:09:44 -0000 On Sun, 2008-02-03 at 23:39 +0100, Wojciech Puchar wrote: > 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). > Also don't forget about: $ grep -i fsck /etc/defaults/rc.conf fsck_y_enable="NO" # Set to YES to do fsck -y if the initial preen fails. gmirror(8) / geom(8) should automatically remove (degrade) components with bad I/O operations after a certain threshold, but I'm pretty sure it doesn't. ~BAS > 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.