'gmirror stop' instantly restarts mirror

Pawel Jakub Dawidek pjd at FreeBSD.org
Wed Jul 29 14:08:16 UTC 2009


On Tue, Jul 28, 2009 at 10:59:41PM +0200, Harald Schmalzbauer wrote:
> Hello,
> 
> I can't remember when I last used it, but doing 'gmirror stop RAIDNAME' 
> should destroy the mirror and stay off, right?
> With today's -current I get:
> GEOM_MIRROR: Device TEST: provider mirror/TEST destroyed.
> GEOM_MIRROR: Device TEST destroyed.
> GEOM_MIRROR: Device mirror/TEST launched (2/2)
> 
> So the mirror gets relaunchend immediately after destroyed.
> No idea what could be wrong.

The problem might be that you have two GEOM provider representing
exactly the same media, eg. ad0 and ad0c.

Could you send output of:

	# gmirror status TEST
	# gmirror stop TEST
	# gmirror status TEST

You may also want to set kern.geom.mirror.debug to 2 before doing this.

-- 
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-current/attachments/20090729/2e704cfc/attachment.pgp


More information about the freebsd-current mailing list