Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Apr 2011 15:30:40 -0700
From:      Freddie Cash <fjwcash@gmail.com>
To:        Helmut Schneider <jumper99@gmx.de>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: correct way to setup gmirror on 7.4?
Message-ID:  <BANLkTikDjPLijvWrpK4y48fp5q6c2LnpqA@mail.gmail.com>
In-Reply-To: <20110427221554.GB22139@lava.net>
References:  <BANLkTimCFcw_Oyp9RmBhfCZ9-QORUQEwfA@mail.gmail.com> <xn0hddht75xo97q00a@news.gmane.org> <20110427221554.GB22139@lava.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 27, 2011 at 3:15 PM, Clifton Royston <cliftonr@lava.net> wrote:
> =C2=A0I don't know; it looks correct to me, but I may be missing somethin=
g
> as I don't currently use gpart.

gmirror (well, really, any GEOM) doesn't play well with GPT due to the
way they store their metadata.

gmirror doesn't touch the start of the disk, but saves it's metadata
in the last sector of the disk, and creates a new GEOM provider that's
one sector shorter.

GPT stores it's partition table in the first sector of the disk, and
saves a backup copy of it in the last sector of the disk.

Depending on the order you do things, gmirror can overwrite the
secondary GPT table.  Or, if you mirror the disk and then gpart the
mirror, gpt will complain that the secondary table is not in the last
sector of the disk (due to the order that GEOM tastes things as gpt
goes first).

I've tried to document it here.  Let me know if there's anything incorrect.
https://forums.freebsd.org/showthread.php?t=3D22125


--=20
Freddie Cash
fjwcash@gmail.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTikDjPLijvWrpK4y48fp5q6c2LnpqA>