Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Oct 2004 17:58:52 +0100
From:      Chris Elsworth <chris@shagged.org>
To:        Christian Hiris <4711@chello.at>
Cc:        freebsd-current@freebsd.org
Subject:   Re: RAID1 with gmirror
Message-ID:  <20041010165852.GA15854@shagged.org>
In-Reply-To: <200410101522.45548.4711@chello.at>
References:  <20041010110159.GA91160@pcs28.suedfactoring.de> <200410101522.45548.4711@chello.at>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041010165852.GA15854>