So I can obviously see what zpools I have imported... but how do I see pools that have been exported? Kind of like being able to see deported volumes using "vxdisk -o alldgs list". Justin
Justin Lee Ewing wrote:> So I can obviously see what zpools I have imported... but how do I see > pools that have been exported? Kind of like being able to see > deported volumes using "vxdisk -o alldgs list". > > Justin > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discussslightly counter-intuitively: zfs import will list all pools which are available for importing (i.e. exported) -- Erik Trimble Java System Support Mailstop: usca22-123 Phone: x17195 Santa Clara, CA Timezone: US/Pacific (GMT-0800)
On 04/21/10 02:16 PM, Erik Trimble wrote:> Justin Lee Ewing wrote: >> So I can obviously see what zpools I have imported... but how do I >> see pools that have been exported? Kind of like being able to see >> deported volumes using "vxdisk -o alldgs list". >> >> Justin >> _______________________________________________ >> zfs-discuss mailing list >> zfs-discuss at opensolaris.org >> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss > > slightly counter-intuitively: > > zfs import > > > will list all pools which are available for importing (i.e. exported) > >zfs orrr... zpool import? Yeah... kinda counter-intuitive... I just didn''t want to import EVERYTHING ... was afraid doing a simple "zpool import" would do that. Thanks Erik!
On 21 April, 2010 - Justin Lee Ewing sent me these 0,3K bytes:> So I can obviously see what zpools I have imported... but how do I see > pools that have been exported? Kind of like being able to see deported > volumes using "vxdisk -o alldgs list".''zpool import'' /Tomas -- Tomas ?gren, stric at acc.umu.se, http://www.acc.umu.se/~stric/ |- Student at Computing Science, University of Ume? `- Sysadmin at {cs,acc}.umu.se
Hi Justin, Maybe I misunderstand your question... When you export a pool, it becomes available for import by using the zpool import command. For example: 1. Export tank: # zpool export tank 2. What pools are available for import: # zpool import pool: tank id: 7238661365053190141 state: ONLINE status: The pool is formatted using an older on-disk version. action: The pool can be imported using its name or numeric identifier, though some features will not be available without an explicit ''zpool upgrade''. config: tank ONLINE c1t2d0 ONLINE On 04/21/10 12:59, Justin Lee Ewing wrote:> So I can obviously see what zpools I have imported... but how do I see > pools that have been exported? Kind of like being able to see deported > volumes using "vxdisk -o alldgs list". > > Justin > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Justin Lee Ewing wrote:> On 04/21/10 02:16 PM, Erik Trimble wrote: >> Justin Lee Ewing wrote: >>> So I can obviously see what zpools I have imported... but how do I >>> see pools that have been exported? Kind of like being able to see >>> deported volumes using "vxdisk -o alldgs list". >>> >>> Justin >>> _______________________________________________ >>> zfs-discuss mailing list >>> zfs-discuss at opensolaris.org >>> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >> >> slightly counter-intuitively: >> >> zfs import >> >> >> will list all pools which are available for importing (i.e. exported) >> >> > > zfs orrr... zpool import? Yeah... kinda counter-intuitive... I just > didn''t want to import EVERYTHING ... was afraid doing a simple "zpool > import" would do that. Thanks Erik!Uhh, yeah, what Tomas said (need to put down the caffeine now...) zpool import Note that I''m pretty sure it will also show pools which are already imported on other systems (i.e. if you have shared storage, it will show pools which might already be active on other systems). However, if you try to import such a pool, you will get a warning and it will not import (you''d have to supply the ''-f'' flag to force such an import). -- Erik Trimble Java System Support Mailstop: usca22-123 Phone: x17195 Santa Clara, CA Timezone: US/Pacific (GMT-0800)
Ian Collins
2010-Apr-21 20:57 UTC
[zfs-discuss] [osol-discuss] Identifying what zpools are exported
On 04/22/10 06:59 AM, Justin Lee Ewing wrote:> So I can obviously see what zpools I have imported... but how do I see > pools that have been exported? Kind of like being able to see > deported volumes using "vxdisk -o alldgs list". >"zpool import", kind of counter intuitive! -- Ian.