From owner-freebsd-stable@FreeBSD.ORG Wed Apr 27 19:49:13 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 5EB46106564A for ; Wed, 27 Apr 2011 19:49:13 +0000 (UTC) (envelope-from mike@jellydonut.org) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 02F538FC13 for ; Wed, 27 Apr 2011 19:49:12 +0000 (UTC) Received: by ewy1 with SMTP id 1so820820ewy.13 for ; Wed, 27 Apr 2011 12:49:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.113.129 with SMTP id a1mr1190098ebq.44.1303933751699; Wed, 27 Apr 2011 12:49:11 -0700 (PDT) Received: by 10.213.10.131 with HTTP; Wed, 27 Apr 2011 12:49:11 -0700 (PDT) In-Reply-To: References: Date: Wed, 27 Apr 2011 15:49:11 -0400 Message-ID: From: Michael Proto To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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 19:49:13 -0000 On Wed, Apr 27, 2011 at 3:35 PM, Helmut Schneider wrote: > Michael Proto wrote: >> 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. > > HTH, Helmut > Thank you for the advice and direction, but I'm still a bit confused. In my setup I am mirroring only partitions, creating partitions ad4p1, ad6p1, ad4p2 and ad6p2 with gpart first, and then mirrors gm0p1 and gm0p2 on top of those. I'd prefer not to mirror the whole disk. The "primary GPT table is corrupt or invalid" error I'm seeing is with this configuration. Or perhaps I'm misunderstanding what you're saying. -Proto