From owner-freebsd-current@FreeBSD.ORG Fri Nov 14 17:41:35 2003 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 8809C16A4CE for ; Fri, 14 Nov 2003 17:41:35 -0800 (PST) Received: from genius.tao.org.uk (genius.tao.org.uk [212.135.162.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 93D1043F75 for ; Fri, 14 Nov 2003 17:41:34 -0800 (PST) (envelope-from joe@genius.tao.org.uk) Received: by genius.tao.org.uk (Postfix, from userid 100) id 28AA4478B; Sat, 15 Nov 2003 01:41:33 +0000 (GMT) Date: Sat, 15 Nov 2003 01:41:33 +0000 From: Josef Karthauser To: Poul-Henning Kamp Message-ID: <20031115014133.GB31237@genius.tao.org.uk> Mail-Followup-To: Josef Karthauser , Poul-Henning Kamp , current@FreeBSD.org References: <20031114232009.GA31237@genius.tao.org.uk> <9494.1068852730@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GRPZ8SYKNexpdSJ7" Content-Disposition: inline In-Reply-To: <9494.1068852730@critter.freebsd.dk> User-Agent: Mutt/1.5.4i cc: current@FreeBSD.org Subject: Re: Using Geom to mirror root partitions? 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, 15 Nov 2003 01:41:35 -0000 --GRPZ8SYKNexpdSJ7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Nov 15, 2003 at 12:32:10AM +0100, Poul-Henning Kamp wrote: > In message <20031114232009.GA31237@genius.tao.org.uk>, Josef Karthauser w= rites: >=20 > >I've got a machine with two drives 120gb drives, which is going to a > >colo. If I configure it to use one drive, will I at some point be able > >to remotely reconfigure it to say use the second drive as a mirror as > >the physical layer, i.e. if the first drive goes bang then I can get the > >second drive to boot via the bios and still have the machine work - or > >am I dreaming? >=20 > The main problem here (currently) is the bootblocks and /etc/fstab. >=20 > We had some work on geom_mirror recently which I have not yet had > time to look at. If that is done right, it should be possible to > set it up like you say. >=20 > In order to "fool" the bootblocks, geom_mirror would have to be able > to use a meta-data sector at the end of the partition rather than at > the beginning. With that in place it should "just work", since the > device in /etc/fstab would then be the geom_mirror device and GEOM > should be able to offer that for root mounting. >=20 What's the best way to prepare for this? Should I leave some unallocated space at the beginning of the disk so that any magic geom bits can be inserted later? Joe --=20 Josef Karthauser (joe@tao.org.uk) http://www.josef-k.net/ FreeBSD (cvs meister, admin and hacker) http://www.uk.FreeBSD.org/ Physics Particle Theory (student) http://www.pact.cpes.sussex.ac.uk/ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D An eclectic mix of fact an= d theory. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --GRPZ8SYKNexpdSJ7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iEYEARECAAYFAj+1hEwACgkQXVIcjOaxUBaTUgCglhIiDiXx8feXY0DZztJXg3Pc Xv8An08oHL4Ylub+4ECG869PNesEPEnK =6UIn -----END PGP SIGNATURE----- --GRPZ8SYKNexpdSJ7--