Re: geom mirror problem

From: John Hay <jhay_at_icomtek.csir.co.za>
Date: Thu, 7 Oct 2004 22:23:27 +0200
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_at_icomtek.csir.co.za / jhay_at_FreeBSD.org
Received on Thu Oct 07 2004 - 18:23:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:16 UTC