From owner-freebsd-bugs@FreeBSD.ORG Mon Nov 7 04:20:10 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A799106564A for ; Mon, 7 Nov 2011 04:20:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 897288FC12 for ; Mon, 7 Nov 2011 04:20:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id pA74KAbP060354 for ; Mon, 7 Nov 2011 04:20:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id pA74KAav060353; Mon, 7 Nov 2011 04:20:10 GMT (envelope-from gnats) Date: Mon, 7 Nov 2011 04:20:10 GMT Message-Id: <201111070420.pA74KAav060353@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Garrett Wollman Cc: Subject: Re: kern/162342: FreeBSD hides gpt labels after mounting ZFS partitions X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Garrett Wollman List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Nov 2011 04:20:10 -0000 The following reply was made to PR kern/162342; it has been noted by GNATS. From: Garrett Wollman To: jeff@bovine.net Cc: freebsd-gnats-submit@freebsd.org Subject: Re: kern/162342: FreeBSD hides gpt labels after mounting ZFS partitions Date: Sun, 6 Nov 2011 23:17:04 -0500 (EST) jeff@bovine.net submitted the following bug report: >If you use "gpart" to create a GPT disk with partitions that have gpt >labels defined, then those labels are normally visible in /dev/gpt/ > >However, once any of those partitions are used by a ZFS pool that is >imported, the label disappears from /dev/gpt/ Not in my experience. They only disappear if ZFS is opening the underlying partition devices rather than the label devices -- i.e., in the usual case, you did a "zpool create foo /dev/ada0p2 /dev/ada1p2" rather than "zpool create foo /dev/gpt/data0 /dev/gpt/data1". I suppose that if you created the filesystem on another device and let "zfs import" find it by groveling around through all the GEOM providers on the system, this might happen. What does "strings /boot/zfs/zpool.cache | fgrep /dev" say? -GAWollman