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
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 On Tue, Apr 29, 2008 at 11:27:18AM -0400, Ajay Kumar wrote:> 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 > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss-- Eric Schrock, Fishworks http://blogs.sun.com/eschrock
Ajay Kumar wrote:> 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
Hello Richard, Tuesday, April 29, 2008, 5:51:01 PM, you wrote: RE> Ajay Kumar wrote:>> 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:milek at task.gda.pl http://milek.blogspot.com
Robert Milkowski wrote:> Hello Richard, > > Tuesday, April 29, 2008, 5:51:01 PM, you wrote: > > RE> Ajay Kumar wrote: > >>> 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