From owner-freebsd-geom@FreeBSD.ORG Sat Apr 29 14:57:04 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org 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 D360B16A401 for ; Sat, 29 Apr 2006 14:57:04 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F85143D48 for ; Sat, 29 Apr 2006 14:57:04 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 4CA7A52BC5; Sat, 29 Apr 2006 16:57:02 +0200 (CEST) Received: from localhost (dli137.neoplus.adsl.tpnet.pl [83.24.38.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 1244F50BC1; Sat, 29 Apr 2006 16:56:55 +0200 (CEST) Date: Sat, 29 Apr 2006 16:55:25 +0200 From: Pawel Jakub Dawidek To: Fernan Aguero Message-ID: <20060429145525.GJ4896@garage.freebsd.pl> References: <20060428171226.GG62606@iib.unsam.edu.ar> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Do4IU1xF/9sod/r6" Content-Disposition: inline In-Reply-To: <20060428171226.GG62606@iib.unsam.edu.ar> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r535 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_00,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: panic when loading mirror X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Apr 2006 14:57:05 -0000 --Do4IU1xF/9sod/r6 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 28, 2006 at 02:12:26PM -0300, Fernan Aguero wrote: +> Hi, +>=20 +> I'm playing with gmirror on a box with a pair of spare +> slices before installing a production box. +>=20 +> The box is running 6.1-RC (i386), and has two identical +> disks (ad0, ad2) already sliced and partitioned: +>=20 +> ad0: +> ad0s1 unused slice +> ad0s2 ad0s2b (swap), ad0s2a (/), ad0s2d (/var), ad0s2e (/usr) ... +>=20 +> ad2: +> ad2s1 unused slice +> ad2s2 ad2s2b (swap), ad2s2d (/tmp), ad2s2e (/usr/ports) ... +>=20 +> My idea was to use the unused slices (identical in size) to +> set up a geom mirror. +>=20 +> After reading the man pages and the following guides +> http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html?page=3D1 +> http://people.freebsd.org/~rse/mirror/ +> this is what I did: +>=20 +> # gmirror label -v -b round-robin gm0s1 ad0s1 ad2s1 +> Metadata value stored on ad0s1. +> Metadata value stored on ad2s1. +> Done. +>=20 +> But then attempting to load the mirror, causes a system +> panic. I'm copying the messages by hand, so excuse any typo. +> Also, I'm copying what I see on the screen ... I can't know +> if there were other errors before the ones I'm transcribing +> (capturing the session with script(1) doesn't help here). +>=20 +> # gmirror load +> WARNING: Expected rawoffset 0, found 63 +> WARNING: Device name truncated! (mirror/gsm0s1ccccccccccccc...c) +> [ this is repeated several times. gsm0s1 is followed above +> by 51 'c's) ] +>=20 +> Fatal double fault: +> eip =3D 0xc04a7982 +> esp =3D 0xe2244ff4 +> ebp =3D 0xe2245038 +> panic: double fault +>=20 +>=20 +> My questions: +>=20 +> did I do something wrong? (maybe the system shouldn't let me +> instead of entering into a panic ...) +>=20 +> Was this caused because I used already sliced and +> partitioned disks? The second example in the guide written +> by rse uses slices ...=20 You should configure both slices and partitions on mirrored provider. To fix it you need to clear the old metadata first. +> Or is this something that is expected to happen and should +> be fixed? This shouldn't act that way and panic your box for sure... --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --Do4IU1xF/9sod/r6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFEU35dForvXbEpPzQRAvmJAKDS2VokgjOAWc+JAQqNlOvg5CZcTwCghsNM KwcZrXdm/nX5RMRqFhcuLL8= =C86k -----END PGP SIGNATURE----- --Do4IU1xF/9sod/r6--