RAID1 with gmirror

Christian Hiris 4711 at chello.at
Mon Oct 11 07:14:03 PDT 2004


-----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 at 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-----


More information about the freebsd-current mailing list