Re: moving a zfs pool

From: Dan Nelson <dnelson_at_allantgroup.com>
Date: Sat, 7 Jul 2007 19:33:09 -0500
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_at_allantgroup.com
Received on Sat Jul 07 2007 - 22:33:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:13 UTC