From owner-freebsd-questions@FreeBSD.ORG Tue Jan 22 01:55:34 2008 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 57E6A16A417 for ; Tue, 22 Jan 2008 01:55:34 +0000 (UTC) (envelope-from jwm-freebsd-questions@sentinelchicken.net) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id ED3E913C447 for ; Tue, 22 Jan 2008 01:55:33 +0000 (UTC) (envelope-from jwm-freebsd-questions@sentinelchicken.net) Received: from mr08.lnh.mail.rcn.net ([207.172.157.28]) by smtp02.lnh.mail.rcn.net with ESMTP; 21 Jan 2008 20:55:33 -0500 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr08.lnh.mail.rcn.net (MOS 3.8.6-GA) with ESMTP id JOS51694; Mon, 21 Jan 2008 20:55:29 -0500 (EST) Received: from 207-172-209-180.c3-0.bkl-ubr2.sbo-bkl.ma.static.cable.rcn.com (HELO sentinelchicken.net) ([207.172.209.180]) by smtp01.lnh.mail.rcn.net with ESMTP; 21 Jan 2008 20:54:27 -0500 Received: (qmail 75861 invoked from network); 22 Jan 2008 01:55:27 -0000 Received: from aeryn.skepsi.net (HELO crichton.skepsi.net) (10.0.0.101) by aeryn.skepsi.net with SMTP; 22 Jan 2008 01:55:27 -0000 Received: (nullmailer pid 75858 invoked by uid 1000); Tue, 22 Jan 2008 01:55:27 -0000 Date: Mon, 21 Jan 2008 20:55:27 -0500 From: Jason Morgan To: Jeff Pflueger Message-ID: <20080122015527.GB74899@sentinelchicken.net> References: <47952D9C.8040703@wildernessfringe.com> <20080122010533.GA74899@sentinelchicken.net> <47954872.3050200@wildernessfringe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47954872.3050200@wildernessfringe.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Junkmail-Status: score=10/50, host=mr08.lnh.mail.rcn.net X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A010201.47954D15.007C,ss=1,fgs=0, ip=207.172.4.11, so=2007-10-30 19:00:17, dmn=5.4.3/2007-11-16 X-Junkmail-IWF: false Cc: freebsd-questions@freebsd.org Subject: Re: gmirror challenge 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: Tue, 22 Jan 2008 01:55:34 -0000 On Mon, Jan 21, 2008 at 05:35:46PM -0800, Jeff Pflueger wrote: > > > Hey Jeff, > > > > Try: > > > > gmirror forget ad6s1 > > > > >From gmirror(8): > > > > remove Remove the given component(s) from the mirror and clear meta- > > data on it. > > > > and futher on: > > > > One disk failed. Replace it with a brand new one: > > > > gmirror forget data > > gmirror insert data da1 > > > > > > I had a drive do something similar --- the system wouldn't crash, but > > a drive just refused to be rebuilt. I used `forget' and it worked like > > a charm. > > > > ~Jason > > > Thanks for that! > turns out that if I rebuild a mirror once booted from cd via: > gmirror label -v -b load gm0s1 /dev/ad4s1 > mount /dev/mirror/gm0s1 /mnt > > then I disconnected ad6 and booted from ad4. Once booted, the disk was > very busy for a long time and now it seems to be working fine. > > However, ad6... > when I have booted from CD I can't gmirror clean ad6 without getting the > message about > > "Can't clear metadata on ad6s1: Invalid argument. Not fully done." > > I suspect that something is either mechanically wrong (less likely) or somehow corrupted on ad6... > > How can I wipe ad6 so that I can now try to insert it into the new mirror? To completely wipe the drive? Try: # dd if=/dev/zero of=/dev/ad6 bs=512 That will zero out the *whole* drive, nothing will be left. You will also need to make sure you do # gmirror forget ad6 first; otherwise, I think gmirror will expect to find metadata on the drive. Read the man page carefully to make sure you are taking the steps in the right order. Good luck, ~Jason