From owner-freebsd-current@FreeBSD.ORG Mon Apr 28 09:13:22 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F008337B401 for ; Mon, 28 Apr 2003 09:13:21 -0700 (PDT) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45D0343F85 for ; Mon, 28 Apr 2003 09:13:21 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.9/8.12.6) with ESMTP id h3SGDKVI046013; Mon, 28 Apr 2003 09:13:20 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.9/8.12.6/Submit) id h3SGDKY0046012; Mon, 28 Apr 2003 09:13:20 -0700 (PDT) Date: Mon, 28 Apr 2003 09:13:20 -0700 (PDT) From: Matthew Dillon Message-Id: <200304281613.h3SGDKY0046012@apollo.backplane.com> To: Barney Wolff References: <16042.64964.345642.224980@ultrahot.finland.sun.com> <20030426215744.GA97642@pit.databus.com> cc: freebsd-current@freebsd.org cc: Tomi Vainio - Sun Finland Subject: Re: dump restore problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Mon, 28 Apr 2003 16:13:22 -0000 :On Sun, Apr 27, 2003 at 12:44:36AM +0300, Tomi Vainio - Sun Finland wrote: :> During my ufs2 migration I've used piped dump restore procedure. Is :> it normal that block sizes like 512 or 1000 don't work? Block size :> 512 gives an error and 1000 hangs forever while 126 is working fine. :> :> dump 0buf 512 - / | restore xbf 512 - : :I think you want to leave out the b option and use -a to tell dump not :to try to determine the size of the "tape". I would also use -rf on :restore, not -xf, and add -C 32 to dump args. At least that's what :I gleaned from rtfm dump & restore. : :-- :Barney Wolff http://www.databus.com/bwresume.pdf :I'm available by contract or FT, in the NYC metro area or via the 'Net. The block size is too large, use 127 (I use 64 myself). Remember, the block size is in 1K chunks so 127 = 127KB, which is plenty big enough. And definitely use 'a'uto sizing in the dump command. Generally speaking this is what I do: dump 0abf 64 - / | restore rbf 64 - Don't use 'u' in the dump command unless you are making a permanent backup that you want the dump system to record in /etc/dumpdates. If you are just using dump/restore to copy a filesystem, do not use 'u'. Use restore's 'r' option instead of 'x' if you want an exact restore. 'x' is used when restoring part of a backup, 'r' is used when restoring the entire backup. For example, if you just wanted to restore the 'etc directory you would use: dump 0abf 64 - / | restore xbf 64 - etc But if you want to restore the whole thing you would use: dump 0abf 64 - / | restore rbf 64 - -Matt Matthew Dillon