From owner-freebsd-geom@FreeBSD.ORG Wed Jan 5 13:48:16 2005 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C02216A4CE for ; Wed, 5 Jan 2005 13:48:16 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91BB443D54 for ; Wed, 5 Jan 2005 13:48:15 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id F3B73ACAE6; Wed, 5 Jan 2005 14:48:07 +0100 (CET) Date: Wed, 5 Jan 2005 14:48:07 +0100 From: Pawel Jakub Dawidek To: Ken Gunderson Message-ID: <20050105134807.GR784@darkness.comp.waw.pl> References: <200412101947.52728.kgunders@teamcool.net> <200412121650.12823.kgunders@teamcool.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IpljlC28XhFjURzf" Content-Disposition: inline In-Reply-To: <200412121650.12823.kgunders@teamcool.net> 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: freebsd-geom@freebsd.org Subject: Re: gmirror confusion X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2005 13:48:16 -0000 --IpljlC28XhFjURzf Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 12, 2004 at 04:50:12PM -0700, Ken Gunderson wrote: +> I'll be lame and follow up my own post... First, sorry that I confused= =20 +> "provider" with "consumer", so that question is moot. However, I note= =20 +> the following: +>=20 +> >>>>>>> +> build# bsdlabel mirror/mirror0s1 +> # /dev/mirror/mirror0s1: +> 8 partitions: +> # size offset fstype [fsize bsize bps/cpg] +> a: 524288 0 4.2BSD 2048 16384 32776 +> b: 4194304 524288 swap +> c: 78156162 0 unused 0 0 # "raw" part,=20 +> don't edit +> d: 1048576 4718592 4.2BSD 2048 16384 8 +> e: 1048576 5767168 4.2BSD 2048 16384 8 +> f: 8388608 6815744 4.2BSD 2048 16384 28552 +> g: 16777216 15204352 4.2BSD 2048 16384 28552 +> h: 46174594 31981568 4.2BSD 2048 16384 28552 +>=20 +> build# bsdlabel /dev/mirror/mirror0s1 +> # /dev/mirror/mirror0s1: +> 8 partitions: +> # size offset fstype [fsize bsize bps/cpg] +> a: 524288 63 4.2BSD 2048 16384 32776 +> b: 4194304 524351 swap +> c: 78156162 63 unused 0 0 # "raw" part,=20 +> don't edit +> d: 1048576 4718655 4.2BSD 2048 16384 8 +> e: 1048576 5767231 4.2BSD 2048 16384 8 +> f: 8388608 6815807 4.2BSD 2048 16384 28552 +> g: 16777216 15204415 4.2BSD 2048 16384 28552 +> h: 46174594 31981631 4.2BSD 2048 16384 28552 +> partition c: partition extends past end of unit +> bsdlabel: partition c doesn't start at 0! +> bsdlabel: An incorrect partition c may cause problems for standard=20 +> system utilities +> partition h: partition extends past end of unit +> <<<<<<<<<<<<<<<<<<< +>=20 +> Per man page for bsd label: +>=20 +> "When specifying the device, the /dev/ path prefix may be omitted; the = =20 +> bsdlabel utility will automatically prepend it." +>=20 +> Hence I was getting confused about seeming eratic bsdlabels, until I=20 +> figured out that the return was consistent, but dependent upon whether= =20 +> I prepended "/dev" or not, at least when applied to gmirror provider. = =20 +> Is this 1) a bsdlabel or gmirror issue, and 2) which return should I=20 +> believe? Argh! I just found your mail. This is a bug in bsdlabel(8). Could you try this patch: http://people.freebsd.org/~pjd/patches/bsdlabel.patch --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --IpljlC28XhFjURzf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFB2/AXForvXbEpPzQRAhS4AKCXuuZG0z6pOPV1Yqu2oh1SASVsjwCgrZRV T/iEfS5MmFX5qL5hoHxw2hk= =7VW7 -----END PGP SIGNATURE----- --IpljlC28XhFjURzf--