From owner-freebsd-geom@FreeBSD.ORG Wed Dec 27 17:58:16 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 C3E9716A40F for ; Wed, 27 Dec 2006 17:58:16 +0000 (UTC) (envelope-from etc@fluffles.net) Received: from auriate.fluffles.net (cust.95.160.adsl.cistron.nl [195.64.95.160]) by mx1.freebsd.org (Postfix) with ESMTP id 7F72713C47A for ; Wed, 27 Dec 2006 17:58:16 +0000 (UTC) (envelope-from etc@fluffles.net) Received: from destiny ([10.0.0.21]) by auriate.fluffles.net with esmtpa (Exim 4.63 (FreeBSD)) (envelope-from ) id 1GzcOt-000NmM-Nc for freebsd-geom@freebsd.org; Wed, 27 Dec 2006 18:17:11 +0100 Message-ID: <4592AAA9.70008@fluffles.net> Date: Wed, 27 Dec 2006 18:17:29 +0100 From: Fluffles User-Agent: Thunderbird 1.5.0.8 (X11/20061114) MIME-Version: 1.0 To: freebsd-geom@freebsd.org References: <520894aa0612270846s89a58cdh4b2bacfe92f75dff@mail.gmail.com> In-Reply-To: <520894aa0612270846s89a58cdh4b2bacfe92f75dff@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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:16 -0000 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. 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