gmirror problems
Pawel Jakub Dawidek
pjd at FreeBSD.org
Mon Nov 8 03:55:11 PST 2004
On Mon, Nov 08, 2004 at 12:47:38PM +0100, Michael Riexinger wrote:
+> On Monday 08 November 2004 12:05, Pawel Jakub Dawidek wrote:
+> > 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.
+> Ok, done that:
+>
+> the messages are:
+> GEOM_MIRROR[2]: Tasting ad0.
+> magic: GEOM::MIRROR
+> version: 1
+> name: mirror0
+> did: 1626481947
+> all: 2
+> syncid: 1
+> priority: 0
+> slice: 4096
+> balance: load
+> mediasize: 20485785088
+> vectorsize: 512
+> syncoffset: 1297612800
+> mflags: NONE
+> dflags: DIRTY SYNCHONIZING
Ok, everything is clear now. You disconnected ad1, but ad0 was marked
for synchronization. It that case gmirror cannot find any valid component,
because the only one it can find is stale.
So:
1. You should test it when mirror is in complete state (then you can remove
any component).
2. You can remove ad0 and put ad1 to make your test.
+> GEOM_MIRROR[2]: Tasting ad0s1b.
If you have swap partition on your mirror, don't forget to add swapoff="YES"
to you rc.conf and use shutdown(8) command to reboot your machine.
--
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/4a7559bd/attachment.bin
More information about the freebsd-geom
mailing list