From owner-freebsd-questions@freebsd.org Wed Oct 26 08:15:27 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A093CC212BF for ; Wed, 26 Oct 2016 08:15:27 +0000 (UTC) (envelope-from steve@sohara.org) Received: from smtp3.irishbroadband.ie (smtp3.irishbroadband.ie [62.231.32.5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6B67B29B for ; Wed, 26 Oct 2016 08:15:27 +0000 (UTC) (envelope-from steve@sohara.org) Received: from [89.127.62.20] (helo=smtp.lan.sohara.org) by smtp3.irishbroadband.ie with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1bzJMk-0001qp-I2; Wed, 26 Oct 2016 09:15:18 +0100 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.87 (FreeBSD)) (envelope-from ) id 1bzJNC-000KlE-9M; Wed, 26 Oct 2016 08:15:46 +0000 Date: Wed, 26 Oct 2016 09:15:13 +0100 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Cc: Polytropon Subject: Re: ufs to zfs Message-Id: <20161026091513.5933ba16c643cd1fe12ef7dd@sohara.org> In-Reply-To: <20161026015212.07535ece.freebsd@edvax.de> References: <1477220901.79813.5.camel@yandex.com> <580E59C3.2000801@gmail.com> <20161026015212.07535ece.freebsd@edvax.de> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.29; amd64-portbld-freebsd10.1) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Oct 2016 08:15:27 -0000 On Wed, 26 Oct 2016 01:52:12 +0200 Polytropon wrote: > Follow-up question: > > Would it be technically possible to obtain the UFS data using > the "dump" program, then mount the (newly created) ZFS target > and use "restore" to the target directory? > > I've been using tar and cpio, but would the dump | restore > approach be possible too, even though it's usually intended > for UFS? If I understand things correctly, dump operates > block-wise on the file system level (and therefore prefers > an unmounted partition), while restore works file-wise and > needs an initialized and mounted file system to output the > files. Would restore work if the target file system is ZFS? > Does it care? AFAICT it shouldn't care, as you say it's working in a mounted filesystem so it should all be on top of the VFS layer. I've just tried a dump | restore from UFS into a ZFS target, it worked fine. -- Steve O'Hara-Smith