From owner-freebsd-questions@FreeBSD.ORG Sat Jun 28 05:38:58 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70CCC106566C for ; Sat, 28 Jun 2008 05:38:58 +0000 (UTC) (envelope-from crapsh@MonkeyBrains.NET) Received: from ape.monkeybrains.net (ape.monkeybrains.net [208.69.40.11]) by mx1.freebsd.org (Postfix) with ESMTP id 3C5A88FC0C for ; Sat, 28 Jun 2008 05:38:57 +0000 (UTC) (envelope-from crapsh@MonkeyBrains.NET) Received: from Penelope-Thomas-Computer.local (adsl-76-247-113-14.dsl.pltn13.sbcglobal.net [76.247.113.14]) (authenticated bits=0) by ape.monkeybrains.net (8.14.1/8.14.1) with ESMTP id m5S5d3vL005933 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 27 Jun 2008 22:39:03 -0700 (PDT) (envelope-from crapsh@MonkeyBrains.NET) Message-ID: <4865CE6B.7050703@MonkeyBrains.NET> Date: Fri, 27 Jun 2008 22:38:51 -0700 From: Rudy User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: booloo@ucsc.edu References: <20080627194555.GA42681@root.ucsc.edu> In-Reply-To: <20080627194555.GA42681@root.ucsc.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.93.1, clamav-milter version 0.93.1 on pita.monkeybrains.net X-Virus-Status: Clean Cc: freebsd-questions@freebsd.org Subject: Re: gmirror metadata: end of slice or end of disk? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jun 2008 05:38:58 -0000 Mark Boolootian wrote: > Hi folks, > > I'm trying to understand exactly where on disk gmirror is going to write > its metadata, It just tosses the info in the end of your disk/slice/partition -- I think ;) In your example, you had a da1d... you could do partition level mirroring instead of whole disk level if you want. While a machine was running ... and you had data on da1d, run gmirror label -v -b round-robin gm0d /dev/da1d gmirror instert gm0d da0d (asusming your da0 is what you are mirroring to) and you would have a 'parition level' gmirror... You may need to umount the partition... not sure. Oh, there is the secret sysctl kern.geom.debugflags=16 command as well. Explained in the reference I always use when using gmirror: http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html Rudy