Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Oct 2004 15:35:37 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        John Hay <jhay@icomtek.csir.co.za>
Cc:        freebsd-current@freebsd.org
Subject:   Re: geom mirror problem
Message-ID:  <20041007133537.GC73767@darkness.comp.waw.pl>
In-Reply-To: <20041007132421.GA41532@zibbi.icomtek.csir.co.za>
References:  <20041006195428.GA8886@zibbi.icomtek.csir.co.za> <20041007055209.GU73767@darkness.comp.waw.pl> <20041007065125.GA29164@zibbi.icomtek.csir.co.za> <20041007082652.GX73767@darkness.comp.waw.pl> <20041007085920.GA32875@zibbi.icomtek.csir.co.za> <20041007090656.GY73767@darkness.comp.waw.pl> <20041007132421.GA41532@zibbi.icomtek.csir.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help

--x+bne1ZFwxW5PfJO
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Oct 07, 2004 at 03:24:21PM +0200, John Hay wrote:
+> Ok with an updated RELENG_5 and g_mirror.c patched with v 1.34, 1.35
+> and 1.36 and also with your gmirror.patch, which adds g_waitidlelock()
+> I still get the setrootbyname failed message and then it goes to the
+> mountroot> prompt.

With g_mirror.c 1.36 there should be no race you are seeing...

+> I'll try without the gmirror.patch and see how that goes, but it will
+> be a few hours because syncing takes a while on two 120G disks.
+>=20
+> Something that still bothers me are those
+>=20
+> GEOM_MIRROR: Cannot update metadata on disk ad0 (error=3D1).

This is because ad0 is open with exclusive bit, so gmirror cannot open
it for writing and it gets (EPERM - error=3D1 - errno(2)).
gmirror.patch should eliminate this race.

--=20
Pawel Jakub Dawidek                       http://www.FreeBSD.org
pjd@FreeBSD.org                           http://garage.freebsd.pl
FreeBSD committer                         Am I Evil? Yes, I Am!

--x+bne1ZFwxW5PfJO
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFBZUYpForvXbEpPzQRAuycAKDYRJ10qkjaDGhd8HSvEH+0LQUB4wCcCnlZ
ni2n3zO012PXSBG6cNlWgbQ=
=dKnu
-----END PGP SIGNATURE-----

--x+bne1ZFwxW5PfJO--



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