Date: Wed, 25 Oct 2006 12:38:49 +0100 From: Tom Judge <tom@tomjudge.com> To: Guido van Rooij <guido@gvr.org> Cc: freebsd-stable@freebsd.org Subject: Re: Gmirror question Message-ID: <453F4CC9.6020109@tomjudge.com> In-Reply-To: <20061025114509.GA51798@gvr.gvr.org> References: <20061025100759.GA50625@gvr.gvr.org> <453F3752.5040207@tomjudge.com> <20061025103613.GA50937@gvr.gvr.org> <453F3DB1.4020309@tomjudge.com> <20061025114509.GA51798@gvr.gvr.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?453F4CC9.6020109>