From owner-freebsd-stable@FreeBSD.ORG Sat Mar 26 13:16:39 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 8086916A4CE for ; Sat, 26 Mar 2005 13:16:39 +0000 (GMT) Received: from mailhost.tao.org.uk (transwarp.tao.org.uk [212.135.162.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id A070143D54 for ; Sat, 26 Mar 2005 13:16:38 +0000 (GMT) (envelope-from joe@tao.org.uk) Received: from genius.tao.org.uk (genius.tao.org.uk [212.135.162.51]) by mailhost.tao.org.uk (Postfix) with ESMTP id 7B3E8753A for ; Sat, 26 Mar 2005 13:16:37 +0000 (GMT) Received: by genius.tao.org.uk (Postfix, from userid 100) id 6A89A40C1; Sat, 26 Mar 2005 13:16:30 +0000 (GMT) Date: Sat, 26 Mar 2005 13:16:30 +0000 From: Josef Karthauser To: stable@freebsd.org Message-ID: <20050326131630.GD83888@genius.tao.org.uk> Mail-Followup-To: Josef Karthauser , stable@freebsd.org References: <20050326124835.GA60924@genius.tao.org.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tNQTSEo8WG/FKZ8E" Content-Disposition: inline In-Reply-To: <20050326124835.GA60924@genius.tao.org.uk> User-Agent: Mutt/1.5.9i Subject: Re: geom mirror 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: Sat, 26 Mar 2005 13:16:39 -0000 --tNQTSEo8WG/FKZ8E Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 26, 2005 at 12:48:35PM +0000, Josef Karthauser wrote: > I'm trying to get a geom mirror up and running on a remote server across > two ide drives using the recipe below. I get as far as booting onto > the second ide drive using=20 >=20 > 1:ad(1,a)/boot/loader >=20 > at the boot block. The boot block complains that ad1 doesn't contain a > valid label however and refuses to boot. >=20 > There appears to be a valid label on the gm0 device: >=20 > jonah# disklabel mirror/gm0s1 > # /dev/mirror/gm0s1: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 2097152 0 4.2BSD 2048 16384 28552=20 > b: 6291456 2097152 swap =20 > c: 240121664 0 unused 0 0 # "raw" part, > don't edit > d: 41943040 8388608 4.2BSD 2048 16384 28552=20 > e: 41943040 50331648 4.2BSD 2048 16384 28552=20 > f: 20971520 92274688 4.2BSD 2048 16384 28552=20 > g: 84932416 113246208 4.2BSD 2048 16384 28552=20 > h: 41943040 198178624 4.2BSD 2048 16384 28552=20 >=20 > and there does appear to be an error on the ad1s1: >=20 > jonah# disklabel ad1s1 > # /dev/ad1s1: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 2097152 0 4.2BSD 2048 16384 28552=20 > b: 6291456 2097152 swap =20 > c: 240121664 0 unused 0 0 # "raw" part, > don't edit > d: 41943040 8388608 4.2BSD 2048 16384 28552=20 > e: 41943040 50331648 4.2BSD 2048 16384 28552=20 > f: 20971520 92274688 4.2BSD 2048 16384 28552=20 > g: 84932416 113246208 4.2BSD 2048 16384 28552=20 > h: 41943040 198178624 4.2BSD 2048 16384 28552=20 > disklabel: partition c doesn't cover the whole unit! > disklabel: An incorrect partition c may cause problems for standard > system utilities >=20 > Is this to be expected? What have I done wrong? >=20 Just replying to myself here. What is the relationship between geom mirror partitions and native ones, i.e. ad1s1 vs mirror/gm0s1? The disk labels above look spookily similar, but I didn't set a disklabel on ad1s1 manually. With respect to booting do the first stage boot blocks know anything about gmirror partitions? How is the linkage between native devices and gmirror devices done at boot time? Joe p.s.=20 My fdisk reports: jonah# fdisk ad1 ******* Working on device /dev/ad1 ******* parameters extracted from in-core disklabel are: cylinders=3D238216 heads=3D16 sectors/track=3D63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=3D238216 heads=3D16 sectors/track=3D63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 240121665 (117246 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 647/ head 15/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: --=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 --tNQTSEo8WG/FKZ8E Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iEYEARECAAYFAkJFYK0ACgkQXVIcjOaxUBbyngCcDgQQ5c6NUZbCYAP3s3luJjV1 gm8AoNKHkrJgwp5y1sjmWtNpcVhqkYBA =ODS7 -----END PGP SIGNATURE----- --tNQTSEo8WG/FKZ8E--