From owner-freebsd-current@FreeBSD.ORG Thu Oct 7 20:23:37 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 DF6AF16A4CE; Thu, 7 Oct 2004 20:23:37 +0000 (GMT) Received: from zibbi.icomtek.csir.co.za (zibbi.icomtek.csir.co.za [146.64.24.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2DA643D2F; Thu, 7 Oct 2004 20:23:30 +0000 (GMT) (envelope-from jhay@icomtek.csir.co.za) Received: from zibbi.icomtek.csir.co.za (localhost [127.0.0.1]) i97KNRZV055154; Thu, 7 Oct 2004 22:23:28 +0200 (SAST) (envelope-from jhay@zibbi.icomtek.csir.co.za) Received: (from jhay@localhost)i97KNRcN055153; Thu, 7 Oct 2004 22:23:27 +0200 (SAST) (envelope-from jhay) Date: Thu, 7 Oct 2004 22:23:27 +0200 From: John Hay To: Pawel Jakub Dawidek , y@zibbi.icomtek.csir.co.za Message-ID: <20041007202326.GA55025@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> <20041007133537.GC73767@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041007133537.GC73767@darkness.comp.waw.pl> User-Agent: Mutt/1.4.1i cc: freebsd-current@freebsd.org Subject: Re: geom mirror problem 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: Thu, 07 Oct 2004 20:23:38 -0000 On Thu, Oct 07, 2004 at 03:35:37PM +0200, Pawel Jakub Dawidek wrote: > 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. > +> > +> Something that still bothers me are those > +> > +> GEOM_MIRROR: Cannot update metadata on disk ad0 (error=1). > > This is because ad0 is open with exclusive bit, so gmirror cannot open > it for writing and it gets (EPERM - error=1 - errno(2)). > gmirror.patch should eliminate this race. With gmirror.patch I don't see the geom_mirror error messages, but then it doesn't finish booting: ####################################################### GEOM_MIRROR: Device gm0 created (id=861616013) GEOM_MIRROR: Device gm0: provider ad0 detected GEOM_MIRROR: Device gm0: provider ad2 detected Mounting root from ufs:/dev/mirror/gm0s1a setrootbyname failed Root mount failed: 6 Manual root filesystem specification ... mountroot> ####################################################### So how do I go from here? Is there something else I can try? John -- John Hay -- John.Hay@icomtek.csir.co.za / jhay@FreeBSD.org