From owner-freebsd-current@FreeBSD.ORG Mon Jun 14 20:43:03 2004 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 703D116A4CE; Mon, 14 Jun 2004 20:43:03 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7531B43D48; Mon, 14 Jun 2004 20:43:02 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) i5EKfGaI002713 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Mon, 14 Jun 2004 22:41:19 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id i5EKe8Ui054094 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 14 Jun 2004 22:40:09 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id i5EKe8VY061206; Mon, 14 Jun 2004 22:40:08 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id i5EKe7Wv061205; Mon, 14 Jun 2004 22:40:07 +0200 (CEST) (envelope-from ticso) Date: Mon, 14 Jun 2004 22:40:07 +0200 From: Bernd Walter To: Andreas Klemm Message-ID: <20040614204006.GI51677@cicely12.cicely.de> References: <20040614153005.GA42616@titan.klemm.apsfilter.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040614153005.GA42616@titan.klemm.apsfilter.org> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.63 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on cicely12.cicely.de cc: freebsd-current@freebsd.org Subject: Re: trouble with dump/restore on FreeBSD 5.2.1 (RELENG_5_2) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jun 2004 20:43:03 -0000 On Mon, Jun 14, 2004 at 05:30:05PM +0200, Andreas Klemm wrote: > Hi, > > dumped today all filesystems of my FreeBSD laptop, > which was a relatively new RELENG_5_2, because got new disk. > > Was unable to restore the filesystems using the official 5.2.1 DVD. > > Recovering > - / was possible with a warning > - /var was impossible > - The rest I didnt try... > > Made a level 0 dump of all filesystems using -L > since system complained when I made dump of a > filesystem in use without -L. > > /sbin/dump 0Lubf 128 - / | gzip > dump-_ > /sbin/dump 0Lubf 128 - /var | gzip > dump-_var > /sbin/dump 0Lubf 128 - /usr | gzip > dump-_usr > and so on ... > > For recovery > - I made a minimum installation of 5.2.1 > to get all dump images via ftp from server > - Then I used custom options to partition/newfs via > "W"rite option in the partition menue. > > The filesystems have been created and mounted > since I entered the mount points. > I didn't newfs /export of course... > > Now I entered fixit mode: > The filesytems > /mnt > /mnt/var > /mnt/usr > ... etc ... > Have been freshly created and were free. df shows correct size. > > Now I tried to restore using > > zcat /mnt/export/dump-_ | restore -r -f - > > Got error messages. > Guessed it might be related to dump blocksize, that restore > is unable to determine 128 automagically. > > Re-made / (umount/newfs) ... > Then: > zcat /mnt/export/dump-_ | restore -r -b 128 -f - > > This time I got / restored. > With warnings I don't remember exactly "expected xxx got xxx" gzip shuffels blocking. Use dd obs=64k between zcat and restore to do reblocking the stream. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de