[2584] in linux-scsi channel archive
Re: Dump for Linux
daemon@ATHENA.MIT.EDU (David Lomas)
Fri Oct 3 11:35:39 1997
Date: Fri, 3 Oct 1997 11:29:44 -0400 (EDT)
From: David Lomas <david@dlomas.com>
Reply-To: David Lomas <david@dlomas.com>
To: linux-scsi@vger.rutgers.edu
In-Reply-To: <199709301649.LAA25901@mama.indstate.edu>
On Tue, 30 Sep 1997, Tall cool one wrote:
> David Lomas <david@dlomas.com> writes:
> > Some time ago I attempted to build "dump" as in Sun OS "sump" or Solaris
> > "ufsdump" for kernel 2.0.0.
> >
> > Since the "dump" archives that I've foung haven't been up-dated since
> > (generally) 1995, I though that I'd ask specifically whether or not
> > anyone's using dump.
>
> I've used BSD dump ported to Linux to restore a dump tape off a Sequent
> system done in '95, restored perfectly. Dump hasn't changed it's format in
> a million years. I find that dump is a lot nicer when it comes time to
> restore, since I usually only need to restore one or two files at a time.
>
> > How did you build it with specific reference to the newer e2fs progs
> > libraries with 2.0.?
>
> First get the latest, dump-0.4.tar.gz off of sunsite and also get the
> latest e2fsprogs (1.06 I beleive). Follow the instructions on how to build
> the e2fsprogs with shared libraries:
>
Did this stuff with e2fsprogs-1.10
> > tar xzf e2fsprogs-1.06.tar.gz
> > cd e2fsprogs-1.06
> > mkdir build
> > cd build
> > ../configure --enable-elf-shlibs
> > make
> ...
> > make check
> ...
> > make install
> > make install-libs
>
Did this stuff with tsx-11.mit.edu:~/ALPHA/ext2fs/dump-0.4b4.tar.gz
> Then make dump:
> > tar xzf dump-0.4.tar.gz
> > cd dump-0.4
> > make
> > make install
>
> You should then probably do:
> > chmod a-s /sbin/dump /sbin/restore
>
> Start dumping your filesystems:
>
> > dump 0uBf 2097152 /dev/nst0 /
> > dump 0uBf 2097152 /dev/nst0 /usr
> > dump 0uBf 2097152 /dev/nst0 /var
> ^- # of 1K records on your tape for example (2GB DAT).
> Only used for tape length calculations.
> Have fun...
>
> - Steve
>
Following is a report ( long, sorry ) of the dump I made after compiling
this morning, and folowing that - the real problem - restore dosen't
recognize the dump !!!
Following is DUMP report ;
================================
+ /sbin/dump 0dsbfu 57440 13000 96 styx:/dev/rmt/1mbn /
DUMP: Date of this level 0 dump: Fri Oct 3 10:17:07 1997
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/sda1 (/) to /dev/rmt/1mbn on host styx
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 34176 tape blocks on 0.01 tape(s).
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: DUMP: 34398 tape blocks on 1 volumes(s)
DUMP: finished in 217 seconds, throughput 158 KBytes/sec
DUMP: level 0 dump on Fri Oct 3 10:17:07 1997
DUMP: Closing /dev/rmt/1mbn
DUMP: DUMP IS DONE
+ /sbin/dump 0dsbfu 57440 13000 96 styx:/dev/rmt/1mbn /usr
DUMP: Date of this level 0 dump: Fri Oct 3 10:20:53 1997
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/sda5 (/usr) to /dev/rmt/1mbn on host styx
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 166708 tape blocks on 0.03 tape(s).
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: 61.27% done, finished in 0:03
DUMP: DUMP: 168069 tape blocks on 1 volumes(s)
DUMP: finished in 490 seconds, throughput 342 KBytes/sec
DUMP: level 0 dump on Fri Oct 3 10:20:53 1997
DUMP: Closing /dev/rmt/1mbn
DUMP: DUMP IS DONE
+ /sbin/dump 0dsbfu 57440 13000 96 styx:/dev/rmt/1mbn /export
DUMP: Date of this level 0 dump: Fri Oct 3 10:29:17 1997
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/sda6 (/export) to /dev/rmt/1mbn on host styx
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 30556 tape blocks on 0.00 tape(s).
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: DUMP: 30689 tape blocks on 1 volumes(s)
DUMP: finished in 89 seconds, throughput 344 KBytes/sec
DUMP: level 0 dump on Fri Oct 3 10:29:17 1997
DUMP: Closing /dev/rmt/1mbn
DUMP: DUMP IS DONE
+ /sbin/dump 0dsbfu 57440 13000 96 styx:/dev/rmt/1mbn /opt
DUMP: Date of this level 0 dump: Fri Oct 3 10:30:51 1997
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/sda7 (/opt) to /dev/rmt/1mbn on host styx
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 15351 tape blocks on 0.00 tape(s).
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: DUMP: 15437 tape blocks on 1 volumes(s)
DUMP: finished in 44 seconds, throughput 350 KBytes/sec
DUMP: level 0 dump on Fri Oct 3 10:30:51 1997
DUMP: Closing /dev/rmt/1mbn
DUMP: DUMP IS DONE
+ /sbin/dump 0dsbfu 57440 13000 96 styx:/dev/rmt/1mbn /win-files-1
DUMP: Date of this level 0 dump: Fri Oct 3 10:31:43 1997
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/sdd1 (/win-files-1) to /dev/rmt/1mbn on host styx
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 234984 tape blocks on 0.04 tape(s).
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: 41.88% done, finished in 0:06
DUMP: 81.87% done, finished in 0:02
DUMP: DUMP: 235444 tape blocks on 1 volumes(s)
DUMP: finished in 732 seconds, throughput 321 KBytes/sec
DUMP: level 0 dump on Fri Oct 3 10:31:43 1997
DUMP: Closing /dev/rmt/1mbn
DUMP: DUMP IS DONE
+ /sbin/dump 0dsbfu 57440 13000 96 styx:/dev/rmt/1mbn /home/ftp/pub
DUMP: Date of this level 0 dump: Fri Oct 3 10:44:13 1997
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/sdb1 (/home/ftp/pub) to /dev/rmt/1mbn on host styx
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 103573 tape blocks on 0.02 tape(s).
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: 90.09% done, finished in 0:00
DUMP: DUMP: 103814 tape blocks on 1 volumes(s)
DUMP: finished in 333 seconds, throughput 311 KBytes/sec
DUMP: level 0 dump on Fri Oct 3 10:44:13 1997
DUMP: Closing /dev/rmt/1mbn
DUMP: DUMP IS DONE
+ /sbin/dump 0dsbfu 57440 13000 96 styx:/dev/rmt/1mbn
/home/ftp/pub/microsoft
DUMP: Date of this level 0 dump: Fri Oct 3 10:50:05 1997
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/sdc1 (/home/ftp/pub/microsoft) to /dev/rmt/1mbn on
host styx
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 30724 tape blocks on 0.00 tape(s).
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: DUMP: 30791 tape blocks on 1 volumes(s)
DUMP: finished in 97 seconds, throughput 317 KBytes/sec
DUMP: level 0 dump on Fri Oct 3 10:50:05 1997
DUMP: Closing /dev/rmt/1mbn
DUMP: DUMP IS DONE
+ /sbin/dump 0dsbfu 57440 13000 96 styx:/dev/rmt/1mbn /home/ftp/pub/linux
DUMP: Date of this level 0 dump: Fri Oct 3 10:52:39 1997
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/sde1 (/home/ftp/pub/linux) to /dev/rmt/1mbn on host
styx
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 45860 tape blocks on 0.01 tape(s).
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: DUMP: 45946 tape blocks on 1 volumes(s)
DUMP: finished in 142 seconds, throughput 323 KBytes/sec
DUMP: level 0 dump on Fri Oct 3 10:52:39 1997
DUMP: Closing /dev/rmt/1mbn
DUMP: DUMP IS DONE
# re-wind media and take offline
rsh styx mt -f /dev/rmt/1 rewoffl
We should have 8 volumes on tape, i.e.;
=======================================
vol 1 = + /sbin/dump 0dsbfu 57440 13000 96 styx:/dev/rmt/1mbn /
vol 2 = + /sbin/dump 0dsbfu 57440 13000 96 styx:/dev/rmt/1mbn /usr
vol 3 = + /sbin/dump 0dsbfu 57440 13000 96 styx:/dev/rmt/1mbn /export
vol 4 = + /sbin/dump 0dsbfu 57440 13000 96 styx:/dev/rmt/1mbn /opt
vol 5 = + /sbin/dump 0dsbfu 57440 13000 96 styx:/dev/rmt/1mbn /win-files-1
vol 6 = + /sbin/dump 0dsbfu 57440 13000 96 styx:/dev/rmt/1mbn
/home/ftp/pub
vol 7 = + /sbin/dump 0dsbfu 57440 13000 96 styx:/dev/rmt/1mbn
/home/ftp/pub/microsoft
vol 8 = + /sbin/dump 0dsbfu 57440 13000 96 styx:/dev/rmt/1mbn
/home/ftp/pub/linux
Now, the crux of the problem, Linux dosen't recognize the dump
=======================================
# restore -ifs styx:/dev/rmt/1 6
s: No such file or directory
# restore -if styx:/dev/rmt/1
read: I/O error
tape read error: Unknown error -1
Neither does Sun;
========================================
Connected to styx.dlomas.com.
UNIX(r) System V Release 4.0 (styx)
login: root
Password:
Last login: Thu Oct 2 13:52:25 from sparcle.dlomas.c
Sun Microsystems Inc. SunOS 5.5.1 Generic May 1996
brought to you by
Lomas Data Management Inc. ( famous Unix bigots )
# mt -f /dev/rmt/1 status
Archive Python 4mm Helical Scan tape drive:
sense key(0x0)= No Additional Sense residual= 0 retries= 0
file no= 0 block no= 0
# ufsrestore -if /dev/rmt/1
Media read error: I/O error
#
# ufsrestore -ifs /dev/rmt/1 6
Media read error: I/O error
#
Any suggestions ?
David Lomas | Good Fast Cheap - pick any two
Lomas Data Management Inc,
Niagara Falls, Ontario