From nobody@FreeBSD.org  Wed Mar 12 10:21:46 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 572491065670
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Mar 2008 10:21:46 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 43D4E8FC2D
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Mar 2008 10:21:46 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m2CAIT34049746
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Mar 2008 10:18:29 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m2CAITYh049745;
	Wed, 12 Mar 2008 10:18:29 GMT
	(envelope-from nobody)
Message-Id: <200803121018.m2CAITYh049745@www.freebsd.org>
Date: Wed, 12 Mar 2008 10:18:29 GMT
From: Adam Pordzik <tektonaut@fuckner.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Slices and Partitions listed twice in /dev
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         121640
>Category:       kern
>Synopsis:       [geom] Slices and Partitions listed twice in /dev
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    vwe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 12 10:30:01 UTC 2008
>Closed-Date:    Mon May 19 22:48:46 UTC 2008
>Last-Modified:  Mon May 19 22:48:46 UTC 2008
>Originator:     Adam Pordzik
>Release:        7.0-RELEASE
>Organization:
>Environment:
FreeBSD alix.lan.d-dt.de 7.0-RELEASE FreeBSD 7.0-RELEASE #7: Tue Mar  4 23:00:49 UTC 2008     root@brain.lan.d-dt.de:/usr/obj/usr/src/sys/ALIX  i386

>Description:
With some unmounted Partitions (here ad0s1d) on a ad(4) Disc-Devices nodes occurs twice in /dev:

//root@alix:/root> l /dev/ad*
crw-r-----  1 root  operator  -   0,  61 Mar 12 10:32:51 2008 /dev/ad0
crw-r-----  1 root  operator  -   0,  62 Mar 12 10:32:51 2008 /dev/ad0s1
crw-r-----  1 root  operator  -   0,  62 Mar 12 10:32:51 2008 /dev/ad0s1
crw-r-----  1 root  operator  -   0,  64 Mar 12 10:32:51 2008 /dev/ad0s1a
crw-r-----  1 root  operator  -   0,  64 Mar 12 10:32:51 2008 /dev/ad0s1a
crw-r-----  1 root  operator  -   0,  65 Mar 12 10:32:51 2008 /dev/ad0s1c
crw-r-----  1 root  operator  -   0,  65 Mar 12 10:32:51 2008 /dev/ad0s1c
crw-r-----  1 root  operator  -   0,  66 Mar 12 10:40:29 2008 /dev/ad0s1d
crw-r-----  1 root  operator  -   0,  66 Mar 12 10:40:29 2008 /dev/ad0s1d

# After mounting, everything looks good:

//root@alix:/root> mount /dev/ad0s1d /mnt
//root@alix:/root> l /dev/ad*
crw-r-----  1 root  operator  -   0,  61 Mar 12 10:32:51 2008 /dev/ad0
crw-r-----  1 root  operator  -   0,  62 Mar 12 10:32:51 2008 /dev/ad0s1
crw-r-----  1 root  operator  -   0,  64 Mar 12 10:32:51 2008 /dev/ad0s1a
crw-r-----  1 root  operator  -   0,  65 Mar 12 10:32:51 2008 /dev/ad0s1c
crw-r-----  1 root  operator  -   0,  66 Mar 12 10:40:29 2008 /dev/ad0s1d

>How-To-Repeat:
See above. NOT reproduced with da(4).

>Fix:


>Release-Note:
>Audit-Trail:

From: Tektonaut <tektonaut@fuckner.net>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/121640: Slices and Partitions listed twice in /dev
Date: Thu, 13 Mar 2008 12:09:59 +0100

 Meybe GEOM related? Does not occur with GENERIC-kernel,
 Used "options":
 
 $ strings /boot/BRAIN/kernel | grep 'options.GEOM_'
 options GEOM_VIRSTOR
 options GEOM_JOURNAL
 options GEOM_MIRROR
 options GEOM_VOL
 options GEOM_UZIP
 options GEOM_PART_MBR
 options GEOM_GATE
 options GEOM_ELI
 options GEOM_BDE
 options GEOM_LABEL
 options GEOM_PART_GPT
 options GEOM_MBR
 options GEOM_BSD
 
 and da(4) is also affect. 

From: Tektonaut <tektonaut@fuckner.net>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/121640: Slices and Partitions listed twice in /dev
Date: Fri, 14 Mar 2008 05:39:22 +0100

 I suppose it is due to these both options:
 
 options GEOM_PART_MBR
 options GEOM_MBR
 
 if so, what for two geom classes for MBR are required?
 Some verboseness in NOTES would be nice.
State-Changed-From-To: open->feedback 
State-Changed-By: vwe 
State-Changed-When: Tue Mar 18 23:10:01 UTC 2008 
State-Changed-Why:  

Please remove one of the MBR options and see if this will solve your problem. 
By default, GEOM_MBR is being used but you may also try if GEOM_PART_MBR works for you. 

After rebuilding your kernel, please check if GEOM configuration is fine by 
using: `config -x /boot/kernel/kernel | grep -ai geom' 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121640 
State-Changed-From-To: feedback->closed 
State-Changed-By: vwe 
State-Changed-When: Mon May 19 22:46:36 UTC 2008 
State-Changed-Why:  

unfortunately no feedback received. We strongly believe the problem is related 
to configure two similar GEOMs into kernel. 
If this issue still should not have been solved, we'll be happy to re-open 
this ticket if the submitter requests to do so. 


Responsible-Changed-From-To: freebsd-bugs->vwe 
Responsible-Changed-By: vwe 
Responsible-Changed-When: Mon May 19 22:46:36 UTC 2008 
Responsible-Changed-Why:  

track 

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