From owner-freebsd-geom@FreeBSD.ORG Wed Dec 27 17:58:32 2006 Return-Path: X-Original-To: freebsd-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 B090316A40F for ; Wed, 27 Dec 2006 17:58:32 +0000 (UTC) (envelope-from fernan.aguero@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.226]) by mx1.freebsd.org (Postfix) with ESMTP id 7403B13C47C for ; Wed, 27 Dec 2006 17:58:32 +0000 (UTC) (envelope-from fernan.aguero@gmail.com) Received: by nz-out-0506.google.com with SMTP id i11so1844257nzh for ; Wed, 27 Dec 2006 09:58:29 -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=lzk8Fx/yMgIvgOKcwz47fT3+XfiVrWakTMjT++666wjJCY5uWOkAP5jGagRiwSR3Ox8oVwlXax4quAldlGJ8CAyd4cE/mywThGNxcTEr4I2xbBAft/xhb/iVnDj3mA3VlbLwU6kh7Fc3ImSwGmFyYc/jl30NG0qSToaXn2dWct0= Received: by 10.35.54.1 with SMTP id g1mr27015309pyk.1167242309372; Wed, 27 Dec 2006 09:58:29 -0800 (PST) Received: by 10.35.51.11 with HTTP; Wed, 27 Dec 2006 09:58:28 -0800 (PST) Message-ID: <520894aa0612270958g5eecb6aetad8c0a4f8decd207@mail.gmail.com> Date: Wed, 27 Dec 2006 14:58:28 -0300 From: "Fernan Aguero" To: Fluffles In-Reply-To: <4592AA91.5080105@fluffles.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <520894aa0612270846s89a58cdh4b2bacfe92f75dff@mail.gmail.com> <4592AA91.5080105@fluffles.net> Cc: freebsd-geom@freebsd.org Subject: Re: gmirror issues (fdisk?, disklabel?, newfs?) 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: Wed, 27 Dec 2006 17:58:32 -0000 On 12/27/06, Fluffles wrote: > Fernan Aguero wrote: > > gmirror label -n -v -b round-robin gm0s3 /dev/ad6s3 => SUCCESS > > Metadata value stored on /dev/ad6s3 > > Done. > > gmirror load => SUCCESS > > > > Next I try to create partitions on the newly created gm0s3: > > > > bsdlabel -w -B /dev/mirror/gm0s3 => FAIL > > bsdlabel: write /dev/mirror/gm0s3: Operation not permitted > > > > Why is this failing? > > Because the GEOM device is 'in use' by gmirror; you have labeled it and > it's probably configured then; no direct write access to the geom device > is possible then unless you play with debugvars. I suggest you label > (install bootblock etc) before you give a "gmirror label" command. Veronica, thanks for the help. I just did all of fdisk+disklabel+newfs/tunefs before creating (labeling) and activating the mirror and it worked fine! Actually now that I think about it, what you say sounds pretty reasonable, but none of the articles I read mention anything about being unable to label or partition after loading (activating) the gmirror. In fact, they all activate gmirror before either bsdlabel/newfs or even before fdisk: http://people.freebsd.org/~rse/mirror/ (see second example to mirror slices) http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-mirror.html I have just but guess that none of the examples in those articles can be reproduced :| Thanks again, Fernan > Make > sure gmirror is unloaded, too, because if it's loaded it will look for > the last sector on all geom providers for stored metadata; and configure > a mirror device automatically thus denying you any direct write access > to the device. > > - Veronica > -- Fernan Aguero