From owner-freebsd-geom@FreeBSD.ORG Tue Feb 22 15:34:57 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 1BAF016A4CE; Tue, 22 Feb 2005 15:34:57 +0000 (GMT) Received: from merlin.alerce.com (w094.z064001164.sjc-ca.dsl.cnc.net [64.1.164.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95B7343D58; Tue, 22 Feb 2005 15:34:56 +0000 (GMT) (envelope-from hartzell@kestrel.alerce.com) Received: from merlin.alerce.com (localhost [127.0.0.1]) by merlin.alerce.com (Postfix) with ESMTP id C8CEF21EB; Tue, 22 Feb 2005 07:34:55 -0800 (PST) Received: from satchel.alerce.com (w092.z064001164.sjc-ca.dsl.cnc.net [64.1.164.92]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) Authority" (verified OK)) by merlin.alerce.com (Postfix) with ESMTP id 99ACE21B0; Tue, 22 Feb 2005 07:34:55 -0800 (PST) Received: from satchel.alerce.com (localhost [127.0.0.1]) by satchel.alerce.com (8.13.1/8.13.1) with ESMTP id j1MFYvvj006860 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 22 Feb 2005 07:34:57 -0800 (PST) (envelope-from hartzell@satchel.alerce.com) Received: (from hartzell@localhost) by satchel.alerce.com (8.13.1/8.13.1/Submit) id j1MFYuOc006857; Tue, 22 Feb 2005 07:34:56 -0800 (PST) (envelope-from hartzell) From: George Hartzell MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16923.20768.336451.133236@satchel.alerce.com> Date: Tue, 22 Feb 2005 07:34:56 -0800 To: "Ralf S. Engelschall" In-Reply-To: <20050211133917.GA45990@engelschall.com> References: <16901.26814.588055.457273@satchel.alerce.com> <16902.27236.71619.138367@satchel.alerce.com> <20050206191209.GC1080@darkness.comp.waw.pl> <16902.28195.6589.299894@satchel.alerce.com> <20050211133917.GA45990@engelschall.com> X-Mailer: VM 7.17 under 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid X-Virus-Scanned: ClamAV using ClamSMTP cc: George Hartzell cc: freebsd-stable@FreeBSD.org cc: Pawel Jakub Dawidek cc: freebsd-geom@FreeBSD.org Subject: Re: Hardcoding gmirror provider [was Re: Problem with migrating...] X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hartzell@kestrel.alerce.com List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 15:34:57 -0000 I just skimmed through your comment about hardcoding the provider name if ad0 and ad0s1 have the same length. I think that you need to mention that you need to add the "-h" flag to both the "gmirror label" command and the final "gmirror insert" command when you add in the second disk. g. From owner-freebsd-geom@FreeBSD.ORG Tue Feb 22 20:30: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 58AB416A4D1; Tue, 22 Feb 2005 20:30:16 +0000 (GMT) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9E2D43D54; Tue, 22 Feb 2005 20:30:15 +0000 (GMT) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 6BFD8530C; Tue, 22 Feb 2005 21:30:14 +0100 (CET) Received: from xps.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id 692105308; Tue, 22 Feb 2005 21:29:38 +0100 (CET) Received: by xps.des.no (Postfix, from userid 1001) id 0D16A33C3E; Tue, 22 Feb 2005 21:29:38 +0100 (CET) To: hartzell@kestrel.alerce.com References: <16901.26814.588055.457273@satchel.alerce.com> <16902.27236.71619.138367@satchel.alerce.com> <20050206191209.GC1080@darkness.comp.waw.pl> <16902.28195.6589.299894@satchel.alerce.com> <20050211133917.GA45990@engelschall.com> <16923.20768.336451.133236@satchel.alerce.com> From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Date: Tue, 22 Feb 2005 21:29:38 +0100 In-Reply-To: <16923.20768.336451.133236@satchel.alerce.com> (George Hartzell's message of "Tue, 22 Feb 2005 07:34:56 -0800") Message-ID: <86k6p0mj7x.fsf@xps.des.no> User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on flood.des.no X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=AWL,FORGED_RCVD_HELO autolearn=disabled version=3.0.1 cc: freebsd-stable@FreeBSD.org cc: "Ralf S. Engelschall" cc: Pawel Jakub Dawidek cc: freebsd-geom@FreeBSD.org Subject: Re: Hardcoding gmirror provider 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: Tue, 22 Feb 2005 20:30:16 -0000 George Hartzell writes: > I just skimmed through your comment about hardcoding the provider name > if ad0 and ad0s1 have the same length. This wouldn't be a problem if gmirror, gstripe etc. placed metadata at the start of the provider, like God intended, instead of at the end. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-geom@FreeBSD.ORG Tue Feb 22 23:47:31 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 465C816A4CE; Tue, 22 Feb 2005 23:47:31 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id C11A943D49; Tue, 22 Feb 2005 23:47:30 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id AE951ACAE0; Wed, 23 Feb 2005 00:47:28 +0100 (CET) Date: Wed, 23 Feb 2005 00:47:28 +0100 From: Pawel Jakub Dawidek To: Dag-Erling Sm?rgrav Message-ID: <20050222234728.GV9291@darkness.comp.waw.pl> References: <16901.26814.588055.457273@satchel.alerce.com> <16902.27236.71619.138367@satchel.alerce.com> <20050206191209.GC1080@darkness.comp.waw.pl> <16902.28195.6589.299894@satchel.alerce.com> <20050211133917.GA45990@engelschall.com> <16923.20768.336451.133236@satchel.alerce.com> <86k6p0mj7x.fsf@xps.des.no> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="w/fW4OhQtzSNeJ+1" Content-Disposition: inline In-Reply-To: <86k6p0mj7x.fsf@xps.des.no> 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: hartzell@kestrel.alerce.com cc: freebsd-stable@FreeBSD.org cc: "Ralf S. Engelschall" cc: freebsd-geom@FreeBSD.org Subject: Re: Hardcoding gmirror provider 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: Tue, 22 Feb 2005 23:47:31 -0000 --w/fW4OhQtzSNeJ+1 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 22, 2005 at 09:29:38PM +0100, Dag-Erling Sm?rgrav wrote: +> George Hartzell writes: +> > I just skimmed through your comment about hardcoding the provider name +> > if ad0 and ad0s1 have the same length. +>=20 +> This wouldn't be a problem if gmirror, gstripe etc. placed metadata at +> the start of the provider, like God intended, instead of at the end. You won't be able to boot from the mirror then. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --w/fW4OhQtzSNeJ+1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFCG8SQForvXbEpPzQRApM9AJ9x/6FJhMc59NdubrOU7SLYHLuucQCgnc7J ZxtM9jEFeqUNlywUzZAYj84= =Bsd8 -----END PGP SIGNATURE----- --w/fW4OhQtzSNeJ+1-- From owner-freebsd-geom@FreeBSD.ORG Tue Feb 22 23:58:54 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 38BAC16A4CE; Tue, 22 Feb 2005 23:58:54 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF17B43D1F; Tue, 22 Feb 2005 23:58:53 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 5F8DEACAEE; Wed, 23 Feb 2005 00:58:52 +0100 (CET) Date: Wed, 23 Feb 2005 00:58:52 +0100 From: Pawel Jakub Dawidek To: Dag-Erling Sm?rgrav Message-ID: <20050222235852.GW9291@darkness.comp.waw.pl> References: <16901.26814.588055.457273@satchel.alerce.com> <16902.27236.71619.138367@satchel.alerce.com> <20050206191209.GC1080@darkness.comp.waw.pl> <16902.28195.6589.299894@satchel.alerce.com> <20050211133917.GA45990@engelschall.com> <16923.20768.336451.133236@satchel.alerce.com> <86k6p0mj7x.fsf@xps.des.no> <20050222234728.GV9291@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qZTZQd/MRfnLEAAX" Content-Disposition: inline In-Reply-To: <20050222234728.GV9291@darkness.comp.waw.pl> 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: hartzell@kestrel.alerce.com cc: "Ralf S. Engelschall" cc: freebsd-stable@FreeBSD.org cc: freebsd-geom@FreeBSD.org Subject: Re: Hardcoding gmirror provider 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: Tue, 22 Feb 2005 23:58:54 -0000 --qZTZQd/MRfnLEAAX Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 23, 2005 at 12:47:28AM +0100, Pawel Jakub Dawidek wrote: +> On Tue, Feb 22, 2005 at 09:29:38PM +0100, Dag-Erling Sm?rgrav wrote: +> +> George Hartzell writes: +> +> > I just skimmed through your comment about hardcoding the provider n= ame +> +> > if ad0 and ad0s1 have the same length. +> +>=20 +> +> This wouldn't be a problem if gmirror, gstripe etc. placed metadata at +> +> the start of the provider, like God intended, instead of at the end. +>=20 +> You won't be able to boot from the mirror then. =2E..and metadata at the begining of the provider still doesn't fix 'c' partition problem and 'a' partition which starts at sector 0, which is the default start offset in sysinstall. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --qZTZQd/MRfnLEAAX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFCG8c8ForvXbEpPzQRAnlsAJ9iTVtWGDcEVher6QClbnNRZYP+cwCdFIQd wNY6SHSo9ZoPjnt+j5jmNDs= =G+qP -----END PGP SIGNATURE----- --qZTZQd/MRfnLEAAX-- From owner-freebsd-geom@FreeBSD.ORG Wed Feb 23 02:48:06 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 A1CB516A4CE; Wed, 23 Feb 2005 02:48:06 +0000 (GMT) Received: from imladris.teardrop.org (imladris.teardrop.org [66.92.66.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D04F43D5C; Wed, 23 Feb 2005 02:48:06 +0000 (GMT) (envelope-from snow@teardrop.org) Received: by imladris.teardrop.org (Postfix, from userid 100) id 3D921BE616; Tue, 22 Feb 2005 21:48:37 -0500 (EST) Date: Tue, 22 Feb 2005 21:48:37 -0500 From: James Snow To: Pawel Jakub Dawidek Message-ID: <20050223024837.GA41478@teardrop.org> References: <16901.26814.588055.457273@satchel.alerce.com> <16902.27236.71619.138367@satchel.alerce.com> <20050206191209.GC1080@darkness.comp.waw.pl> <16902.28195.6589.299894@satchel.alerce.com> <20050211133917.GA45990@engelschall.com> <16923.20768.336451.133236@satchel.alerce.com> <86k6p0mj7x.fsf@xps.des.no> <20050222234728.GV9291@darkness.comp.waw.pl> <20050222235852.GW9291@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050222235852.GW9291@darkness.comp.waw.pl> User-Agent: Mutt/1.4.2.1i cc: freebsd-stable@freebsd.org cc: freebsd-geom@freebsd.org Subject: Re: Hardcoding gmirror provider 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, 23 Feb 2005 02:48:06 -0000 On Wed, Feb 23, 2005 at 12:58:52AM +0100, Pawel Jakub Dawidek wrote: > > ...and metadata at the begining of the provider still doesn't fix 'c' > partition problem and 'a' partition which starts at sector 0, which is > the default start offset in sysinstall. Is this the C partition problem you refer to? bsdlabel: partition c doesn't cover the whole unit! bsdlabel: An incorrect partition c may cause problems for standard system utilities Could this possibly be at the root of my boot problem: disk1s1: FFS bad disklabel disk2s1: FFS bad disklabel It only seems to be a problem if I try to use slices as gmirror providers and shrink them to avoid the last sector collision with the whole disk. -Snow From owner-freebsd-geom@FreeBSD.ORG Wed Feb 23 06:15:34 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 D5ADE16A4CE; Wed, 23 Feb 2005 06:15:34 +0000 (GMT) Received: from hosea.tallye.com (joel.tallye.com [216.99.199.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25D2C43D54; Wed, 23 Feb 2005 06:15:34 +0000 (GMT) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (hosea.tallye.com [127.0.0.1]) by hosea.tallye.com (8.12.8/8.12.10) with ESMTP id j1N6FXXq024186 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 22 Feb 2005 22:15:33 -0800 Received: (from sttng359@localhost) by hosea.tallye.com (8.12.8/8.12.10/Submit) id j1N6FXib024183; Tue, 22 Feb 2005 22:15:33 -0800 X-Authentication-Warning: hosea.tallye.com: sttng359 set sender to lorenl@alzatex.com using -f Date: Tue, 22 Feb 2005 22:15:32 -0800 From: "Loren M. Lang" To: James Snow Message-ID: <20050223061532.GA21817@alzatex.com> References: <16901.26814.588055.457273@satchel.alerce.com> <16902.27236.71619.138367@satchel.alerce.com> <20050206191209.GC1080@darkness.comp.waw.pl> <16902.28195.6589.299894@satchel.alerce.com> <20050211133917.GA45990@engelschall.com> <16923.20768.336451.133236@satchel.alerce.com> <86k6p0mj7x.fsf@xps.des.no> <20050222234728.GV9291@darkness.comp.waw.pl> <20050222235852.GW9291@darkness.comp.waw.pl> <20050223024837.GA41478@teardrop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050223024837.GA41478@teardrop.org> User-Agent: Mutt/1.4.1i X-GPG-Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc X-GPG-Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C cc: freebsd-stable@freebsd.org cc: Pawel Jakub Dawidek cc: freebsd-geom@freebsd.org Subject: Re: Hardcoding gmirror provider 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, 23 Feb 2005 06:15:35 -0000 On Tue, Feb 22, 2005 at 09:48:37PM -0500, James Snow wrote: > On Wed, Feb 23, 2005 at 12:58:52AM +0100, Pawel Jakub Dawidek wrote: > > > > ...and metadata at the begining of the provider still doesn't fix 'c' > > partition problem and 'a' partition which starts at sector 0, which is > > the default start offset in sysinstall. > > Is this the C partition problem you refer to? > > bsdlabel: partition c doesn't cover the whole unit! > bsdlabel: An incorrect partition c may cause problems for standard > system utilities > > Could this possibly be at the root of my boot problem: > > disk1s1: FFS bad disklabel > disk2s1: FFS bad disklabel > > It only seems to be a problem if I try to use slices as gmirror > providers and shrink them to avoid the last sector collision with the > whole disk. The c partition doesn't need to be shrunk by a sector since it's not used as a gmirror provider, and only the slices that end at the end of the disk/provider their slicing. So a disk with two consecutive slices, say a and d, only d needs to be reduced by 1 sector since a doesn't end at the end of the disk anyways. > > > -Snow > > _______________________________________________ > freebsd-geom@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-geom > To unsubscribe, send any mail to "freebsd-geom-unsubscribe@freebsd.org" -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C From owner-freebsd-geom@FreeBSD.ORG Wed Feb 23 09:27:51 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 4013F16A4D0; Wed, 23 Feb 2005 09:27:51 +0000 (GMT) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1EEF43D1D; Wed, 23 Feb 2005 09:27:50 +0000 (GMT) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 79932530C; Wed, 23 Feb 2005 10:27:49 +0100 (CET) Received: from xps.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id A46B95308; Wed, 23 Feb 2005 10:27:09 +0100 (CET) Received: by xps.des.no (Postfix, from userid 1001) id 27F0633C3E; Wed, 23 Feb 2005 10:27:09 +0100 (CET) To: Pawel Jakub Dawidek References: <16901.26814.588055.457273@satchel.alerce.com> <16902.27236.71619.138367@satchel.alerce.com> <20050206191209.GC1080@darkness.comp.waw.pl> <16902.28195.6589.299894@satchel.alerce.com> <20050211133917.GA45990@engelschall.com> <16923.20768.336451.133236@satchel.alerce.com> <86k6p0mj7x.fsf@xps.des.no> <20050222234728.GV9291@darkness.comp.waw.pl> From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Date: Wed, 23 Feb 2005 10:27:09 +0100 In-Reply-To: <20050222234728.GV9291@darkness.comp.waw.pl> (Pawel Jakub Dawidek's message of "Wed, 23 Feb 2005 00:47:28 +0100") Message-ID: <86u0o3lj82.fsf@xps.des.no> User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on flood.des.no X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=AWL,FORGED_RCVD_HELO autolearn=disabled version=3.0.1 cc: hartzell@kestrel.alerce.com cc: "Ralf S. Engelschall" cc: freebsd-stable@FreeBSD.org cc: freebsd-geom@FreeBSD.org Subject: Re: Hardcoding gmirror provider 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, 23 Feb 2005 09:27:51 -0000 Pawel Jakub Dawidek writes: > On Tue, Feb 22, 2005 at 09:29:38PM +0100, Dag-Erling Sm?rgrav wrote: > > George Hartzell writes: > > > I just skimmed through your comment about hardcoding the provider name > > > if ad0 and ad0s1 have the same length. > > This wouldn't be a problem if gmirror, gstripe etc. placed metadata at > > the start of the provider, like God intended, instead of at the end. > You won't be able to boot from the mirror then. That's a special case, and it could have been solved differently (e.g. by teaching the boot loader to recognize gmirror metadata). It does not justify the similar breakage in gstripe and graid3. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-geom@FreeBSD.ORG Wed Feb 23 09:32:35 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 E9FFD16A4CE; Wed, 23 Feb 2005 09:32:35 +0000 (GMT) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A4E243D54; Wed, 23 Feb 2005 09:32:35 +0000 (GMT) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 1B37A530C; Wed, 23 Feb 2005 10:32:33 +0100 (CET) Received: from xps.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id 306D05308; Wed, 23 Feb 2005 10:32:01 +0100 (CET) Received: by xps.des.no (Postfix, from userid 1001) id 16B2333C3E; Wed, 23 Feb 2005 10:32:01 +0100 (CET) To: Pawel Jakub Dawidek References: <16901.26814.588055.457273@satchel.alerce.com> <16902.27236.71619.138367@satchel.alerce.com> <20050206191209.GC1080@darkness.comp.waw.pl> <16902.28195.6589.299894@satchel.alerce.com> <20050211133917.GA45990@engelschall.com> <16923.20768.336451.133236@satchel.alerce.com> <86k6p0mj7x.fsf@xps.des.no> <20050222234728.GV9291@darkness.comp.waw.pl> <20050222235852.GW9291@darkness.comp.waw.pl> From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Date: Wed, 23 Feb 2005 10:32:01 +0100 In-Reply-To: <20050222235852.GW9291@darkness.comp.waw.pl> (Pawel Jakub Dawidek's message of "Wed, 23 Feb 2005 00:58:52 +0100") Message-ID: <86psyrlizy.fsf@xps.des.no> User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on flood.des.no X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=AWL,FORGED_RCVD_HELO autolearn=disabled version=3.0.1 cc: hartzell@kestrel.alerce.com cc: freebsd-stable@FreeBSD.org cc: "Ralf S. Engelschall" cc: freebsd-geom@FreeBSD.org Subject: Re: Hardcoding gmirror provider 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, 23 Feb 2005 09:32:36 -0000 Pawel Jakub Dawidek writes: > ...and metadata at the begining of the provider still doesn't fix 'c' > partition problem and 'a' partition which starts at sector 0, which is > the default start offset in sysinstall. The c partition is a problem you have to address anyway (and it is best addressed by removing the magicness of the c partition altogether). As for the a partition, I don't see the problem. It is not at the start of the slice, since the label comes first. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-geom@FreeBSD.ORG Wed Feb 23 10:14:38 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 88DFA16A4CE; Wed, 23 Feb 2005 10:14:38 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11BE843D48; Wed, 23 Feb 2005 10:14:38 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 3EAB4ACAE6; Wed, 23 Feb 2005 11:14:36 +0100 (CET) Date: Wed, 23 Feb 2005 11:14:36 +0100 From: Pawel Jakub Dawidek To: Dag-Erling Sm?rgrav Message-ID: <20050223101436.GX9291@darkness.comp.waw.pl> References: <16901.26814.588055.457273@satchel.alerce.com> <16902.27236.71619.138367@satchel.alerce.com> <20050206191209.GC1080@darkness.comp.waw.pl> <16902.28195.6589.299894@satchel.alerce.com> <20050211133917.GA45990@engelschall.com> <16923.20768.336451.133236@satchel.alerce.com> <86k6p0mj7x.fsf@xps.des.no> <20050222234728.GV9291@darkness.comp.waw.pl> <20050222235852.GW9291@darkness.comp.waw.pl> <86psyrlizy.fsf@xps.des.no> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2VOk7s3pVsDYAazo" Content-Disposition: inline In-Reply-To: <86psyrlizy.fsf@xps.des.no> 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: hartzell@kestrel.alerce.com cc: freebsd-stable@FreeBSD.org cc: "Ralf S. Engelschall" cc: freebsd-geom@FreeBSD.org Subject: Re: Hardcoding gmirror provider 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, 23 Feb 2005 10:14:38 -0000 --2VOk7s3pVsDYAazo Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 23, 2005 at 10:32:01AM +0100, Dag-Erling Sm?rgrav wrote: +> Pawel Jakub Dawidek writes: +> > ...and metadata at the begining of the provider still doesn't fix 'c' +> > partition problem and 'a' partition which starts at sector 0, which is +> > the default start offset in sysinstall. +>=20 +> The c partition is a problem you have to address anyway (and it is +> best addressed by removing the magicness of the c partition +> altogether). [...] It is not going to be removed. We're going to wait for MBR to die. +> [...] As for the a partition, I don't see the problem. It is +> not at the start of the slice, since the label comes first. It comes first, yes, but it is visible inside 'a' partition when it starts at sector 0. UFS has a workaround to skip first 16 sectors. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --2VOk7s3pVsDYAazo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFCHFeMForvXbEpPzQRApzxAKCmzlL2W4N3z9vtlGmSgj66LPoiHwCgl2bO XnEkCQT3sIiw17hPSLqOBBY= =UugU -----END PGP SIGNATURE----- --2VOk7s3pVsDYAazo-- From owner-freebsd-geom@FreeBSD.ORG Wed Feb 23 10:24:30 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 D399016A4CE; Wed, 23 Feb 2005 10:24:30 +0000 (GMT) Received: from critter.freebsd.dk (f170.freebsd.dk [212.242.86.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id D94F943D39; Wed, 23 Feb 2005 10:24:29 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id j1NAOSHo062197; Wed, 23 Feb 2005 11:24:28 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Pawel Jakub Dawidek From: "Poul-Henning Kamp" In-Reply-To: Your message of "Wed, 23 Feb 2005 11:14:36 +0100." <20050223101436.GX9291@darkness.comp.waw.pl> Date: Wed, 23 Feb 2005 11:24:28 +0100 Message-ID: <62196.1109154268@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: hartzell@kestrel.alerce.com cc: Dag-Erling Sm?rgrav cc: freebsd-stable@freebsd.org cc: "Ralf S. Engelschall" cc: freebsd-geom@freebsd.org Subject: Re: Hardcoding gmirror provider 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, 23 Feb 2005 10:24:31 -0000 In message <20050223101436.GX9291@darkness.comp.waw.pl>, Pawel Jakub Dawidek wr ites: > >--2VOk7s3pVsDYAazo >Content-Type: text/plain; charset=iso-8859-2 >Content-Disposition: inline >Content-Transfer-Encoding: quoted-printable > >On Wed, Feb 23, 2005 at 10:32:01AM +0100, Dag-Erling Sm?rgrav wrote: >+> Pawel Jakub Dawidek writes: >+> > ...and metadata at the begining of the provider still doesn't fix 'c' >+> > partition problem and 'a' partition which starts at sector 0, which is >+> > the default start offset in sysinstall. >+>=20 >+> The c partition is a problem you have to address anyway (and it is >+> best addressed by removing the magicness of the c partition >+> altogether). [...] > >It is not going to be removed. We're going to wait for MBR to die. s/MBR/BSDlabel/ -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-geom@FreeBSD.ORG Wed Feb 23 14:45:54 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 C1C5416A4D4; Wed, 23 Feb 2005 14:45:54 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A6FD43D46; Wed, 23 Feb 2005 14:45:54 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id CB1D4AC956; Wed, 23 Feb 2005 15:45:46 +0100 (CET) Date: Wed, 23 Feb 2005 15:45:46 +0100 From: Pawel Jakub Dawidek To: Dag-Erling Sm?rgrav Message-ID: <20050223144546.GY9291@darkness.comp.waw.pl> References: <16901.26814.588055.457273@satchel.alerce.com> <16902.27236.71619.138367@satchel.alerce.com> <20050206191209.GC1080@darkness.comp.waw.pl> <16902.28195.6589.299894@satchel.alerce.com> <20050211133917.GA45990@engelschall.com> <16923.20768.336451.133236@satchel.alerce.com> <86k6p0mj7x.fsf@xps.des.no> <20050222234728.GV9291@darkness.comp.waw.pl> <86u0o3lj82.fsf@xps.des.no> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Y46NoIcKQuicSz3X" Content-Disposition: inline In-Reply-To: <86u0o3lj82.fsf@xps.des.no> 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: hartzell@kestrel.alerce.com cc: "Ralf S. Engelschall" cc: freebsd-stable@FreeBSD.org cc: freebsd-geom@FreeBSD.org Subject: Re: Hardcoding gmirror provider 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, 23 Feb 2005 14:45:54 -0000 --Y46NoIcKQuicSz3X Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 23, 2005 at 10:27:09AM +0100, Dag-Erling Sm?rgrav wrote: +> Pawel Jakub Dawidek writes: +> > On Tue, Feb 22, 2005 at 09:29:38PM +0100, Dag-Erling Sm?rgrav wrote: +> > > George Hartzell writes: +> > > > I just skimmed through your comment about hardcoding the provider = name +> > > > if ad0 and ad0s1 have the same length. +> > > This wouldn't be a problem if gmirror, gstripe etc. placed metadata = at +> > > the start of the provider, like God intended, instead of at the end. +> > You won't be able to boot from the mirror then. +>=20 +> That's a special case, and it could have been solved differently (e.g. +> by teaching the boot loader to recognize gmirror metadata). It does +> not justify the similar breakage in gstripe and graid3. It was done for consistency, so I can centralize metadata handling in the future. I also don't think that teaching boot loader about gmirror is reasonable solution... The additional thing which can be stored in metadata in provider's size. This should fix discussed problems (except 'c' partition and 'a' at sector 0). --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --Y46NoIcKQuicSz3X Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFCHJcaForvXbEpPzQRAuSZAKDv6i1bENVDUlO00gWfKfT/esbzlACgqMmE d3N95NR1Vj0xJOG9sKL4P7E= =+lhw -----END PGP SIGNATURE----- --Y46NoIcKQuicSz3X-- From owner-freebsd-geom@FreeBSD.ORG Thu Feb 24 22:37:48 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 B62DF16A4CE for ; Thu, 24 Feb 2005 22:37:48 +0000 (GMT) Received: from sccrmhc11.comcast.net (sccrmhc14.comcast.net [204.127.202.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5DBF043D41 for ; Thu, 24 Feb 2005 22:37:48 +0000 (GMT) (envelope-from andy@firman.us) Received: from music (pcp0010742749pcs.howard01.md.comcast.net[69.243.82.98]) by comcast.net (sccrmhc14) with ESMTP id <2005022422374701400s7svfe>; Thu, 24 Feb 2005 22:37:47 +0000 Received: from andy by music with local (Exim 4.43) id 1D4Rb8-0003wI-5N for freebsd-geom@freebsd.org; Thu, 24 Feb 2005 17:36:42 -0500 Date: Thu, 24 Feb 2005 17:36:42 -0500 From: Andy Firman To: freebsd-geom@freebsd.org Message-ID: <20050224223641.GC15112@music> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6+20040907i Subject: bsdlabel problem for gmirror X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Andy Firman List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2005 22:37:48 -0000 I am following this guide exactly on 5.3-stable: http://people.freebsd.org/~rse/mirror/ and I am using 2 fresh Western Digital WD800JBRTL 80GB drives. The first time I did the gmirror "Approach 1: Whole Disk" it worked having one drive on ad0 and the other on ad2. Quick first question: Having each drive on a different controller is preferable right? The howto has the drives on ad0 and ad1 which would be same controller. The first time was practice. I have just failed to do it again 5 times in a row and I am really, really frustrated. I am most likely making a big mistake at this point: bsdlabel -e /dev/mirror/gm0s1 # create custom partitions So my second question is when you start "a" partition at offset 16, partitions "a" and "b" overlap. So how would you recommend making them NOT overlap? -------------------------------------- This is what the bsdlabel is/was for ad0s1: bash-2.05b# bsdlabel ad0s1 # /dev/ad0s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 10485760 0 4.2BSD 2048 16384 28552 b: 4194304 10485760 swap c: 156296322 0 unused 0 0 # "raw" part, don't edit d: 20971520 14680064 4.2BSD 2048 16384 28552 e: 120644738 35651584 4.2BSD 2048 16384 28552 ----------------------------------------- THIS IS REAL ONE for gm0s1 that I made and saved with no complaints: # /dev/mirror/gm0s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 10485744 16 4.2BSD 2048 16384 28552 b: 4194304 10485760 swap c: 156296322 0 unused 0 0 # "raw" part, don't edit d: 20971520 14680064 4.2BSD 2048 16384 28552 e: 120644738 35651584 4.2BSD 2048 16384 28552 --------------------------------------------- Thanks for any help. -Andy From owner-freebsd-geom@FreeBSD.ORG Fri Feb 25 11:28:42 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 BA5B116A4D1 for ; Fri, 25 Feb 2005 11:28:42 +0000 (GMT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id CDF3743D67 for ; Fri, 25 Feb 2005 11:28:40 +0000 (GMT) (envelope-from emanuel.strobl@gmx.net) Received: (qmail invoked by alias); 25 Feb 2005 11:28:39 -0000 Received: from flb.schmalzbauer.de (EHLO cale.flintsbach.schmalzbauer.de) (62.245.232.135) by mail.gmx.net (mp027) with SMTP; 25 Feb 2005 12:28:39 +0100 X-Authenticated: #301138 From: Emanuel Strobl To: freebsd-stable@freebsd.org Date: Fri, 25 Feb 2005 12:28:44 +0100 User-Agent: KMail/1.7.2 References: <62196.1109154268@critter.freebsd.dk> In-Reply-To: <62196.1109154268@critter.freebsd.dk> X-Birthday: 10/06/72 X-CelPhone: +49 173 9967781 X-Tel: +49 89 18947781 X-Country: Germany X-Address: Munich, 80686 X-OS: FreeBSD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart41105922.QQpvZ2DGXO"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200502251228.51939@harrymail> X-Y-GMX-Trusted: 0 cc: "Ralf S. Engelschall" cc: Dag-Erling Sm?rgrav cc: Poul-Henning Kamp cc: Pawel Jakub Dawidek cc: freebsd-geom@freebsd.org Subject: Booting from GPT on i386 [Re: Hardcoding gmirror provider] 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: Fri, 25 Feb 2005 11:28:42 -0000 --nextPart41105922.QQpvZ2DGXO Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Am Mittwoch, 23. Februar 2005 11:24 schrieb Poul-Henning Kamp: > >+> The c partition is a problem you have to address anyway (and it is > >+> best addressed by removing the magicness of the c partition > >+> altogether). [...] > > > >It is not going to be removed. We're going to wait for MBR to die. > > s/MBR/BSDlabel/ My servers boot from CF-Card so all my hard disks are GPT sliced only. Will it be possible to boot from GPT disks on i386(amd64)? Is anyone currently working on that?. That's what I'm really missing. Thanks, -Harry --nextPart41105922.QQpvZ2DGXO Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD4DBQBCHwvzBylq0S4AzzwRApp3AJ47K4BgjWfNRYUJMLQz+qmCr5oFyACWM8ys /aqISqLqz0UbJFLPGcq0GQ== =XL8T -----END PGP SIGNATURE----- --nextPart41105922.QQpvZ2DGXO--