From owner-freebsd-questions@FreeBSD.ORG Fri Nov 4 23:52:49 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A1BE16A41F for ; Fri, 4 Nov 2005 23:52:49 +0000 (GMT) (envelope-from djh@nebcorp.com) Received: from ratchet.nebcorp.com (ratchet.nebcorp.com [205.217.153.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49C3443D48 for ; Fri, 4 Nov 2005 23:52:49 +0000 (GMT) (envelope-from djh@nebcorp.com) Received: by ratchet.nebcorp.com (Postfix, from userid 1014) id 2099AD982E; Fri, 4 Nov 2005 15:52:49 -0800 (PST) Date: Fri, 4 Nov 2005 15:52:49 -0800 From: Danny Howard To: Dave Message-ID: <20051104235249.GU18563@ratchet.nebcorp.com> References: <000301c5e197$c7d3b960$0900a8c0@satellite> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000301c5e197$c7d3b960$0900a8c0@satellite> User-Agent: Mutt/1.4.2.1i X-Loop: djhoward@uiuc.edu Cc: freebsd-questions@freebsd.org Subject: Re: gmirror clearing configuration 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, 04 Nov 2005 23:52:49 -0000 On Fri, Nov 04, 2005 at 06:30:45PM -0500, Dave wrote: > Hello, > I'm trying to set up raid1 on fbsd 5.4-RELEASE no patches yet installed > just a vanilla release box. I've messed up somewhere, the primary drive is > smaller than the secondary drive and i'm using Ralf's second procedure. My > problem is i can't clear the metadata from either the first or second drive > so i can start again, i load gmirror then issue a gmirror clear and it says > it can't clear the metadata. Any help appreciated. Dave, I have not run in to your problem, but someone did post a comment to my gmirror blog entry at http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/#comment-9276 ... here is the text: ok gmirror can do the work here is how, if you have tried and failed using various methods of gmirror, you will likely have data tagged at the end sectors of ad4 and ad6 or whatever the first the disks are in your array. before trying dannys method above, you need to clear these sectors. To do this succesfully you must be logged in as root, you cant clear the sectors on a live system so you must install a minimal instance of freebsd [if you havent already] on as least two disks on your server, then use the following command ### while booted from ad4 ### while logged in as root gmirror clear ad6 ### while booted from ad6 ### while logged in as root gmirror clear ad4 ### then you will be able to proceed with each and every step in Dannys crib, to be safe do a clean install on ad4, [this is in the crib] ### urfx HTH, -danny -- http://dannyman.toldme.com/