From owner-freebsd-current@FreeBSD.ORG Sun Jun 14 05:23:36 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E653B1065670 for ; Sun, 14 Jun 2009 05:23:36 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout013.mac.com (asmtpout013.mac.com [17.148.16.88]) by mx1.freebsd.org (Postfix) with ESMTP id D1C3F8FC08 for ; Sun, 14 Jun 2009 05:23:36 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from MacBook-Pro.lan.xcllnt.net (mail.xcllnt.net [75.101.29.67]) by asmtp013.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KL700HS5QZ64S70@asmtp013.mac.com> for freebsd-current@freebsd.org; Sat, 13 Jun 2009 22:23:36 -0700 (PDT) Message-id: From: Marcel Moolenaar To: "James R. Van Artsdalen" In-reply-to: <4A344C67.8000101@jrv.org> Date: Sat, 13 Jun 2009 22:23:29 -0700 References: <4A344A9F.5020708@jrv.org> <4A344C67.8000101@jrv.org> X-Mailer: Apple Mail (2.935.3) Cc: Alexander Best , FreeBSD Current Subject: Re: `gpart show` and secondary GPT header X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jun 2009 05:23:37 -0000 On Jun 13, 2009, at 6:03 PM, James R. Van Artsdalen wrote: > Marcel Moolenaar wrote: >> >> On Jun 13, 2009, at 5:55 PM, James R. Van Artsdalen wrote: >> >> >>> Jun 13 06:31:42 bigback kernel: GEOM: ad4: the secondary GPT table >>> is >>> corrupt or invalid. >>> Jun 13 06:31:42 bigback kernel: GEOM: ad4: using the primary only -- >>> recovery suggested. >>> Jun 13 06:31:42 bigback kernel: GEOM: ad12: the secondary GPT >>> table is >>> corrupt or invalid. >>> Jun 13 06:31:42 bigback kernel: GEOM: ad12: using the primary only >>> -- >>> recovery suggested. >> >> Are you using gmirror by any chance? > > Partitions 2-6 use gmirror. Ok. Unrelated then. When gmirror is used on the whole disk, then it's possible that you get this error. The problem is that there's no guarantee that gpart tastes always before or always after gmirror. If you put gpart on top of gmirror, then gpart sees a disk that's 1 sector smaller than the disk gmirror sees. If gpart gets to taste before gmirror, it won't find the backup header in the last sector, because it's where gmirror puts its metadata. Mirroring partitions does not have this problem... -- Marcel Moolenaar xcllnt@mac.com