Date: Fri, 6 Jan 2012 03:29:09 -0500 From: Janos Dohanics <web@3dresearch.com> To: William Brown <william.e.brown@adelaide.edu.au> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Cannot create 2nd gmirror Message-ID: <20120106032909.06f6dc15.web@3dresearch.com> In-Reply-To: <5C4554AE-E967-48AF-9969-A6B6F66BBA66@adelaide.edu.au> References: <20120104043158.1982a008.web@3dresearch.com> <5C4554AE-E967-48AF-9969-A6B6F66BBA66@adelaide.edu.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 6 Jan 2012 11:55:50 +1030 William Brown <william.e.brown@adelaide.edu.au> wrote: > > > > I am trying to add a second gmirror, gm1: > > > > # sysctl kern.geom.debugflags=16 > > kern.geom.debugflags: 16 -> 16 > > > > # gmirror label -v -b round-robin gm1 /dev/ad4 > > Metadata value stored on /dev/ad4. > > Done. > > > > # gmirror insert gm1 /dev/ad6 > > gmirror: No such device: gm1. > > > > Why does gm1 fail to be created? > > > > What is the output of gmirror list after you run the gmirror label? > > Alternately, according to > http://www.freebsd.org/cgi/man.cgi?query=gmirror&apropos=0&sektion=0&manpath=FreeBSD+6.1-RELEASE&format=html > you should be able to just run > > gmirror label -v -b round-robin gm1 /dev/ad4 /dev/ad6 > gmirror rebuild gm1 /dev/ad6 > > > Sincerely, > > William Brown > > Research & Teaching, Technology Services > The University of Adelaide, AUSTRALIA 5005 gmirror list only showed gm0; it did did not show gm1, nor were there any gm1* entries in /dev/mirror. However, as soon as I have unmounted /dev/ad4s1d, /dev/ad4s1e, and /dev/ad4s1f, gm1 was "automagically" created: Jan 4 20:21:27 <0.2> isolde kernel: GEOM_MIRROR: Device mirror/gm1 launched (1/1). Jan 4 20:21:27 <0.2> isolde kernel: GEOM: mirror/gm1s1: geometry does not match label (16h,63s != 255h,63s). Jan 4 21:22:32 <0.2> isolde kernel: GEOM_MIRROR: Device gm1: rebuilding provider ad6. Don't quite understand why creating gm1 happened only after unmounting the filesystems on ad4. -- Janos Dohanics
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120106032909.06f6dc15.web>