From gregory@tahoe.acn.waw.pl  Mon Apr 14 00:48:16 2008
Return-Path: <gregory@tahoe.acn.waw.pl>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 3992A106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 14 Apr 2008 00:48:16 +0000 (UTC)
	(envelope-from gregory@tahoe.acn.waw.pl)
Received: from tahoe.czaplinski.net (arm133.internetdsl.tpnet.pl [83.17.198.133])
	by mx1.freebsd.org (Postfix) with ESMTP id E50988FC12
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 14 Apr 2008 00:48:14 +0000 (UTC)
	(envelope-from gregory@tahoe.acn.waw.pl)
Received: from tahoe.acn.waw.pl (localhost [127.0.0.1])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by tahoe.czaplinski.net (Postfix) with ESMTP id 7520A17191
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 11 Apr 2008 19:00:56 +0200 (CEST)
Received: (from gregory@localhost)
	by tahoe.acn.waw.pl (8.13.6/8.13.6/Submit) id m3BH0tYK076807;
	Fri, 11 Apr 2008 19:00:55 +0200 (CEST)
	(envelope-from gregory)
Message-Id: <200804111700.m3BH0tYK076807@tahoe.acn.waw.pl>
Date: Fri, 11 Apr 2008 19:00:55 +0200 (CEST)
From: Grzegorz Czaplinski <gregory@tahoe.acn.waw.pl>
Reply-To: Grzegorz Czaplinski <gregory@tahoe.acn.waw.pl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: gmirror list "losts consumers" after gmirror deactivate command
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         122738
>Category:       kern
>Synopsis:       [geom] gmirror list "losts consumers" after gmirror deactivate command
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-geom
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 14 00:50:03 UTC 2008
>Closed-Date:    
>Last-Modified:  Thu May 28 22:17:15 UTC 2009
>Originator:     Grzegorz Czaplinski
>Release:        FreeBSD 6.3-RELEASE i386
>Organization:
>Environment:
FreeBSD mufasa.systemics.pl 6.3-RELEASE FreeBSD 6.2-RELEASE-p8 #1: Sat Nov  3 13:57:26 CET 2007     root@:/usr/obj/usr/src/sys/MUFASA  i386

	
>Description:
	gmirror list after gmirror deactivate command
>How-To-Repeat:
	 gmirror deactivate gm0 ad1; gmirror list
>Fix:

After  gmirror deactivate gm0 ad1 command
ad1 consumer disappers from the configration. This is very misleading.

# gmirror status
      Name    Status  Components
      mirror/gm0  COMPLETE  ad0
                            ad1

# gmirror deactivate gm0 ad1

# gmirror status
      Name    Status  Components
      mirror/gm0  DEGRADED  ad0

gmirror list reports State: DEGRADED and ad1 is also gone.

# gmirror list
Geom name: gm0
State: DEGRADED
Components: 2
Balance: round-robin
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 2
ID: 2378501857
Providers:
1. Name: mirror/gm0
   Mediasize: 160041885184 (149G)
   Sectorsize: 512
   Mode: r6w6e7
Consumers:
1. Name: ad0
   Mediasize: 160041885696 (149G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 1
   Flags: NONE
   GenID: 0
   SyncID: 2
   ID: 227080134
In my opinion, gmirror list should ad1 consumer as deactivated.

pjd@freebsd.org will take care of this pr.
Thanks,
gregory
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-geom 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Apr 14 04:03:13 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=122738 
Responsible-Changed-From-To: freebsd-geom->pjd 
Responsible-Changed-By: pjd 
Responsible-Changed-When: pon 14 kwi 06:33:18 2008 UTC 
Responsible-Changed-Why:  
I requested for it, so I'll take it. Thanks Grzegorz. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=122738 
Responsible-Changed-From-To: pjd->freebsd-geom 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu May 28 22:17:06 UTC 2009 
Responsible-Changed-Why:  
pjd is not actively working on GEOM at the moment. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=122738 
>Unformatted:
