From nobody@FreeBSD.org  Fri Jun 10 09:53:54 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 98618106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 10 Jun 2011 09:53:54 +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 895738FC1C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 10 Jun 2011 09:53:54 +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 p5A9rrtG032475
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 10 Jun 2011 09:53:53 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p5A9rrwF032457;
	Fri, 10 Jun 2011 09:53:53 GMT
	(envelope-from nobody)
Message-Id: <201106100953.p5A9rrwF032457@red.freebsd.org>
Date: Fri, 10 Jun 2011 09:53:53 GMT
From: Vladimir Pushkar <v.pushkar@digital-ventures.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: GPT labels with geom_multipath
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         157739
>Category:       kern
>Synopsis:       [geom] GPT labels with geom_multipath
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-geom
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 10 10:00:17 UTC 2011
>Closed-Date:    
>Last-Modified:  Sat Jun 11 00:38:36 UTC 2011
>Originator:     Vladimir Pushkar
>Release:        8.2-STABLE
>Organization:
Digital-Ventures Ltd.
>Environment:
FreeBSD l9-host6.inside.digital-ventures.net 8.2-STABLE FreeBSD 8.2-STABLE #0: Fri Jun 10 11:31:14 EEST 2011     root@l9-host6.inside.digital-ventures.net:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
Geom label using GPT labels on geom multipath consumers instead of providers.


>How-To-Repeat:
Create multipath device configuration with gmultipath utility. F.Ex.:
          Name  Status  Components
multipath/data     N/A  da1
                        da2

Then create a GPT label on top of multipath device (in our example it will be /dev/multipath/data) with such command:
gpart add -t freebsd-zfs -l data /dev/multipath/data

and then after reboot in "glabel list" you can see:
Geom name: da1p1
Providers:
1. Name: gpt/data
   Mediasize: 7000000788480 (6.4T)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 17408
   Mode: r1w1e1
   secoffset: 0
   offset: 0
   seclength: 13671876540
   length: 7000000788480
   index: 0
Consumers:
1. Name: da1p1
   Mediasize: 7000000788480 (6.4T)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 17408
   Mode: r1w1e2

device da1p1 instead of multipath/data.

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-geom 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Jun 11 00:38:19 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer(s). 

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