Bug 122738 - [geom] gmirror list "losts consumers" after gmirror deactivate command
Summary: [geom] gmirror list "losts consumers" after gmirror deactivate command
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 6.3-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-14 01:50 UTC by Grzegorz Czaplinski
Modified: 2018-01-03 05:15 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grzegorz Czaplinski 2008-04-14 01:50:03 UTC
	gmirror list after gmirror deactivate command

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
How-To-Repeat: 	 gmirror deactivate gm0 ad1; gmirror list
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2008-04-14 05:03:13 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-geom

Over to maintainer(s).
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2009-05-28 23:17:06 UTC
Responsible Changed
From-To: pjd->freebsd-geom

pjd is not actively working on GEOM at the moment.
Comment 3 Pawel Jakub Dawidek freebsd_committer freebsd_triage 2014-06-01 06:46:56 UTC
Responsible Changed
From-To: freebsd-geom->pjd

I requested for it, so I'll take it. Thanks Grzegorz.
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:57 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped