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. > On Wed, Aug 29, 2007 at 09:02:50AM -0700, Manyam wrote: >> Hi folks -- >> What's the best way to get the id associated with a zpool name(without >> importing it if it is already not done so) -- that is - given the disk >> device name - I would to love get the ID of the zpool of which this disk is >> a part of. -- Darren J Moffat _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss