From owner-freebsd-current@FreeBSD.ORG Thu Jul 29 21:14:15 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 06A7916A4CF; Thu, 29 Jul 2004 21:14:15 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F93343D39; Thu, 29 Jul 2004 21:14:14 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 98F6EACAF8; Thu, 29 Jul 2004 23:14:12 +0200 (CEST) Date: Thu, 29 Jul 2004 23:14:12 +0200 From: Pawel Jakub Dawidek To: Lukas Ertl Message-ID: <20040729211412.GB57678@darkness.comp.waw.pl> References: <20040726191107.B10DD16A513@hub.freebsd.org> <1091130224.99074.55.camel@zappa.Chelsea-Ct.Org> <20040729215647.F625@korben.in.tern> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mB/CYmFGQzL2EujR" Content-Disposition: inline In-Reply-To: <20040729215647.F625@korben.in.tern> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: Paul Mather cc: freebsd-current@FreeBSD.org Subject: Re: Vinum status 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, 29 Jul 2004 21:14:15 -0000 --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 sa, 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--