From owner-freebsd-geom@FreeBSD.ORG Sat Apr 29 21:40:24 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 EED6F16A401 for ; Sat, 29 Apr 2006 21:40:24 +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 E9FE643D45 for ; Sat, 29 Apr 2006 21:40:23 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id CEFD252C10; Sat, 29 Apr 2006 23:40:21 +0200 (CEST) Received: from localhost (dkw154.neoplus.adsl.tpnet.pl [83.24.26.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 7106B50B0D; Sat, 29 Apr 2006 23:40:15 +0200 (CEST) Date: Sat, 29 Apr 2006 23:38:42 +0200 From: Pawel Jakub Dawidek To: Fernan Aguero Message-ID: <20060429213842.GM4896@garage.freebsd.pl> References: <20060428171226.GG62606@iib.unsam.edu.ar> <20060429145525.GJ4896@garage.freebsd.pl> <20060429211907.GA2855@iib.unsam.edu.ar> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uwB7x3tnyrZQfZJI" Content-Disposition: inline In-Reply-To: <20060429211907.GA2855@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 21:40:25 -0000 --uwB7x3tnyrZQfZJI Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 29, 2006 at 06:19:07PM -0300, Fernan Aguero wrote: +> +----[ Pawel Jakub Dawidek (29.Apr.2006 12:02): +> | You should configure both slices and partitions on mirrored provider. +>=20 +> Pawel, +>=20 +> thanks for your reply.=20 +>=20 +> If you say that I should set up the mirror first and then +> slice and partition, I cannot but trust. But this is not +> what I see here: http://people.freebsd.org/~rse/mirror/ +>=20 +> # place a GEOM mirror label onto first slice of second disk +> # (actually on the last block of the disk slice) +> gmirror label -v -n -b round-robin gm0s1 /dev/ad1s1 +>=20 +> the provider is already a slice, only partitions are done after +> configuring and loading the mirror ... +>=20 +> I'll try what you suggest, but I'll have to reintall the +> whole box to do that. Sorry, you have to have slices when you configure mirror on top of them. Everything below (in your case partitions) you should configure on a mirror device. +> | To fix it you need to clear the old metadata first. +>=20 +> I'm not following you here ... what metadata? The one added +> by 'gmirror label'? Or metadata added by the normal +> fdisk/disklabel process that I do when first installing the +> box? The latter. You can do it with gmirror turned off with this command: # dd if=3D/dev/zero of=3D/dev/ad0s1 count=3D16 This will destroy all your partitions. +> | +> Or is this something that is expected to happen and should +> | +> be fixed? +> |=20 +> | This shouldn't act that way and panic your box for sure... +>=20 +> That's what I thought. Should I file a PR? Under which +> category?=20 Your report is not the first one related to the problem, so I wouldn't be surprised if there is already PR describing it. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --uwB7x3tnyrZQfZJI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFEU9ziForvXbEpPzQRAtLPAJ9FPb1SgS4L/bJ5ueAeR5k6NyuGNQCeMnH+ 2hP3ujZUDHD6C4vrsivfliY= =Kxtt -----END PGP SIGNATURE----- --uwB7x3tnyrZQfZJI--