From owner-freebsd-geom@FreeBSD.ORG Sun Mar 12 09:19:16 2006 Return-Path: X-Original-To: geom@freebsd.org Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F8C416AC80 for ; Sun, 12 Mar 2006 09:19:16 +0000 (GMT) (envelope-from paul@gromit.dlib.vt.edu) Received: from gromit.dlib.vt.edu (gromit.dlib.vt.edu [128.173.49.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC91E464C4 for ; Sun, 12 Mar 2006 08:30:48 +0000 (GMT) (envelope-from paul@gromit.dlib.vt.edu) Received: from zappa.Chelsea-Ct.Org (pool-71-254-34-44.roa.east.verizon.net [71.254.34.44]) by gromit.dlib.vt.edu (8.13.4/8.13.4) with ESMTP id k2C8UkcC082374 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 12 Mar 2006 03:30:47 -0500 (EST) (envelope-from paul@gromit.dlib.vt.edu) Received: from zappa.Chelsea-Ct.Org (localhost.Chelsea-Ct.Org [127.0.0.1]) by zappa.Chelsea-Ct.Org (8.13.4/8.13.4) with ESMTP id k2C8UeHV096673 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 12 Mar 2006 03:30:41 -0500 (EST) (envelope-from paul@gromit.dlib.vt.edu) Received: (from paul@localhost) by zappa.Chelsea-Ct.Org (8.13.4/8.13.4/Submit) id k2C8UeKt096672; Sun, 12 Mar 2006 03:30:40 -0500 (EST) (envelope-from paul@gromit.dlib.vt.edu) From: Paul Mather To: Rong-En Fan In-Reply-To: <6eb82e0603111807l7c9813c8jb3ffbc4cec8e5b57@mail.gmail.com> References: <6eb82e0603111807l7c9813c8jb3ffbc4cec8e5b57@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 12 Mar 2006 03:30:40 -0500 Message-Id: <1142152240.91799.10.camel@zappa.Chelsea-Ct.Org> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 FreeBSD GNOME Team Port Cc: geom@freebsd.org Subject: Re: change gmirror's provider from whole disk to slice X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Mar 2006 09:19:16 -0000 On Sat, 2006-03-11 at 21:07 -0500, Rong-En Fan wrote: > Hi, > > Followed by the tutorial available from http://people.freebsd.org/~rse/ > I have created a mirrored system disk by using the whole disk > (e.g., ad0). But now I want to use the second method mentioned in > the url above, i.e., using a slice as provider (say ad0s1). My question > is how to revert the process? After that, I can following the second > method in rse@'s tutorial. It should be pretty straightforward. The first step would be to remove one of the providers (disks) from your existing mirror, e.g.: gmirror remove gm0 ad1 or similar, where gm0 is your mirror device and ad1 (da1, etc.) is the disk you want to remove. That will leave you with a "mirror" consisting of just one disk, along with a spare "unused" disk you can then use to make a new mirror following the second method in rse@'s tutorial. You might need to add a "gmirror stop" before the "# make sure the first disk is treated as a really fresh one" step later on, as I don't know if the system will like you to dd onto an underlying provider of an open gmirror. I used a technique similar to this to convert my all-mirrored gvinum setup to a gmirror in-place. The ability of gmirror to create a one-disk mirror is very handy for this kind of rearrangement! Cheers, Paul. -- e-mail: paul@gromit.dlib.vt.edu "Without music to decorate it, time is just a bunch of boring production deadlines or dates by which bills must be paid." --- Frank Vincent Zappa