dump/restore puzzle

Freminlins freminlins at gmail.com
Thu Oct 6 08:28:05 PDT 2005


I have a puzzling problem with dump and restore. I'm looking to implement a
dump and restore pipe to automatically make copy of a file system onto
another system completely. I've used / only as an example (because it's
small) and I'm not overwriting /.

I do the following:
1. Level 0 dump and restore pipe which works as expected

frem# dump 0auLf - / | ( restore -rf - )
DUMP: Date of this level 0 dump: Thu Oct 6 16:16:17 2005
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping snapshot of /dev/ad0s1a (/) to standard output
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 54582 tape blocks.
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
expected next file 8069, got 818
DUMP: DUMP: 55429 tape blocks
DUMP: finished in 19 seconds, throughput 2917 KBytes/sec
DUMP: level 0 dump on Thu Oct 6 16:16:17 2005
DUMP: DUMP IS DONE


2. I touch a file, just to make a difference, then do a level 1 dump and
restore which works as expected (the new file is extracted).

frem# touch /hello
frem# dump 1auLf - / | ( restore -rf - )
DUMP: Date of this level 1 dump: Thu Oct 6 16:16:50 2005
DUMP: Date of last level 0 dump: Thu Oct 6 16:16:17 2005
DUMP: Dumping snapshot of /dev/ad0s1a (/) to standard output
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 36 tape blocks.
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: DUMP: 35 tape blocks
DUMP: finished in less than a second
DUMP: level 1 dump on Thu Oct 6 16:16:50 2005
DUMP: DUMP IS DONE
expected next file 24550, got 819

3. I remove the file and do another level 1 dump and restore. This doesn't
work.

frem# rm /hello
frem# dump 1auLf - / | ( restore -rf - )
DUMP: Date of this level 1 dump: Thu Oct 6 16:17:08 2005
DUMP: Date of last level 0 dump: Thu Oct 6 16:16:17 2005
DUMP: Dumping snapshot of /dev/ad0s1a (/) to standard output
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 35 tape blocks.
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: DUMP: 34 tape blocks
DUMP: finished in less than a second
DUMP: level 1 dump on Thu Oct 6 16:17:08 2005
DUMP: DUMP IS DONE
Incremental tape too high

4. If I then touch another file, this still doesn't work.

frem# touch /hello2
frem# dump 1auLf - / | ( restore -rf - )
DUMP: Date of this level 1 dump: Thu Oct 6 16:24:51 2005
DUMP: Date of last level 0 dump: Thu Oct 6 16:23:50 2005
DUMP: Dumping snapshot of /dev/ad0s1a (/) to standard output
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 37 tape blocks.
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: DUMP: 36 tape blocks
DUMP: finished in less than a second
DUMP: level 1 dump on Thu Oct 6 16:24:51 2005
DUMP: DUMP IS DONE
Incremental tape too high


How can I go about achieving this (ignoring rsync, etc),

Thanks,
Frem.


More information about the freebsd-questions mailing list