From owner-freebsd-questions@FreeBSD.ORG Sat Nov 5 22:57:18 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 ACA6816A41F for ; Sat, 5 Nov 2005 22:57:18 +0000 (GMT) (envelope-from gayn.winters@bristolsystems.com) Received: from bristolsystems.com (h-68-167-239-98.lsanca54.covad.net [68.167.239.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 415E443D4C for ; Sat, 5 Nov 2005 22:57:18 +0000 (GMT) (envelope-from gayn.winters@bristolsystems.com) Received: from workdog ([192.168.1.201]) by bristolsystems.com (8.11.6/8.11.6) with ESMTP id jA5MvHn03538; Sat, 5 Nov 2005 14:57:17 -0800 From: "Gayn Winters" To: "'Dave'" , Date: Sat, 5 Nov 2005 14:57:07 -0800 Message-ID: <012001c5e25c$42a7d0d0$c901a8c0@workdog> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: <000301c5e197$c7d3b960$0900a8c0@satellite> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal Cc: Subject: RE: gmirror clearing configuration X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gayn.winters@bristolsystems.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Nov 2005 22:57:18 -0000 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Dave > Sent: Friday, November 04, 2005 3:31 PM > To: freebsd-questions@freebsd.org > Subject: gmirror clearing configuration > > > 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. > Thanks. > Dave. > I'm sure others have more gmirror experience than I do, but maybe this will help... The metadata is stored in the last sector of the logical disk. Zap both physical disks with dd if=/dev/zero of=... skip=n-1 count=1 bs=512b where n is the number of sectors. After you do this you'll of course need to rebuild the mirror. Backup and be careful!!! You can also do this with the gmirror utilities by removing one drive from the mirror, then undoing the mirror and the remaining drive (which zeroes the last sector) and then rebuilding. When I tried this once, I had a little trouble with the fact that the removed drive still had the metadata on its last sector. I think I had to zap its last sector prior to adding it back into the mirror. -gayn Bristol Systems Inc. 714/532-6776 www.bristolsystems.com