From owner-freebsd-current@FreeBSD.ORG Sun Jul 8 00:33:25 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 71E0216A468 for ; Sun, 8 Jul 2007 00:33:25 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 3CC2613C468 for ; Sun, 8 Jul 2007 00:33:15 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.1/8.13.8) id l680X9NG021777; Sat, 7 Jul 2007 19:33:09 -0500 (CDT) (envelope-from dan) Date: Sat, 7 Jul 2007 19:33:09 -0500 From: Dan Nelson To: Volker Message-ID: <20070708003309.GA58292@dan.emsphone.com> References: <469014E9.5050906@vwsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <469014E9.5050906@vwsoft.com> X-OS: FreeBSD 7.0-CURRENT User-Agent: Mutt/1.5.16 (2007-06-09) Cc: current@freebsd.org Subject: Re: moving a zfs pool X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2007 00:33:25 -0000 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