Re: [zfs-discuss] zpool ids

2007-08-29 Thread Eric Schrock
On Wed, Aug 29, 2007 at 11:40:34PM +0530, Balu manyam wrote: > Thanks ,Eric - I am looking for a way to import a zpool which is a bit by > bit copy of the zpool(hence also the meta data) which is already imported on > the same host ..that is two pools one imported and one not are presented to > the

Re: [zfs-discuss] zpool ids

2007-08-29 Thread Bill Sommerfeld
On Wed, 2007-08-29 at 09:41 -0700, Eric Schrock wrote: > 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). If other programs depend on a

Re: [zfs-discuss] zpool ids

2007-08-29 Thread Eric Schrock
On Wed, Aug 29, 2007 at 10:29:50PM +0530, Balu manyam wrote: > Thanks!,Eric and Darren -- 'zdb -l ' was indeed what I was > looking for .. > > Also, Is there an easy way to change this ID manually - This would be > extremely useful in a SAN environment. No, there is no way to change it. - Eric

Re: [zfs-discuss] zpool ids

2007-08-29 Thread Eric Schrock
On Wed, Aug 29, 2007 at 05:39:19PM +0100, Darren J Moffat wrote: > Eric Schrock wrote: > > You can use 'zdb -l ' 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 t

Re: [zfs-discuss] zpool ids

2007-08-29 Thread Darren J Moffat
Eric Schrock wrote: > You can use 'zdb -l ' 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 'zpoo

Re: [zfs-discuss] zpool ids

2007-08-29 Thread Eric Schrock
You can use 'zdb -l ' 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'. - E

[zfs-discuss] zpool ids

2007-08-29 Thread Manyam
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 openso