Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Mar 2011 21:11:21 +0300 (MSK)
From:      Dmitry Morozovsky <marck@rinet.ru>
To:        Pawel Jakub Dawidek <pjd@FreeBSD.org>
Cc:        stable@FreeBSD.org
Subject:   gmirror start bug?
Message-ID:  <alpine.BSF.2.00.1103102105480.57402@woozle.rinet.ru>

next in thread | raw e-mail | index | archive | help
Dear Pawel,

it seems thet gmirror is entering the endless loop if one inserted disk with 
previously configured mirror part in syncronyzing state:

root@moose:/media/sata# gmirror list m0g
Geom name: m0g
State: STARTING
Components: 2
Balance: split
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 0
ID: 2992987948
Consumers:
1. Name: ad22g
   Mediasize: 272441875968 (254G)
   Sectorsize: 512
   Mode: r1w1e1
   State: NEW
   Priority: 0
   Flags: SYNCHRONIZING
   GenID: 0
   SyncID: 2
   ID: 3619189671

root@moose:/media/sata# gmirror stop m0g ; gmirror clear ad22g
Can't clear metadata on ad22g: Operation not permitted.
gmirror: Not fully done.

from kernel log:

Mar 10 21:04:31 <kern.crit> moose kernel: GEOM_MIRROR: Force device m0g start 
due to timeout.
Mar 10 21:04:31 <kern.crit> moose kernel: GEOM_MIRROR: Device m0g destroyed.
Mar 10 21:04:35 <kern.crit> moose kernel: GEOM_MIRROR: Force device m0g start 
due to timeout.
Mar 10 21:04:35 <kern.crit> moose kernel: GEOM_MIRROR: Device m0g destroyed.
Mar 10 21:04:39 <kern.crit> moose kernel: GEOM_MIRROR: Force device m0g start 
due to timeout.
Mar 10 21:04:39 <kern.crit> moose kernel: GEOM_MIRROR: Device m0g destroyed.

...

In my case, a workaround was: detach broken disk, configure mirror with the 
same name (I did it over md), then gmirror clear ad22g -- but I suppose this 
situation should be somehow detected and loop broken.

Thanks!



-- 
Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer:                                 marck@FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1103102105480.57402>