Date: Wed, 27 Dec 2006 14:58:28 -0300 From: "Fernan Aguero" <fernan.aguero@gmail.com> To: Fluffles <etc@fluffles.net> Cc: freebsd-geom@freebsd.org Subject: Re: gmirror issues (fdisk?, disklabel?, newfs?) Message-ID: <520894aa0612270958g5eecb6aetad8c0a4f8decd207@mail.gmail.com> In-Reply-To: <4592AA91.5080105@fluffles.net> References: <520894aa0612270846s89a58cdh4b2bacfe92f75dff@mail.gmail.com> <4592AA91.5080105@fluffles.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 12/27/06, Fluffles <etc@fluffles.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?520894aa0612270958g5eecb6aetad8c0a4f8decd207>