Date: Wed, 5 Jan 2005 14:48:07 +0100 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: Ken Gunderson <kgunders@teamcool.net> Cc: freebsd-geom@freebsd.org Subject: Re: gmirror confusion Message-ID: <20050105134807.GR784@darkness.comp.waw.pl> In-Reply-To: <200412121650.12823.kgunders@teamcool.net> References: <200412101947.52728.kgunders@teamcool.net> <200412121650.12823.kgunders@teamcool.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050105134807.GR784>