kern/162342: FreeBSD hides gpt labels after mounting ZFS partitions

Garrett Wollman wollman at hergotha.csail.mit.edu
Mon Nov 7 04:20:10 UTC 2011


The following reply was made to PR kern/162342; it has been noted by GNATS.

From: Garrett Wollman <wollman at hergotha.csail.mit.edu>
To: jeff at bovine.net
Cc: freebsd-gnats-submit at 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 at 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
 


More information about the freebsd-bugs mailing list