gmirror issues (fdisk?, disklabel?, newfs?)

Fluffles etc at fluffles.net
Wed Dec 27 09:58:16 PST 2006


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



More information about the freebsd-geom mailing list