Date: Sat, 26 Mar 2005 13:16:30 +0000 From: Josef Karthauser <joe@FreeBSD.org> To: stable@freebsd.org Subject: Re: geom mirror Message-ID: <20050326131630.GD83888@genius.tao.org.uk> In-Reply-To: <20050326124835.GA60924@genius.tao.org.uk> References: <20050326124835.GA60924@genius.tao.org.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
--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: <UNUSED> The data for partition 3 is: <UNUSED> The data for partition 4 is: <UNUSED> --=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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050326131630.GD83888>