From owner-freebsd-stable@FreeBSD.ORG Sun Feb 6 19:12:11 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 467C416A4CE; Sun, 6 Feb 2005 19:12:11 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id B989543D53; Sun, 6 Feb 2005 19:12:10 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 7DE26ACBD6; Sun, 6 Feb 2005 20:12:09 +0100 (CET) Date: Sun, 6 Feb 2005 20:12:09 +0100 From: Pawel Jakub Dawidek To: George Hartzell Message-ID: <20050206191209.GC1080@darkness.comp.waw.pl> References: <16901.26814.588055.457273@satchel.alerce.com> <16902.27236.71619.138367@satchel.alerce.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6zdv2QT/q3FMhpsV" Content-Disposition: inline In-Reply-To: <16902.27236.71619.138367@satchel.alerce.com> 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-stable@freebsd.org cc: freebsd-geom@freebsd.org Subject: Re: Hardcoding gmirror provider [was Re: Problem with migrating...] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Feb 2005 19:12:11 -0000 --6zdv2QT/q3FMhpsV Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 06, 2005 at 11:05:08AM -0800, George Hartzell wrote: +> I've figured out that if I hardcode the provider when I label my +> mirror everything seems to work out, which leaves me confused. =20 +>=20 +> Here's the label command I was using (modified for my situation): +>=20 +> gmirror label -v -n -b round-robin disk0 /dev/ad0s1 +>=20 +> After running that command, "gmirror list" tells me that the consumer +> for disk0 is "Name: ad0", even though I've specified ad0s1 above and +> when I bsdlabel the disk the slice table gets clobbered. +>=20 +> If I do this instead: +>=20 +> gmirror label -v -n -h -b round-robin disk0 /dev/ad0s1 +>=20 +> then "gmirror list" tells me that the consumer is "Name: ad0s1" and +> bsdlabel doesn't stomp on the slice table. +>=20 +> Am I [just] confused, and I tripping over a sharp piece of exposed +> code, or is this a bug. +>=20 +> FWIW, I get the same behaviour on: +>=20 +> FreeBSD merlin.alerce.com 5.3-RELEASE-p2 FreeBSD 5.3-RELEASE-p2 #9: Sa= t Dec 18 12:38:37 PST 2004 +> root@merlin.alerce.com:/usr/obj/usr/src/sys/MERLIN i386 +>=20 +> and=20 +>=20 +> Freesbie 1.1 It happens because ad0 and ad0s1 share the same last sector. To fix this you should use '-h' option as you did or you should recreate ad0s1 slice one sector smaller. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --6zdv2QT/q3FMhpsV Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFCBmwJForvXbEpPzQRAtbZAJ9U9tPkCHBSim9FgXOzZu3V+ACT2wCg7WfJ iUDuLHsMZwlok2wqdQInSnM= =Ha44 -----END PGP SIGNATURE----- --6zdv2QT/q3FMhpsV--