From owner-freebsd-geom@FreeBSD.ORG Tue Jan 9 13:24:05 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 6B66116A415 for ; Tue, 9 Jan 2007 13:24:05 +0000 (UTC) (envelope-from fernan.aguero@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.239]) by mx1.freebsd.org (Postfix) with ESMTP id 2C8C313C468 for ; Tue, 9 Jan 2007 13:24:05 +0000 (UTC) (envelope-from fernan.aguero@gmail.com) Received: by nz-out-0506.google.com with SMTP id i11so3887872nzh for ; Tue, 09 Jan 2007 05:24:04 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GijVPiG6dGr2PBe4ZG6UceU2FULXZUYEJTykZXHd5VFTO1WtOG0yQ+rKxgX1uGytgOzfIJJzuJepq24IVji9wQT4/nXbWJrBScN0NY9OVi3musiQS3A/hKAJbjUI2c/02PGvf3Rm+z4aM9YE8IZCXcLsDlHzpX25eRoBK4GOmlc= Received: by 10.35.10.17 with SMTP id n17mr31282254pyi.1168349044713; Tue, 09 Jan 2007 05:24:04 -0800 (PST) Received: by 10.35.16.1 with HTTP; Tue, 9 Jan 2007 05:24:04 -0800 (PST) Message-ID: <520894aa0701090524t217a36ecje1cf7b40d8a2a7e0@mail.gmail.com> Date: Tue, 9 Jan 2007 10:24:04 -0300 From: "Fernan Aguero" To: "Pawel Jakub Dawidek" In-Reply-To: <20070109083846.GA62430@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <520894aa0701081445i43d76098m418ce695d2133e53@mail.gmail.com> <20070109001437.GC97624@in-addr.com> <520894aa0701081813x3925b7f1r278785bb01f4232@mail.gmail.com> <20070109083846.GA62430@garage.freebsd.pl> 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 13:24:05 -0000 On 1/9/07, Pawel Jakub Dawidek wrote: > On Mon, Jan 08, 2007 at 11:13:15PM -0300, Fernan Aguero wrote: > > On 1/8/07, Gary Palmer wrote: > > >On Mon, Jan 08, 2007 at 07:45:06PM -0300, Fernan Aguero wrote: > > > > [snipped] > > > > >> 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. > > > > [snipped] > > > > >Any reason that "gstripe clear" or "gmirror clear" doesn't work? Thats what > > >they're meant to do, as far as I know. > > > > because ad4s3 is no longer part of gm0? > > You get "Operation not permitted." because someone already keep ad4s3 > open for writing. Could you send output of 'sysctl -b kern.geom.confxml' > so we can find out who? http://omega.iib.unsam.edu.ar/kern.geom.confxml The parts that mention ad4s3 are: ad4s3 3 r0w0e0 which refers to this provider: ad4 2 r2w2e3 r0w0e0 ad4s3 96636266496 512 2 96636266496 188742708 75159189504 146795292 165 r1w1e1 ad4s2 75159157248 512 1 75159157248 146795229 8587224576 16771923 165 r1w1e1 ad4s1 8586772992 512 0 8586772992 16771041 32256 63 165 Which to my geom-naive brain seems like the description of how my ad4 disk is set up ... but what does mode r0w0e0 imply ... I couldn't find where these modes are described (nor geom(8) nor geom(4) talk about them) ... does it mean read=0 write=0 execute=0 as my naive brain guesses? If so, maybe I could change it to something that would allow me to write to ad4s3? And also, why does the GEOM config contain information for devices that are not managed by geom? My da0 and swap devices (ad4s1b, ad6s1b) are not geom based ... Thanks for your help, Fernan -- Fernan Aguero