Hi All, I have a zfs pool setup on one server, the pool is made up of 4 iSCSI luns, is it possible to migrate the zfs pool to another server? Each of the iSCSI luns would be available on the other server. Thanks, -- Peter Farmer
Daniel J. Priem
2009-Jul-20 10:22 UTC
[zfs-discuss] Migrating a zfs pool to another server
Peter Farmer <pfarmer.lists at googlemail.com> writes:> Hi All, > > I have a zfs pool setup on one server, the pool is made up of 4 iSCSI > luns, is it possible to migrate the zfs pool to another server? Each > of the iSCSI luns would be available on the other server. > > > Thanks,yes. zpool export $mypoolname on the old server zpool import $mypoolname on the new server regards daniel
Super! Does the export need to be called just before I import the pool to another server, or can the export be called at the time the pool is created? because in a fail over I wouldn''t be able to "export" the pool before importing it. Thanks, Peter 2009/7/20 Daniel J. Priem <daniel.priem at disy.net>:> Peter Farmer <pfarmer.lists at googlemail.com> writes: > >> Hi All, >> >> I have a zfs pool setup on one server, the pool is made up of 4 iSCSI >> luns, is it possible to migrate the zfs pool to another server? Each >> of the iSCSI luns would be available on the other server. >> >> >> Thanks, > > yes. > zpool export $mypoolname ?on the old server > zpool import $mypoolname ?on the new server > > regards > daniel > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >
Peter Farmer wrote:> Super! > > Does the export need to be called just before I import the pool to > another server,Yes that is correct.> or can the export be called at the time the pool is > created?no. It must be done on the server that is exporting the pool so that it can be imported as Daniel explained.> because in a fail over I wouldn''t be able to "export" the > pool before importing it. >In that case you would do a zpool import -f $mypoolname on the new server. The ''-f'' will forcibly import the pool into the system. Provided the pool isn''t horribly broken. In my experience this has worked fine for me on numerous occasions, where this circumstance has arisen.> > Thanks, > > Peter > > 2009/7/20 Daniel J. Priem <daniel.priem at disy.net>: > >> Peter Farmer <pfarmer.lists at googlemail.com> writes: >> >> >>> Hi All, >>> >>> I have a zfs pool setup on one server, the pool is made up of 4 iSCSI >>> luns, is it possible to migrate the zfs pool to another server? Each >>> of the iSCSI luns would be available on the other server. >>> >>> >>> Thanks, >>> >> yes. >> zpool export $mypoolname on the old server >> zpool import $mypoolname on the new server >> >> regards >> daniel >> >> _______________________________________________ >> zfs-discuss mailing list >> zfs-discuss at opensolaris.org >> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >> >> > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >-- _________________________________________________________________________ Scott Lawson Systems Architect Information Communication Technology Services Manukau Institute of Technology Private Bag 94006 South Auckland Mail Centre Manukau 2240 Auckland New Zealand Phone : +64 09 968 7611 Fax : +64 09 968 7641 Mobile : +64 27 568 7611 mailto:scott at manukau.ac.nz http://www.manukau.ac.nz __________________________________________________________________________ perl -e ''print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'' __________________________________________________________________________