From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 6 14:27:12 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B5211065674 for ; Fri, 6 Mar 2009 14:27:12 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from exprod7og116.obsmtp.com (exprod7og116.obsmtp.com [64.18.2.219]) by mx1.freebsd.org (Postfix) with SMTP id 0C78F8FC1D for ; Fri, 6 Mar 2009 14:27:11 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from source ([209.85.198.245]) by exprod7ob116.postini.com ([64.18.6.12]) with SMTP ID DSNKSbEyv+4ZiKGdYyeh1ezn3h1TxGin9HRQ@postini.com; Fri, 06 Mar 2009 06:27:12 PST Received: by rv-out-0708.google.com with SMTP id f25so615956rvb.6 for ; Fri, 06 Mar 2009 06:27:11 -0800 (PST) Received: by 10.115.91.2 with SMTP id t2mr1539264wal.224.1236349631414; Fri, 06 Mar 2009 06:27:11 -0800 (PST) Received: from localhost ([76.231.178.131]) by mx.google.com with ESMTPS id k37sm3138417rvb.1.2009.03.06.06.27.10 (version=SSLv3 cipher=RC4-MD5); Fri, 06 Mar 2009 06:27:10 -0800 (PST) Date: Fri, 6 Mar 2009 06:26:52 -0800 (PST) From: Peter Steele To: Jilles Tjoelker Message-ID: <4159914.261236349612218.JavaMail.HALO$@halo> In-Reply-To: <20090306140850.GA62926@stack.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: How to tear down a geom mirror? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2009 14:27:12 -0000 >gmirror and various other geom modules store their metadata on the last >sector(s) of the drive, so you need to wipe that too. In our case the systems we are using aren't mirroring the whole drive, just certain slices. Some systems have a single slice mirrored (plus an unmirrored slice), and others have two slices mirrored (plus a third unmirrored slice). I need a way to destroy the existing mirrors, without doing a gmirror load, and ultimately without making any assumptions about the number or condition of mirrored slices on the drives I am about to install a new OS onto.