Re: Vinum status

From: Pawel Jakub Dawidek <pjd_at_FreeBSD.org>
Date: Thu, 29 Jul 2004 23:14:12 +0200
On Thu, Jul 29, 2004 at 09:57:54PM +0200, Lukas Ertl wrote:
+> On Thu, 29 Jul 2004, Paul Mather wrote:
+> 
+> >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.
+> 
+> I still didn't have a chance to build a root-on-gvinum setup, but I'd be 
+> happy if you could test it.  It's quite likely that the errors were 
+> 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
_at__at_ -244,8 +244,10 _at__at_ g_mbr_taste(struct g_class *mp, struct g
	gp->dumpconf = g_mbr_dumpconf;
	gp->ioctl = g_mbr_ioctl;
	do {
-		if (gp->rank != 2 && insist == 0)
+		if (gp->rank != 2 &&
+		    strcmp(pp->geom->class->name, "MIRROR") != 0) {
			break;
+		}
		error = g_getattr("GEOM::fwsectors", cp, &fwsectors);
		if (error)
			fwsectors = 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...

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

Received on Thu Jul 29 2004 - 19:14:15 UTC

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