From nobody@FreeBSD.org  Thu Jun  9 03:55:14 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 6A93810656B0
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  9 Jun 2011 03:55:14 +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 0B0528FC2B
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  9 Jun 2011 03:55:08 +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 p593t7Dw097667
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 9 Jun 2011 03:55:07 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p593t757097666;
	Thu, 9 Jun 2011 03:55:07 GMT
	(envelope-from nobody)
Message-Id: <201106090355.p593t757097666@red.freebsd.org>
Date: Thu, 9 Jun 2011 03:55:07 GMT
From: Robert Simmons <rsimmons0@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: gpart unable to create GPT partitions inside of providers created by geli
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         157721
>Category:       bin
>Synopsis:       gpart(8) unable to create GPT partitions inside of providers created by geli
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-geom
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 09 04:00:16 UTC 2011
>Closed-Date:    Fri Jun 10 04:05:51 UTC 2011
>Last-Modified:  Fri Jun 10 04:05:51 UTC 2011
>Originator:     Robert Simmons
>Release:        8.2-RELEASE
>Organization:
>Environment:
FreeBSD  8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011    root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
After creating a geli encrypted provider using:
geli init -b -v -a hmac/sha512 -e aes-cbc -l 256 -s 4096 /dev/ad0p1
geli attach /dev/ad0p1

I am unable to partition the resulting provider with a GPT scheme with
gpart.  The BSD scheme works just fine, which is the workaround I am
using.

The error is as follows:
#gpart create -s GPT ad0p1.eli
gpart: provider: Device not configured

But, when I use a BSD scheme:
#gpart create -s GPT ad0p1.eli
ad0p1.eli created
>How-To-Repeat:
geli init -b -v -a hmac/sha512 -e aes-cbc -l 256 -s 4096 /dev/ad0p1
geli attach /dev/ad0p1
gpart create -s GPT ad0p1.eli
>Fix:
Not a real fix, but using BSD as the scheme allows you to at least
partition the provider.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-amd64->freebsd-geom 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Jun 9 21:22:35 UTC 2011 
Responsible-Changed-Why:  
Reclassify and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=157721 
State-Changed-From-To: open->closed 
State-Changed-By: marcel 
State-Changed-When: Fri Jun 10 04:04:50 UTC 2011 
State-Changed-Why:  
GPT does not nest. You cannot create a GPT table within a partition. 


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