From nobody@FreeBSD.org  Thu Jul 21 16:49:55 2011
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 1FF42106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 21 Jul 2011 16:49:55 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 0F6E38FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 21 Jul 2011 16:49:55 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p6LGnsZL031783
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 21 Jul 2011 16:49:54 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p6LGnsG8031782;
	Thu, 21 Jul 2011 16:49:54 GMT
	(envelope-from nobody)
Message-Id: <201107211649.p6LGnsG8031782@red.freebsd.org>
Date: Thu, 21 Jul 2011 16:49:54 GMT
From: Michael Wayne <wayne@staff.msen.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: GEOM fails to scan nested partitions to create subdevices
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         159091
>Category:       kern
>Synopsis:       [geom] GEOM fails to scan nested partitions to create subdevices
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-geom
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 21 16:50:12 UTC 2011
>Closed-Date:    Sun Nov 06 19:12:04 UTC 2011
>Last-Modified:  Sun Nov 06 19:12:04 UTC 2011
>Originator:     Michael Wayne
>Release:        6.3 / 8.2
>Organization:
Msen, Inc.
>Environment:
8.2-RELEASE FreeBSD 8.2-RELEASE #0
>Description:
Since at least 2006, we have used bsdlabel on slices to make "nested" slices. An example would be:
`bsdlabel -w /dev/ad0s1e` - creating /dev/ad0s1ea

In trying to set up a new server, I did this in the expected way. bsdlabel works correctly on 8.2, creating the nested slices. However, GEOM fails to create the appropriate /dev entry on 8.2 (works correctly on 6.X, have not tried on 7.X).

I brought this up on #freebsd, the suggestion was to use ZFS. But, this means that it is not possible to upgrade existing 6.X servers that use this feature to a recent FreeBSD. I am presuming that this is just an oversight.

Here is a thread from 2006 mentioning this feature:
http://freebsd.1045724.n5.nabble.com/disklabel-differences-FreeBSD-DragonFly-td4038161i20.html

>How-To-Repeat:
bsdlabel -w <slice>
bsdlabel -e <slice>
Create several nested slices. GEOM will not create the appropriate /dev subdevices
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-geom 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Jul 21 20:01:31 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159091 

From: "Andrey V. Elsukov" <bu7cher@yandex.ru>
To: bug-followup@FreeBSD.org, wayne@staff.msen.com
Cc:  
Subject: Re: kern/159091: [geom] GEOM fails to scan nested partitions to create
 subdevices
Date: Fri, 22 Jul 2011 00:29:58 +0400

 Hi,
 
 GEOM_PART_BSD does not support nested partitions.
 If you want to create many partitions you can create GPT partition
 table. It supports more than 128 partitions. Also you can use "-n"
 option for `gpart create` command. BSD scheme supports maximum 20
 partitions.
 
 -- 
 WBR, Andrey V. Elsukov
State-Changed-From-To: open->closed 
State-Changed-By: ae 
State-Changed-When: Sun Nov 6 19:09:19 UTC 2011 
State-Changed-Why:  
I'm sorry, but we do not support nested BSD schemes. 
So, this is by design, not a bug. I close this PR. 

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