Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jul 2004 23:14:12 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Lukas Ertl <le@FreeBSD.org>
Cc:        freebsd-current@FreeBSD.org
Subject:   Re: Vinum status
Message-ID:  <20040729211412.GB57678@darkness.comp.waw.pl>
In-Reply-To: <20040729215647.F625@korben.in.tern>
References:  <20040726191107.B10DD16A513@hub.freebsd.org> <1091130224.99074.55.camel@zappa.Chelsea-Ct.Org> <20040729215647.F625@korben.in.tern>

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

--mB/CYmFGQzL2EujR
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jul 29, 2004 at 09:57:54PM +0200, Lukas Ertl wrote:
+> On Thu, 29 Jul 2004, Paul Mather wrote:
+>=20
+> >Does this imply that root-on-gvinum is working now?  Last time I tried
+> >it (shortly after gvinum was committed to the tree), it worked except
+> >that only half of the drives, plexes, and volumes in my Vinum RAID 1
+> >mirror were detected when the gvinum module read the configuration from
+> >the drives during boot.
+>=20
+> I still didn't have a chance to build a root-on-gvinum setup, but I'd be=
=20
+> happy if you could test it.  It's quite likely that the errors were=20
+> related.

Our boot-loader is looking for /boot/ directory on <disk>s<X>a, right?
If so, you have to teach geom_mbr, that it should create slices for
providers from you class. I've such a patch ready for GEOM_MIRROR:

--- geom_mbr.c  12 Feb 2004 22:42:11 -0000      1.56
+++ geom_mbr.c  25 Jul 2004 14:26:05 -0000
@@ -244,8 +244,10 @@ g_mbr_taste(struct g_class *mp, struct g
	gp->dumpconf =3D g_mbr_dumpconf;
	gp->ioctl =3D g_mbr_ioctl;
	do {
-		if (gp->rank !=3D 2 && insist =3D=3D 0)
+		if (gp->rank !=3D 2 &&
+		    strcmp(pp->geom->class->name, "MIRROR") !=3D 0) {
			break;
+		}
		error =3D g_getattr("GEOM::fwsectors", cp, &fwsectors);
		if (error)
			fwsectors =3D 17;

The only thing which is missing here is a big /* XXX */, but this way
was suggested by phk.
I need to add GEOM_LABEL here as well...

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

--mB/CYmFGQzL2EujR
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFBCWikForvXbEpPzQRAnZKAKDm6+bsWPlmTuNkiAENwQx1BjUwqACdEMtR
jko85yuXH5cFyIqElMj9p4Q=
=QL48
-----END PGP SIGNATURE-----

--mB/CYmFGQzL2EujR--



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