From owner-freebsd-stable@FreeBSD.ORG Wed Apr 27 22:30:41 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCAF7106564A for ; Wed, 27 Apr 2011 22:30:41 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-gx0-f172.google.com (mail-gx0-f172.google.com [209.85.161.172]) by mx1.freebsd.org (Postfix) with ESMTP id 94BC38FC17 for ; Wed, 27 Apr 2011 22:30:41 +0000 (UTC) Received: by gxk19 with SMTP id 19so1111181gxk.17 for ; Wed, 27 Apr 2011 15:30:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=SJm9nC0sAAH0MjrMoNAdNoHKzPP1zglTjgq3FHw9UQM=; b=mY/nqiPlkgdKOhaQfpUU7rCdkUan5iU9bFeYvhhQXOdWIz8PTQHqp7lxHRaZtsZdGn wTcVrUuytQ8CfR5mXsHJcATbvTCL3RQgnUITP4KwFNhyN3Zgq7BgobVIteioYFxPFKNE GC+Bn2clmnp6FyGmNDpzxQNLiAqyw1wQAeHdc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Qf27U0IuH/2l7r7fZ0pObpPtQCSjuf38acGTNYQINm1wB8Ma0WmLEnpq2gm6v3HVgM 3SBR5bx2VPETeygDhMDLaskQDj35e8PZAVVlq6Ke31qLLI7bRxdhYvuxn5p+pqsa+h9v u0PXThN7c8IrhfsIN5Xm3e+13d2TjWTVPU8QA= MIME-Version: 1.0 Received: by 10.91.76.4 with SMTP id d4mr2485531agl.42.1303943440726; Wed, 27 Apr 2011 15:30:40 -0700 (PDT) Received: by 10.90.70.18 with HTTP; Wed, 27 Apr 2011 15:30:40 -0700 (PDT) In-Reply-To: <20110427221554.GB22139@lava.net> References: <20110427221554.GB22139@lava.net> Date: Wed, 27 Apr 2011 15:30:40 -0700 Message-ID: From: Freddie Cash To: Helmut Schneider Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-stable@freebsd.org Subject: Re: correct way to setup gmirror on 7.4? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2011 22:30:41 -0000 On Wed, Apr 27, 2011 at 3:15 PM, Clifton Royston 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