From owner-freebsd-fs@FreeBSD.ORG Sat Jun 25 18:04:42 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9CEE91065677 for ; Sat, 25 Jun 2011 18:04:42 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 59FBF8FC0C for ; Sat, 25 Jun 2011 18:04:42 +0000 (UTC) Received: from outgoing.leidinger.net (p4FC46A03.dip.t-dialin.net [79.196.106.3]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id D303484400D; Sat, 25 Jun 2011 20:04:27 +0200 (CEST) Received: from unknown (unknown [192.168.1.5]) by outgoing.leidinger.net (Postfix) with ESMTP id 1BD272CEF; Sat, 25 Jun 2011 20:04:25 +0200 (CEST) Date: Sat, 25 Jun 2011 20:04:24 +0200 From: Alexander Leidinger To: Troy Drake Message-ID: <20110625200424.0000374c@unknown> In-Reply-To: References: X-Mailer: Claws Mail 3.7.8cvs47 (GTK+ 2.16.6; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: D303484400D.AF905 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-0.923, required 6, autolearn=disabled, ALL_TRUSTED -1.00, TW_ZF 0.08) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1309629869.27489@AjjO5tbg18HJBICLPoZcnA X-EBL-Spam-Status: No Cc: freebsd-fs@freebsd.org Subject: Re: GEOM: the primary GPT table is corrupt or invalid after RAIDZ creation X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jun 2011 18:04:42 -0000 On Sat, 25 Jun 2011 09:01:22 -0500 Troy Drake wrote: > I have recently setup a new file server with 5x 2TB Samsung 4K sector > drives in a RAIDZ array and after going through the steps of creating > GPT partitions to set the alignment a 1 MB aligned sector (block 2048) > and gnop to force 4k sectors and finally a RAIDZ array, I receive the > following warning: > > GEOM: ad6: the primary GPT table is corrupt or invalid. > GEOM: ad6: using the secondary instead -- recovery strongly advised. > (Snipped, but applies to ad8, ad10, ad12, ad14 identically). > > The steps I used to setup this array are as follows: > gpart create -s GPT ad6 (and to all others) Here you create the GPT on ad6 (harddisk). > gpart add -t freebsd-zfs -b 2048 ad6 (and to all others) Here you create a partition on the harddisk. > gnop create -S 4086 ad6 Here you tell to create a 4k-sector pseudo-drive of the entire harddisk (instead of the partition). > zpool create raidz tank ad6.nop ad8 ad10 ad12 ad14 Here you create a pool on the complete harddisks, not on the zfs partition you created above. This should also destroy the GPT. I suggest you have a look at http://www.leidinger.net/blog/2011/05/03/another-root-on-zfs-howto-optimized-for-4k-sector-drives/ there you can see how to do what I think you wanted to do. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137