From owner-freebsd-current@FreeBSD.ORG Sat Jun 26 16:08:25 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 A9E7416A4CE; Sat, 26 Jun 2004 16:08:25 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46D4443D49; Sat, 26 Jun 2004 16:08:25 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id EE766ACBCF; Sat, 26 Jun 2004 18:08:21 +0200 (CEST) Date: Sat, 26 Jun 2004 18:08:21 +0200 From: Pawel Jakub Dawidek To: Lukas Ertl Message-ID: <20040626160821.GG12007@darkness.comp.waw.pl> References: <20040625013138.54319.qmail@web53710.mail.yahoo.com> <20040626135735.E666@korben.in.tern> <20040626123530.GF12007@darkness.comp.waw.pl> <20040626174133.I666@korben.in.tern> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZGfVcqCQYT4RlWas" Content-Disposition: inline In-Reply-To: <20040626174133.I666@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: Daryl Chance cc: current@FreeBSD.org Subject: Re: geom_vinum problems (crashes and lockups) 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: Sat, 26 Jun 2004 16:08:25 -0000 --ZGfVcqCQYT4RlWas Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 26, 2004 at 05:45:51PM +0200, Lukas Ertl wrote: +> On Sat, 26 Jun 2004, Pawel Jakub Dawidek wrote: +>=20 +> >On Sat, Jun 26, 2004 at 02:07:03PM +0200, Lukas Ertl wrote: +> >+> This is a situation that I currently consider 'unsupported'. The=20 +> >problem +> >+> is that the 'd' partition has no offset, thus it is (from the point = of +> >+> view of a geom_vinum drive geom) the same as the 'c' partition. Thi= s is +> >+> the first problem. The second problem is the on-disk format of a +> >+> bsdlabel. As far as I understand it, this meta-data is stored inside +> >+> the first partition, so when you open the drive for writing (i.e. +> >+> mount, fsck) you trigger a spoil event which cause all kinds of=20 +> >confusion +> >+> for geom_vinum. +> > +> >I don't know exactly what problems you got, but maybe it can help you: +> >To avoid spoiling and metadata changes under me, I'm opening every +> >provider, which I want to use in geom_mirror (r1w1e1), even if provider +> >which I create isn't yet opened. +>=20 +> This was a good tip, but unfortunately it still doesn't work out. I=20 +> always run into the 'spoiled but dcr =3D %d' KASSERT. Unfortunately, ke= rnel=20 +> debugging is currently rather a 'guessing' since kgdb doesn't work. The= =20 +> next problem is that you might specify /dev/da1s1a as vinum drive but ge= t=20 +> /dev/da1s1c or even /dev/da1s1. 'Classic vinum' looked at the type fiel= d=20 +> in the disklabel, but we don't do this anymore. This is a race in GEOM. I'm using a patch for this when I running geom_mirror. I sent it to phk more than week ago (AFAIR) and I still didn't get an answer. Try if it works you: http://people.freebsd.org/~pjd/patches/geom_subr.c.16.patch --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --ZGfVcqCQYT4RlWas Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA3Z91ForvXbEpPzQRAqTLAKCy/gWOlnwsp6xazyZtO9vGkrPCrQCfS+eo ae9eR9HvYdNn9d+fFreO5BQ= =SY3v -----END PGP SIGNATURE----- --ZGfVcqCQYT4RlWas--