From owner-freebsd-fs@FreeBSD.ORG Sat Nov 14 17:21:11 2009 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 1B3B91065692 for ; Sat, 14 Nov 2009 17:21:11 +0000 (UTC) (envelope-from hugo@barafranca.com) Received: from mail.barafranca.com (mail.barafranca.com [67.213.67.47]) by mx1.freebsd.org (Postfix) with ESMTP id E46348FC08 for ; Sat, 14 Nov 2009 17:21:10 +0000 (UTC) Received: from localhost (unknown [172.16.100.24]) by mail.barafranca.com (Postfix) with ESMTP id F1E359D7; Sat, 14 Nov 2009 17:04:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at barafranca.com Received: from mail.barafranca.com ([172.16.100.24]) by localhost (mail.barafranca.com [172.16.100.24]) (amavisd-new, port 10024) with ESMTP id da5jDFIkedsd; Sat, 14 Nov 2009 17:03:53 +0000 (UTC) Received: from [192.168.10.4] (unknown [81.193.1.26]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.barafranca.com (Postfix) with ESMTPSA id 838BE9C6; Sat, 14 Nov 2009 17:03:52 +0000 (UTC) Message-ID: <4AFEE2F2.6000609@barafranca.com> Date: Sat, 14 Nov 2009 17:03:46 +0000 From: Hugo Silva User-Agent: Thunderbird 2.0.0.23 (X11/20091030) MIME-Version: 1.0 To: Lorenzo Perone References: <1A8F306A-8749-471B-94EA-FC8435A30C34@yellowspace.net> In-Reply-To: <1A8F306A-8749-471B-94EA-FC8435A30C34@yellowspace.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org Subject: Re: gmirroring slices 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, 14 Nov 2009 17:21:11 -0000 Lorenzo Perone wrote: > > Hello, > > I was wondering if anyone could give me an advice on how viable and > reliable it is, to use gmirror on a slice of an MBR-style partitioned > disk, and use the second slice(s) within a zpool. > > I remember a discussion here on where metadata is kept (always at the > end of the disk as opposed to the end of the given consumer?), so I > wasn't sure about how much of a good idea this might be. The reason > I'd like to have it like this is, that I had mixed bad experiences in > the effort of using ZFS as a boot and root volume, so I'd rather keep > a traditional slice for booting/rooting, and a zpool for the > production jails on that machine. > > The example would be > > provider: mirror/gm0 > consumers: ad6s1 and ad8s1 > > zpool mirror made out of > ad6s2 and ad8s2 > > while experimenting, I got into the problem that gmirror label -v -b > round-robin gm0 ad6s1 got a permission denied (even with sysctl > kern.geom.debugflags=16/17). Any hints on what can cause this (I might > have screwed up something with fdisk/bsdlabel, but after > doublechecking I wonder what it could be..) > > Is a GPT partition table better for this (I got further with another > machine by using GPT partitions)? > > Thanx for any advice. > > Regards, > Lorenzo > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" I setup an 8.0-RC3 server the other day just like this: Name Status Components mirror/gm0s1 COMPLETE ad4s1 ad6s1 pool: storage state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM storage ONLINE 0 0 0 mirror ONLINE 0 0 0 ad4s2 ONLINE 0 0 0 ad6s2 ONLINE 0 0 0 errors: No known data errors I would like to try setting this up with gpart too, but I had to get this server running asap and I knew I could make it work like this.