From owner-freebsd-geom@FreeBSD.ORG Sun Apr 30 15:53:28 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 2FFAC16A423; Sun, 30 Apr 2006 15:53:28 +0000 (UTC) (envelope-from fernan@iib.unsam.edu.ar) Received: from smtp.unsam.edu.ar (smtp.unsam.edu.ar [170.210.48.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C1E843D79; Sun, 30 Apr 2006 15:53:14 +0000 (GMT) (envelope-from fernan@iib.unsam.edu.ar) Received: from omega.iib.unsam.edu.ar (omega.iib.unsam.edu.ar [192.168.10.14]) by smtp.unsam.edu.ar (8.12.6/8.12.6) with ESMTP id k3UFtG3u069674; Sun, 30 Apr 2006 12:55:16 -0300 (ART) (envelope-from fernan@iib.unsam.edu.ar) Received: from omega.iib.unsam.edu.ar (localhost [127.0.0.1]) by omega.iib.unsam.edu.ar (8.13.4/8.13.4) with ESMTP id k3UFqrCA078947; Sun, 30 Apr 2006 12:52:53 -0300 (ART) (envelope-from fernan@iib.unsam.edu.ar) Received: (from fernan@localhost) by omega.iib.unsam.edu.ar (8.13.4/8.13.3/Submit) id k3UFqr10078946; Sun, 30 Apr 2006 12:52:53 -0300 (ART) (envelope-from fernan@iib.unsam.edu.ar) X-Authentication-Warning: omega.iib.unsam.edu.ar: fernan set sender to fernan@iib.unsam.edu.ar using -f Date: Sun, 30 Apr 2006 12:52:53 -0300 From: Fernan Aguero To: Pawel Jakub Dawidek Message-ID: <20060430155253.GB71384@iib.unsam.edu.ar> References: <20060428171226.GG62606@iib.unsam.edu.ar> <20060429145525.GJ4896@garage.freebsd.pl> <20060429211907.GA2855@iib.unsam.edu.ar> <20060429213842.GM4896@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060429213842.GM4896@garage.freebsd.pl> User-Agent: Mutt/1.5.11 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: Sun, 30 Apr 2006 15:53:28 -0000 +----[ Pawel Jakub Dawidek (29.Apr.2006 18:44): | | 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. | +> | +> Pawel, | +> | +> thanks for your reply. | +> | +> 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/ | +> | +> # 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 | +> | +> the provider is already a slice, only partitions are done after | +> configuring and loading the mirror ... | +> | +> 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. OK, thanks for the clarification. | +> | To fix it you need to clear the old metadata first. | +> | +> 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=/dev/zero of=/dev/ad0s1 count=16 | | This will destroy all your partitions. got it now. I'll try that next tuesday when I get back to the lab. However, just for the record, these slices never had any partitions ... I just created them when installing the box, but didn't do anything with them till now (all the partitions were created in the 's2' slices). | +> | +> 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... | +> | +> That's what I thought. Should I file a PR? Under which | +> category? | | Your report is not the first one related to the problem, so I wouldn't | be surprised if there is already PR describing it. I couldn't fint it ... but I was looking at open PRs only ... maybe it was already committed to -CURRENT and closed? I'll keep looking ... Fernan | -- | Pawel Jakub Dawidek http://www.wheel.pl | pjd@FreeBSD.org http://www.FreeBSD.org | FreeBSD committer Am I Evil? Yes, I Am! | +----]