From owner-freebsd-geom@FreeBSD.ORG Tue Jan 9 00:25:01 2007 Return-Path: X-Original-To: geom@freebsd.org Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D4E9D16A403 for ; Tue, 9 Jan 2007 00:25:01 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from noop.in-addr.com (noop.in-addr.com [208.58.23.51]) by mx1.freebsd.org (Postfix) with ESMTP id 9908A13C442 for ; Tue, 9 Jan 2007 00:25:01 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from gjp by noop.in-addr.com with local (Exim 4.54 (FreeBSD)) id 1H44dR-000MF9-Vh; Mon, 08 Jan 2007 19:14:37 -0500 Date: Mon, 8 Jan 2007 19:14:37 -0500 From: Gary Palmer To: Fernan Aguero Message-ID: <20070109001437.GC97624@in-addr.com> Mail-Followup-To: Fernan Aguero , geom@freebsd.org References: <520894aa0701081445i43d76098m418ce695d2133e53@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <520894aa0701081445i43d76098m418ce695d2133e53@mail.gmail.com> Cc: geom@freebsd.org Subject: Re: clear metadata using dd? 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: Tue, 09 Jan 2007 00:25:01 -0000 On Mon, Jan 08, 2007 at 07:45:06PM -0300, Fernan Aguero wrote: > Hi > > I'm trying to set up two disks to contain both gmirrored and gstriped > slices. > > This is what I'm trying to achieve: > adxs1, swap > adxs2, gmirror > adxs3, gstripe > > I already got the first and second slices set up (swap and gmirror > containing > the active, root partition), but I cannot seem to be able to set up s3 into > a > gstripped device. > > gama# gstripe label -v gs0 /dev/ad4s3 /dev/ad6s3 > Can't store metadata on /dev/ad4s3: Operation not permitted. > > This might be because ad4s3 had been part of a gmirror device before I > reorganized my disks and moved the mirror to the s2 slice. > > Gayn Winters suggested that: > "The geom metadata is stored in the last block of the slice. Zero it as > well and you can have a clean start." > http://lists.freebsd.org/pipermail/freebsd-questions/2006-May/120950.html > > But now I wonder what is the magic incantation to run dd for targeting the > last > (sector?) of ad4s3? Any reason that "gstripe clear" or "gmirror clear" doesn't work? Thats what they're meant to do, as far as I know.