On Wed, Aug 29, 2007 at 05:39:19PM +0100, Darren J Moffat wrote: > Eric Schrock wrote: > > You can use 'zdb -l <dev>' where 'dev' is a device in the pool, and then > > look for the 'pool_guid' line (note that this is "not an interface" and > > could theoretically change). An upcoming putback will add the guid as a > > first-class pool property, so that it can be used in 'zpool list' or > > 'zpool get'. > > Will 'zpool get -o guid/name' work even on an exported pool which is I > believe the original question.
No, the only way to do that is with 'zdb -l'. I was just mentioning it as an orthogonal FYI, since it won't help with device -> pool translations. Note that 'fstyp -v' does the same thing as 'zdb -l', and is marginally more stable. The output it still technically subject to change, but it's highly unlikely (given the pain such a change would cause). - Eric -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss