From owner-freebsd-stable@FreeBSD.ORG Wed Apr 27 22:15:56 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 9D42B1065676 for ; Wed, 27 Apr 2011 22:15:56 +0000 (UTC) (envelope-from cliftonr@oz.volcano.org) Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.122]) by mx1.freebsd.org (Postfix) with ESMTP id 59A6B8FC17 for ; Wed, 27 Apr 2011 22:15:55 +0000 (UTC) X-Authority-Analysis: v=1.1 cv=pN6kzQkhXdmdOr6Akjoh3kGBD/S3UyPMKQp53EJY+ro= c=1 sm=0 a=z1TLwsU0kBEA:10 a=NlqD0-V7MGoA:10 a=TgPToyY2OQsA:10 a=kj9zAlcOel0A:10 a=G5OLwwqwWgs+1dCEPNHTSw==:17 a=jb__rZ8GAAAA:8 a=GjEiR67sAAAA:8 a=bG_-vTu0E_V4jIW5eU8A:9 a=39GXB5GJEL7xEDFP7BAA:7 a=CjuIK1q_8ugA:10 a=sHp_62vNEjwA:10 a=Ke08FT2oSu0A:10 a=G5OLwwqwWgs+1dCEPNHTSw==:117 X-Cloudmark-Score: 0 X-Originating-IP: 75.80.196.236 Received: from [75.80.196.236] ([75.80.196.236:47438] helo=oz.volcano.org) by hrndva-oedge04.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id 2E/19-28036-A9598BD4; Wed, 27 Apr 2011 22:15:55 +0000 Received: by oz.volcano.org (Postfix, from userid 1001) id 633005082A; Wed, 27 Apr 2011 12:15:54 -1000 (HST) Date: Wed, 27 Apr 2011 12:15:54 -1000 From: Clifton Royston To: Helmut Schneider Message-ID: <20110427221554.GB22139@lava.net> Mail-Followup-To: Helmut Schneider , freebsd-stable@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i 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:15:56 -0000 On Wed, Apr 27, 2011 at 07:35:22PM +0000, Helmut Schneider wrote: > Michael Proto wrote: ... > > gmirror label -v -n -b round-robin gm0p1 /dev/ad4p1 > > newfs -U -b 32768 -f 4096 -S 4096 /dev/mirror/gm0p1 > > > > gmirror label -v -n -b round-robin gm0p2 /dev/ad4p2 > > newfs -U -b 32768 -f 4096 -S 4096 /dev/mirror/gm0p2 > > > > (then I mount /dev/mirror/gm0p1 and /dev/mirror/gm0p2 and copy data > > from my original array to this new array) > > > > Finally I insert the ad6 disk and wait for the array to sync: > > > > gmirror configure -a gm0p1 > > gmirror insert gm0p1 /dev/ad6p1 > > > > gmirror configure -a gm0p2 > > gmirror insert gm0p2 /dev/ad6p2 .... > > > > GEOM: ad4: the primary GPT table is corrupt or invalid. > > GEOM: ad4: using the secondary instead -- recovery strongly advised. > > > > 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. He is mirroring only the partitions - reread above: gmirror label -v -n -b round-robin gm0p1 /dev/ad4p1 etc. I don't know; it looks correct to me, but I may be missing something as I don't currently use gpart. -- Clifton -- Clifton Royston -- cliftonr@iandicomputing.com / cliftonr@volcano.org President - I and I Computing * http://www.iandicomputing.com/ Custom programming, network design, systems and network consulting services