gmirror problems

Pawel Jakub Dawidek pjd at FreeBSD.org
Mon Nov 8 03:05:57 PST 2004


On Mon, Nov 08, 2004 at 11:40:57AM +0100, Michael Riexinger wrote:
+> Hi, 
+> 
+> I set up FreeBSD 5.3 with gmirror for my 2 ide disks ad0 and ad1. So the 
+> rootfs is included in the mirror. I wanted to test what happens when 
+> one disk fails, so I removed ad1. Unfortunately after a reboot the 
+> system didn't boot anymore with the error: 
+> GEOM_MIRROR: Force device mirror0 start due to timeout 
+> and
+> GEOM_MIRROR: Device mirror0 destroyed

Could you add:

kern.geom.mirror.debug=2

to your /boot/loader.conf and try to boot without ad1 again.
It should start mirror with only one component (ad0) connected after
this timeout and now it looks like it can't find any component.

+> [...] My next test was putting ad1 off and replacing it with a new 
+> hd, did that, rebooted and again:
+> 
+> GEOM_MIRROR: Force device mirror0 start due to timeout 
+> and
+> GEOM_MIRROR: Device mirror0 destroyed
+> 
+> Why is that? Shouldn't gmirror detect the new drive and rebuild the 
+> mirror?

There is no metadata on this new disk, so it can't be just rebuilt,
you have to first add it to the mirror and ewentually remove the old one.
Look at 'remove'/'insert'/'forget' commands in gmirror(8).

-- 
Pawel Jakub Dawidek                       http://www.FreeBSD.org
pjd at FreeBSD.org                           http://garage.freebsd.pl
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/20041108/94efc480/attachment.bin


More information about the freebsd-geom mailing list