panic when loading mirror

Pawel Jakub Dawidek pjd at FreeBSD.org
Sat Apr 29 21:40:25 UTC 2006


On Sat, Apr 29, 2006 at 06:19:07PM -0300, Fernan Aguero wrote:
+> +----[ Pawel Jakub Dawidek <pjd at FreeBSD.org> (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.

+> | 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.

+> | +> 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.

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20060429/9ac0e7e5/attachment.pgp


More information about the freebsd-geom mailing list