Date: Wed, 27 Apr 2011 12:15:54 -1000 From: Clifton Royston <cliftonr@lava.net> To: Helmut Schneider <jumper99@gmx.de> Cc: freebsd-stable@freebsd.org Subject: Re: correct way to setup gmirror on 7.4? Message-ID: <20110427221554.GB22139@lava.net> In-Reply-To: <xn0hddht75xo97q00a@news.gmane.org> References: <BANLkTimCFcw_Oyp9RmBhfCZ9-QORUQEwfA@mail.gmail.com> <xn0hddht75xo97q00a@news.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 27, 2011 at 07:35:22PM +0000, Helmut Schneider wrote:
> Michael Proto wrote:
...
> > gmirror label -v -n -b round-robin gm0p1 /dev/ad4p1
> > newfs -U -b 32768 -f 4096 -S 4096 /dev/mirror/gm0p1
> >
> > gmirror label -v -n -b round-robin gm0p2 /dev/ad4p2
> > newfs -U -b 32768 -f 4096 -S 4096 /dev/mirror/gm0p2
> >
> > (then I mount /dev/mirror/gm0p1 and /dev/mirror/gm0p2 and copy data
> > from my original array to this new array)
> >
> > Finally I insert the ad6 disk and wait for the array to sync:
> >
> > gmirror configure -a gm0p1
> > gmirror insert gm0p1 /dev/ad6p1
> >
> > gmirror configure -a gm0p2
> > gmirror insert gm0p2 /dev/ad6p2
....
> >
> > GEOM: ad4: the primary GPT table is corrupt or invalid.
> > GEOM: ad4: using the secondary instead -- recovery strongly advised.
> >
> > Am I using the correct process to create this array?
>
> No. While this works with MBR it fails with GPT as GPT and GEOM both
> want to use the last sector of the disk.
>
> First create the mirror and after that gpart it. It will create a
> message like
>
> GEOM: da0: the secondary GPT header is not in the last LBA.
> GEOM: da1: the secondary GPT header is not in the last LBA.
>
> which afaik is ignorable. At least it works fine here and I didn't find
> any caveats in the net.
>
> Another workaround is not to mirror the disk but only slices or
> partitions.
He is mirroring only the partitions - reread above:
gmirror label -v -n -b round-robin gm0p1 /dev/ad4p1
etc.
I don't know; it looks correct to me, but I may be missing something
as I don't currently use gpart.
-- Clifton
--
Clifton Royston -- cliftonr@iandicomputing.com / cliftonr@volcano.org
President - I and I Computing * http://www.iandicomputing.com/
Custom programming, network design, systems and network consulting services
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110427221554.GB22139>
