From owner-freebsd-current@FreeBSD.ORG Mon Jun 14 15:30:44 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 3851216A4CE for ; Mon, 14 Jun 2004 15:30:44 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CBBF43D31 for ; Mon, 14 Jun 2004 15:30:43 +0000 (GMT) (envelope-from andreas@klemm.apsfilter.org) Received: from srv1.cosmo-project.de (localhost [IPv6:::1]) i5EFUJaI095160 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Mon, 14 Jun 2004 17:30:19 +0200 (CEST) (envelope-from andreas@klemm.apsfilter.org) Received: (from uucp@localhost)i5EFUJod095159 for freebsd-current@freebsd.org; Mon, 14 Jun 2004 17:30:19 +0200 (CEST) (envelope-from andreas@klemm.apsfilter.org) Received: from titan.klemm.apsfilter.org (localhost.klemm.apsfilter.org [127.0.0.1]) by klemm.apsfilter.org (8.12.10/8.12.10) with ESMTP id i5EFU8pM043179 for ; Mon, 14 Jun 2004 17:30:08 +0200 (CEST) (envelope-from andreas@titan.klemm.apsfilter.org) Received: (from andreas@localhost)i5EFU5cr043177 for freebsd-current@freebsd.org; Mon, 14 Jun 2004 17:30:05 +0200 (CEST) (envelope-from andreas) Date: Mon, 14 Jun 2004 17:30:05 +0200 From: Andreas Klemm To: freebsd-current@freebsd.org Message-ID: <20040614153005.GA42616@titan.klemm.apsfilter.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 5.2.1-RELEASE-p7 X-Disclaimer: A free society is one where it is safe to be unpopular User-Agent: Mutt/1.5.6i X-Virus-Scanned: clamd / ClamAV version 0.72, clamav-milter version 0.72 on klemm.apsfilter.org X-Virus-Status: Clean Subject: 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 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 15:30:44 -0000 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" I was not so lucky recovering /var ... Tons of - "expected xxx got xxx" messages and - "Didnt find "." or ".." of a directory" and such ... Do you have an idea what was wrong ??? Did I make a mistake or is dump/restore hosed ? Andreas /// -- Andreas Klemm - Powered by FreeBSD 5.1-CURRENT Need a magic printfilter today ? -> http://www.apsfilter.org/