It's perfectly reasonable to have multiple exported/destroyed pools with the same name. Pool names are unique only when active on the system. This is why 'zpool import' also prints out the pool GUID and allows import by ID, instead of just names. In your output below, you'd see that each pool has a differnt ID, and you could chooose your pool based on this information, and optionally rename it to a non-conflicting name when you actually do the import.
- Eric On Mon, Feb 26, 2007 at 07:00:30AM -0800, dudekula mastan wrote: > > Hi All, > > I have a zpool (name as testpool) on /dev/dsk/c0t0d0. > > The command $zpool import testpool, imports the testpool (means mount the > testpool). > > How the import command comes to know testpool created on /dev/dsk/c0t0d0 ? > > And also the command $zpool import, list out all the zpools which we can > import, How it list our them ? > > Please take a look into the following sequence of commands > > //Create testpool on /dev/dsk/c0t0d0 and destroy it > #zpool create testpool /dev/dsk/c0t0d0 > #zpool destroy testpool > > //create testpool on /dev/dsk/c0t0d1 and destroy it > #zpool create testpool /dev/dsk/c0t0d1 > #zpool destroy testpool > > //now list out all the zpools which are destroyed > #zpool import -D > > The above command lists two testpools one on c0t0d0 and another on > c0t0d1.... > > Actually at any time we can create (import) only one pool with one name. > But the above command listing two different pools with same name. Whats wrong > with import command ? > > How a ZFS system knows about which device belongs to which pool ? > is Zpool import command read any info on the disk to know about to which > pool this disk belongs ? > > Your help is appreciated. > > Thanks & Regards > -Masthan > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------- > Be a PS3 game guru. > Get your game face on with the latest PS3 news and previews at Yahoo! Games. > _______________________________________________ > 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