Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jun 2004 22:40:07 +0200
From:      Bernd Walter <ticso@cicely12.cicely.de>
To:        Andreas Klemm <andreas@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: trouble with dump/restore on FreeBSD 5.2.1 (RELENG_5_2)
Message-ID:  <20040614204006.GI51677@cicely12.cicely.de>
In-Reply-To: <20040614153005.GA42616@titan.klemm.apsfilter.org>
References:  <20040614153005.GA42616@titan.klemm.apsfilter.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040614204006.GI51677>