From owner-freebsd-stable@FreeBSD.ORG Sun Jul 27 20:25:43 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BD66E667 for ; Sun, 27 Jul 2014 20:25:43 +0000 (UTC) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 386DD24A5 for ; Sun, 27 Jul 2014 20:25:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.5/8.14.5) with ESMTP id s6RKPdkJ076919; Mon, 28 Jul 2014 00:25:40 +0400 (MSK) (envelope-from marck@rinet.ru) Date: Mon, 28 Jul 2014 00:25:39 +0400 (MSK) From: Dmitry Morozovsky To: Dave Hayes Subject: Re: Gmirror + gpart corruption on 9.3-PRE In-Reply-To: <53D2E560.5090100@jetcafe.org> Message-ID: References: <53D1BDB2.7030906@jetcafe.org> <53D2E560.5090100@jetcafe.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (woozle.rinet.ru [0.0.0.0]); Mon, 28 Jul 2014 00:25:40 +0400 (MSK) Cc: Warren Block , freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jul 2014 20:25:43 -0000 On Fri, 25 Jul 2014, Dave Hayes wrote: > > > At 9.3-PRERELEASE #0 r268066M I've been trying unsucessfuly to set up > > > a brand shiny new gmirror + gpt style Raid 0 mirror using the > > > following procedure on a disk > > > > > > gpart create -s gpt ada0 > > > ( shows 931G of space) > > > gpart add -s 96G -t freebsd-swap -l swap0 ada0 > > > gpart add -t freebsd-ufs -l rw0 ada0 > > > gpart create -s gpt ada1 > > > gpart add -s 96G -t freebsd-swap -l swap1 ada1 > > > gpart add -t freebsd-ufs -l rw1 ada1 > > > gmirror label swap /dev/ada0p1 /dev/ada1p1 > > > gmirror label rw /dev/ada0p2 /dev/ada1p2 > > I need to be clearer. Above is the point at which the corrupt table message is > encountered. I believe the above is the equivalent of your method, and hence > your method may not work on 9.3-PRE and above. If you happen to be able to > test this, I'd be curious as to the results. > > I'm going to try gmirroring the entire disk and and using BSD labels for > separate partitions. I think this will have the effect I want, and it's worth > a test. ... or, possibly better, you could mark both your disks with gpart partitioning (maybe using -a1m to both align partitions and make them let some free gap at the end of disks), and then just gmirror partitions, as you did before. Or, did I miss something? -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------