Hello zfs-discuss, I do have several pools in a SAN shared environment where some pools are mounted by one server and some by another. Now I can do ''zpool export A B C D'' But I can''t do ''zpool import A B C D'' import -a isn''t an option since I want import only those pools I just exported. It''s not a big deal but it''s annoying I can''t import these pool with one command line like I can export them. Ideally I should just go to shell history and change export to import and voila! -- Best regards, Robert mailto:rmilkowski at task.gda.pl http://milek.blogspot.com
This seems like a reasonable RFE. Feel free to file it at bugs.opensolaris.org. - Eric On Wed, Aug 16, 2006 at 06:44:44AM +0200, Robert Milkowski wrote:> Hello zfs-discuss, > > I do have several pools in a SAN shared environment where some pools > are mounted by one server and some by another. > > Now I can do ''zpool export A B C D'' > But I can''t do ''zpool import A B C D'' > > import -a isn''t an option since I want import only those pools I > just exported. > > It''s not a big deal but it''s annoying I can''t import these pool with > one command line like I can export them. Ideally I should just go to > shell history and change export to import and voila! > > -- > Best regards, > Robert mailto:rmilkowski at task.gda.pl > http://milek.blogspot.com > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss-- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock
Hello Eric, Wednesday, August 16, 2006, 4:49:27 PM, you wrote: ES> This seems like a reasonable RFE. Feel free to file it at ES> bugs.opensolaris.org. I''ve just did :) However currently ''zpool import A B'' means importing pool A and renaming it to pool B. I think it would be better to change current behavior and rename only with given switch like ''zpool import A -n B'' or something like that and ''zpool import A B'' (zpool import pool ... ...) means importing all those specified pools. That way it will be more intuitive and consistent with zpool export. What do you think?
On Thu, Aug 17, 2006 at 02:20:47PM +0200, Robert Milkowski wrote:> > I''ve just did :) > > However currently ''zpool import A B'' means importing pool A and > renaming it to pool B. > > I think it would be better to change current behavior and rename only > with given switch like ''zpool import A -n B'' or something like that > and ''zpool import A B'' (zpool import pool ... ...) means importing all > those specified pools. That way it will be more intuitive and > consistent with zpool export. > > What do you think?Hmmm, good point. Unfortunately we can''t change the behavior of ''zpool import A B'' since it would break backwards compatibility. However, we might be able to have something like ''zpool import -m A B'', which means ''import multiple pools''. - Eric -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock