From owner-freebsd-stable@FreeBSD.ORG Wed Oct 25 11:48:38 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB85E16A416 for ; Wed, 25 Oct 2006 11:48:38 +0000 (UTC) (envelope-from tom@tomjudge.com) Received: from s200aog10.obsmtp.com (s200aog10.obsmtp.com [207.126.144.124]) by mx1.FreeBSD.org (Postfix) with SMTP id B47CB43DBD for ; Wed, 25 Oct 2006 11:48:36 +0000 (GMT) (envelope-from tom@tomjudge.com) Received: from source ([63.174.175.251]) by eu1sys200aob010.postini.com ([207.126.147.11]) with SMTP; Wed, 25 Oct 2006 11:48:34 UTC Received: from [0.0.0.0] (unknown [10.0.0.37]) by bbbx3.usdmm.com (Postfix) with ESMTP id 03E3D5C5A; Wed, 25 Oct 2006 06:48:33 -0500 (CDT) Message-ID: <453F4CC9.6020109@tomjudge.com> Date: Wed, 25 Oct 2006 12:38:49 +0100 From: Tom Judge User-Agent: Thunderbird 1.5.0.7 (X11/20060922) MIME-Version: 1.0 To: Guido van Rooij References: <20061025100759.GA50625@gvr.gvr.org> <453F3752.5040207@tomjudge.com> <20061025103613.GA50937@gvr.gvr.org> <453F3DB1.4020309@tomjudge.com> <20061025114509.GA51798@gvr.gvr.org> In-Reply-To: <20061025114509.GA51798@gvr.gvr.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: Gmirror question 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, 25 Oct 2006 11:48:39 -0000 Guido van Rooij wrote: > On Wed, Oct 25, 2006 at 11:34:25AM +0100, Tom Judge wrote: > >> Guido van Rooij wrote: >> >>> On Wed, Oct 25, 2006 at 11:07:14AM +0100, Tom Judge wrote: >>> >>> >>>> Guido van Rooij wrote: >>>> >>>> >>>>> Is it possible to use gmirror to mirror a single BSD partition? >>>>> If not: is it possible with other tools? >>>>> >>>>> >>>> Yes it is possible, I found this site had very good examples of setting >>>> it up: >>>> >>>> http://people.freebsd.org/~rse/mirror/ >>>> >>>> >>>> >>> This only documents how to set it up on an entire disk or on a slice. >>> >>> -Guido >>> >> The instructions for mirroring a slice can be modified slightly (by >> using the correct devices) to do mirror a single partition. >> > > Please tell me then how these modified instructions look. > I still do not know how to reserve the last sector of the partition. > I can create 1-sector holes using bsdlabel, but I'm not sure this > would be the way to go... > > -Guido > Please read Patricks reply to your earlier post re reserving blocks. --SNIP-- You don't need to. If your bsdlabel partition is N sectors in size, the gmirror object will have size N - 1. Newfs will not be able to write to that last sector. You newfs the finished mirror device, --SNIP-- Tom not the individual partitions.