Date: Sat, 7 Jul 2007 19:33:09 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Volker <volker@vwsoft.com> Cc: current@freebsd.org Subject: Re: moving a zfs pool Message-ID: <20070708003309.GA58292@dan.emsphone.com> In-Reply-To: <469014E9.5050906@vwsoft.com> References: <469014E9.5050906@vwsoft.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jul 08), Volker said: > this is more likely currently a theoretical question: How does one > move a zfs pool from one machine to another? > > I've done that in the past a lot with ufs filesystems by piping a > dump through an ssh session and restoring on another machine just to > move data to another system. This should also work on a per > filesystem basis when using zfs but isn't there a way to move the > whole pool to another machine (w/o physically moving the hard disk)? > > This would be the case when migrating a machine or migrating hard > disks. The zfs export feature doesn't look promising for this or do I > misread some bits? Please don't tell me, 42 is the answer... ;) > > I'm missing something I would call 'zpool dump' and 'zpool restore'. In zfs, it's actually at the filesystem level: 'zfs send' and 'zfs receive'. Note that it only copies a single filesystem at a time and doesn't copy the properties set via "zfs set", so if you had enabled compression make sure you set it on the new base filesystem before restoring. Those are OpenSolaris bugs 6421958 and 6421959. -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070708003309.GA58292>