Discussion:
Finding Pool ID
Ajay Kumar
2008-04-29 15:27:18 UTC
Permalink
Folks,
How can I find out zpool id without using zpool import? zpool list
and zpool status does not have option as of Solaris 10U5.. Any back door
to grab this property will be helpful.


Thank you
Ajay
Eric Schrock
2008-04-29 16:23:02 UTC
Permalink
This is present as the 'guid' property in Solaris Nevada. If you're on
a previous release, you can do one of the following:

- 'zdb -l <device in pool>' and look for the 'pool_guid' property (if
you're using whole disks you'll still need the s0 slice).

- '::walk spa | ::print spa_t spa_name spa_root_vdev->vdev_guid' from
'mdb -k'.

Hope that helps,

- Eric
Post by Ajay Kumar
Folks,
How can I find out zpool id without using zpool import? zpool list
and zpool status does not have option as of Solaris 10U5.. Any back door
to grab this property will be helpful.
Thank you
Ajay
_______________________________________________
zfs-discuss mailing list
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
--
Eric Schrock, Fishworks http://blogs.sun.com/eschrock
Richard Elling
2008-04-29 16:51:01 UTC
Permalink
Post by Ajay Kumar
Folks,
How can I find out zpool id without using zpool import? zpool list
and zpool status does not have option as of Solaris 10U5.. Any back door
to grab this property will be helpful.
It seems to be a heck of a lot easier to just use zpool import without
the -a option and without a pool name. I'm curious as to why this
method will not work for you?
-- richard
Robert Milkowski
2008-04-29 17:14:08 UTC
Permalink
Hello Richard,
Post by Ajay Kumar
Folks,
How can I find out zpool id without using zpool import? zpool list
and zpool status does not have option as of Solaris 10U5.. Any back door
to grab this property will be helpful.
RE> It seems to be a heck of a lot easier to just use zpool import without
RE> the -a option and without a pool name. I'm curious as to why this
RE> method will not work for you?


IIRC it will work only for exported pools. You need to use zdb for
already imported pools.
--
Best regards,
Robert Milkowski mailto:***@task.gda.pl
http://milek.blogspot.com
Richard Elling
2008-04-29 17:27:39 UTC
Permalink
Post by Robert Milkowski
Hello Richard,
Post by Ajay Kumar
Folks,
How can I find out zpool id without using zpool import? zpool list
and zpool status does not have option as of Solaris 10U5.. Any back door
to grab this property will be helpful.
RE> It seems to be a heck of a lot easier to just use zpool import without
RE> the -a option and without a pool name. I'm curious as to why this
RE> method will not work for you?
IIRC it will work only for exported pools. You need to use zdb for
already imported pools.
zpool get guid [poolname] will display the GUID.
-- richard

Continue reading on narkive:
Loading...