Re: 'gmirror stop' instantly restarts mirror

From: Pawel Jakub Dawidek <pjd_at_FreeBSD.org>
Date: Wed, 29 Jul 2009 16:08:19 +0200
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!

Received on Wed Jul 29 2009 - 12:08:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:52 UTC