ufsdump corrupts tar on no rewind device!
Posted on 1998-06-22
I currently use DDS 2 DAT 4mm tape to backup the following data types to a no-rewind
device on Solaris 2.5:
File#0 = Informix ontape level 0 backup
File#1 = tar cvf /dev/rmt/0n $AppDir
File#2 - #8 = ufsdump 0ucf /dev/rmt/0n / /usr /opt /var /home1 /home2
Before I add the tar (file#2), I run the following commands:
mt -f /dev/rmt/0n asf 1
Before I add the ufsdumps, I run the following commands:
mt -f /dev/rmt/0n asf 3
then I use the no-rewind device for each ufsdump.
There are 8 files on the tape after the last ufsdump; i.e. the result of :
mt -f /dev/rmt/0n status
The problem I have is that on several occasions the tar (File#2) gets corrupted or
damaged after adding the ufsdumps. When I fast forward the tape to file#2 and
run tar tvf /dev/rmt/0n, I get no output or on other occasions I get block size = 2.
I would like to continue using one 4mm tape to put all the backups since each 4mm
DDS2 tape can hold 4GB; but until I can resolve this problem I have to use two 4mm
tapes to seperate the ufsdump.
I would appreciate any advice or solution you can give me.
I would prefer to use tar instead of cpio because cpio does not restore files to their
Thanks in advance for your help!