From owner-freebsd-current@FreeBSD.ORG Sun Oct 10 16:59:02 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A78B16A4CE for ; Sun, 10 Oct 2004 16:59:02 +0000 (GMT) Received: from clueful.shagged.org (clueful.shagged.org [212.13.201.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41D8743D45 for ; Sun, 10 Oct 2004 16:59:02 +0000 (GMT) (envelope-from chris@clueful.shagged.org) Received: from chris by clueful.shagged.org with local (Exim 4.40 (FreeBSD)) id 1CGh24-0004Gm-IS; Sun, 10 Oct 2004 17:58:52 +0100 Date: Sun, 10 Oct 2004 17:58:52 +0100 From: Chris Elsworth To: Christian Hiris <4711@chello.at> Message-ID: <20041010165852.GA15854@shagged.org> References: <20041010110159.GA91160@pcs28.suedfactoring.de> <200410101522.45548.4711@chello.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200410101522.45548.4711@chello.at> User-Agent: Mutt/1.5.6i Sender: Chris Elsworth X-Shagged-MailScanner-Information: See www.mailscanner.info for information X-Shagged-MailScanner: Found to be clean X-MailScanner-From: chris@clueful.shagged.org cc: axel.gruner@suedfactoring.de cc: freebsd-current@freebsd.org Subject: Re: RAID1 with gmirror X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Oct 2004 16:59:02 -0000 On Sun, Oct 10, 2004 at 03:22:28PM +0200, Christian Hiris wrote: > > 3. Mount / and /usr to edit fstab and loader.conf on ad0: > # mount / > # mount /usr > # mount /dev/ad0s1a /mnt > # ee /mnt/etc/fstab > > Change devices to the new (ie. mirror0) gmirror devices: > /dev/ad3s1a --> /dev/mirror/mirror0s1a > /dev/ad3s1b --> /dev/mirror/mirror0s1b > /dev/ad3s1d --> /dev/mirror/mirror0s1c > /dev/ad3s1e --> /dev/mirror/mirror0s1d > > # echo "geom_mirror_load="YES"" >> /mnt/boot/loader.conf > # gmirror load > # gmirror configure -v -b load mirror0 ad0 ^^^^^^^^^ label? I'm quite interested that you didn't bother re-labelling the new mirror device? I always thought that you had to (and I have been doing this): 1) boot onto A.N.Other disk that you're not setting the RAID up on 2) gmirror label mirror0 ad0 3) bsdlabel -w -B ad0 4) bsdlabel -e ad0 [taking into account the new 16 byte offset] 5) newfs.. 6) dump A.N.Otherdisk | restore /dev/mirror/mirror0a.. 7) fix up fstab/loader.conf to get booting working Is this all completely unnecessary? The first few times I played with gmirror, I was doing something similar to your method, but if you do bsdlabel -r /dev/mirror/mirror0s1 (or whatever) on your setup, don't you get warnings about partition sizes? That's what worried me enough to go through all the rigmarole above, which fixes those warnings. -- Chris