+ Check out the restore man page and read up on the -C
+option.
+
+ 8) What are the best buffer size options?
+
+ Bernhard R. Erdmann answered this question on the
+dump-users mailing list. His excellent response
+follows:
+
+>> While I was doing google searches, there seems to be
+>> an issue regarding the default buffer size writing
+>> to tape. According to some, the default buffer size
+>> of 512 can harm modern drives. I have a Seagate
+>> DDS3 unit and am wondering what the best mt/dump
+>> options are. I am using datacompression in
+>> hardware. Should I go with a large buffer (mt
+>> setblk 10240) or variable (mt setblk 0). If I
+>> change these sizes, does dump need to know about it?
+>
+>Dump/restore uses a default blocksize of 10 KB. You
+>can change it with the "-b" option or use dd for
+>(re-)blocking.
+>
+>dump 0ab 32 /
+>dump 0af - / | dd obs=32k of=$TAPE
+>ssh host "/sbin/dump 0af - /" | dd obs=32k of=$TAPE
+>restore rb 32
+>dd ibs=32k if=$TAPE | restore rf -
+>ssh host "dd if=/dev/nst0 ibs=32k" | restore rf -
+>
+>Personally, I'd stick with variable blocksize on the
+>drive and use 32 KB as the application's blocksize as
+>Amanda uses that size, too.
+>
+>Rumours told using 64 KB or 128 KB blocksize yields to
+>increase performance (maybe on the mtx list from an
+>Arkeia developer) didn't had any effects in my own
+>tests with blocksizes ranging from 10 to 64 KB some
+>months ago on a DDS-2 drive.
+>
+>Regarding tape drive performance at different block
+>sizes you may want to read
+>http://www.rs6000.ibm.com/support/micro/tapewhdr.html#Header_133
+>
+>- Block size, can effect the time for backup/restore.
+>Using large blocksizes may improve performance. Using
+>small block sizes can increase system overhead but
+>before changing to a large blocksize it is necessary
+>to be sure the user application supports the larger
+>blocksize chosen.
+>- Very long restore times due to blocksize. If a
+>backup is done with a fixed block length then the
+>restore should be done with the same fixed block
+>length. If a backup is done with a fixed block length
+>and the restore is done with variable block length,
+>the restore may work successfully but it may take many
+>more hours to restore than it took to back up the
+>data. The reason for this is that when AIX reads fixed
+>block length data in variable block mode, a check
+>condition is issued by the tape drive on every read.
+>AIX must interpret every check condition and determine
+>the proper action to take. This often will put the
+>tape drive into a mode of reading that will require
+>the tape drive to stop tape motion, rewind the tape
+>some distance, then start reading again. This will
+>reduce the life expectancy of the tape and increase
+>the time it takes to backup data.
+
+ 9) Experiencing bread, lseek, and lseek2 errors.
+
+ These errors are caused by inodes being changed
+during the backup. This is normal because dump and
+the Linux kernel are both acessing the filesystem
+and there is no consistence checking. By "calming"
+the system (killing unnecessary processes), you
+decrease the likelihood of having these
+errors. Read up on the bug on Sourcefourge:
+
+http://sourceforge.net/tracker/index.php?func=detail&aid=204909&group_id=1306&atid=101306
+
+Note that the only "real" solution to this problem
+is to dump a unmounted filesystem or use a filesystem
+snapshot feature (like in LVM).
+
+ 10) That about sums up my knowledge on the matter, but
+I feel better having written something for other peopleto look at so it doesn't take them quite so long to
+learn the things I did. I've included my backup script
+below. There are much better ones floating around, so
+go find someone else's and use theirs if mine won't
+work for you or you don't understand it.