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'.

- Eric

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.
> 
> Thanks!
> 
> --Balu
>  
>  
> This message posted from opensolaris.org
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

--
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

Reply via email to