From owner-freebsd-current@FreeBSD.ORG Mon Oct 11 14:14:03 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 0833B16A4CE for ; Mon, 11 Oct 2004 14:14:03 +0000 (GMT) Received: from chello084114137224.1.15.vie.surfer.at (chello084114137224.1.15.vie.surfer.at [84.114.137.224]) by mx1.FreeBSD.org (Postfix) with SMTP id 8E00743D41 for ; Mon, 11 Oct 2004 14:14:01 +0000 (GMT) (envelope-from 4711@chello.at) Received: (qmail 99495 invoked from network); 11 Oct 2004 14:13:59 -0000 Received: from matrix010.matrix.net (192.168.123.10) by ns.matrix.net with SMTP; 11 Oct 2004 14:13:59 -0000 From: Christian Hiris <4711@chello.at> To: Chris Elsworth Date: Mon, 11 Oct 2004 16:13:42 +0200 User-Agent: KMail/1.7 References: <20041010110159.GA91160@pcs28.suedfactoring.de> <200410110026.03777.4711@chello.at> <20041011132606.GA86235@shagged.org> In-Reply-To: <20041011132606.GA86235@shagged.org> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200410111613.58703.4711@chello.at> 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: Mon, 11 Oct 2004 14:14:03 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 11 October 2004 15:26, Chris Elsworth wrote: > On Mon, Oct 11, 2004 at 12:25:46AM +0200, Christian Hiris wrote: > > > 4) bsdlabel -e ad0 [taking into account the new 16 byte offset] > > > > I never read about the new offset - until now I had no time to study the > > gmirror code. Where did you find this interresting information? > > Here (and related thread): > http://lists.freebsd.org/pipermail/freebsd-geom/2004-September/000313.html Thanks! > No, I get the mirrors breaking on startup too. I believe this is fixed > in -CURRENT but is pending a MFC into RELENG_5 to fix. I could solve this on my systems: I run a patched version of g_mirror.c. The patch was posted for RELENG_5 testing by Pawel and it seems that things work fine w/ his patch. Hopefully I will report his patch working tonight. http://people.freebsd.org/~pjd/patches/gmirror.2.patch The main reason for the root-mirror breakages on my systems was that gdm uses the 'reboot' command by default, which makes no use of the swapoff command. So the swap-devices had been left with the DIRTY flag. When I use the 'shutdown -r' command instead of 'reboot' all mirrors start in ACTIVE state after rebooting the system. - -- Christian Hiris <4711@chello.at> | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBapUm09WjGjvKU74RAlaYAJ9hBpcXIuGeFzYN9v04r52r7s5UCwCfS0ja vmH2iWT7Mh4JF7wNTB9iJHY= =iaGY -----END PGP SIGNATURE-----