Blocksize problem restoring file from tape


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Blocksize problem restoring file from tape
# 1  
Old 10-17-2005
Blocksize problem restoring file from tape

I was recently given the responsibility of the unix box at our work. Without much training, I now have to go back and restore a file from tape. I'm having some trouble with it. I'm getting an error with the blocksize.

The part of the script that does the tar looks like this:

tar cvfX /dev/rmt/0n backup_exclude_file /* /LAST_FILE >> /data/unix_backup.log

It doesn't seem like the script specifies the blocksize? Am I wrong?

This is the commands I executed to do the restore:
mt -f /dev/rmt/0 status
mt -f /dev/rmt/0 rewind
mt -f /dev/rmt/0n fsf 1
tar xvf /dev/rmt/0 /data/exports/files/C_XMDL.dmp.Z

It gives me this error:
tar block size =1
directory checksum error

I was told to try a blocksize of 2000, but it seems like the command just hung. I had to kill it after 2-3 hours.
This is what I excuted for that:
tar xvfb - 2000 /dev/rmt/0 /data/exports/files/C_XMDL.dmp.Z

We are using a Dell SDLT 320 Powervault 110T

I'd appreciate any suggestions.
# 2  
Old 10-17-2005
mt -f /dev/rmt/0n fsf 1

why did you do that? You might try it again without that command.
# 3  
Old 10-17-2005
RE: The fsf

My notes from the previous Unix admin told me to do that because, there was a previous tar done before that. I did not include it in the post.

The first tar in the script was
tar cvf /dev/rmt/0n /restore /etc/passwd /etc/shadow /etc/group /export/home/oracle >> /data/unix_backup.log

He told me it's because he wanted the password file and oracle profile backed up at the beginning of the tape for disaster recovery purposes.


Quote:
Originally Posted by Perderabo
mt -f /dev/rmt/0n fsf 1

why did you do that? You might try it again without that command.
# 4  
Old 10-17-2005
Revised error:

I'm sorry. I did not get a checksum error:
I just got
tar: blocksize = 0

That's it'. It happens right away, and it did not restore the file.
# 5  
Old 10-17-2005
tar xvfb - 2000 /dev/rmt/0 /data/exports/files/C_XMDL.dmp.Z

That command is wrong and that is probably your problem. It instructed tar to read from standard input. Use:

mt -f /dev/rmt/0 rewind
mt -f /dev/rmt/0n fsf 1
tar xvfb /dev/rmt/0 2000 /data/exports/files/C_XMDL.dmp.Z
# 6  
Old 10-17-2005
RE: incorrect command

Thank you so much for replying and trying to help me out.

I tried the command you provided. I did them exactly in the order you provided. However, I still got the same error:
tar: blocksize = 0

Smilie
# 7  
Old 10-17-2005
Re: Os

I don't know if this makes a difference, but I believe I forgot to mention was OS and level I was using.
I'm using Sun Solaris. 2.9
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Restoring problem on tape!

hi all , a messages appeared to me when i was checking my /var/adm/messages and the below code was in it Oct 6 13:15:21 medprod scsi: /pci@3,700000/SUNW,emlxs@0/fp@0,0/st@w21000024ff305234,7 (st1): Oct 6 13:15:21 medprod Restoring tape position at fileno=320,... (5 Replies)
Discussion started by: semaan
5 Replies

2. Solaris

Information about taking dump of a unix server on a tape and then restoring

Hi all, Can anyone provide me with a site or book that gives detailed information about taking dump of a unix server on a tape and then restoring the server from the dump Also i want information about migration from old server to new server (solaris 5.6 to solaris 8) (3 Replies)
Discussion started by: asalman.qazi
3 Replies

3. Solaris

Restoring dump from tape to SCSI disk

Hi Gurus, I need help. Mine is an Ultra 10 machine running on solaris 7. Problem with solaris 7 is, it can no longer recognize IDE disks greater that 10GB. My workaround is ro use an external SCSI disk since it is recognizable with solaris 7. I backup my filesystems (residing on the IDE... (2 Replies)
Discussion started by: domesat
2 Replies

4. Solaris

Tar blockSize problem

Hi, i have got a tar file some 200MB big and i have ftp'ed the tar file over from one server to another but it does not seem to extract. its giving the following message: tar xvf saptar tar: blocksize = 2 Its the first time i used tar so I not got any ideas why its giving this message?... (2 Replies)
Discussion started by: scriptingmani
2 Replies

5. Solaris

Problem restoring files from remote tape drive

Server 1 - Sun Solaris 5.8 sparc SUNW,Sun-Fire-480R with attached DLT tape drive /dev/rmt/0n Server 2 - Old DG-UX box which has restore command on it compatible with the files on the backyup tape - backed up with dump2 Server 3 - Sun solaris 5.9 sparc SUNW,Sun-Fire-V490 with lots of free space... (4 Replies)
Discussion started by: lindab
4 Replies

6. UNIX for Advanced & Expert Users

tar: tape blocksize error

Hi, I have tar: tape blocksize error when launching # gunzip < TierDB.tar.gz |tar -xvf /data/ora/DREC tar: tape blocksize error Can you please help me ? It is urgent. Many thanks. (1 Reply)
Discussion started by: big123456
1 Replies

7. UNIX for Dummies Questions & Answers

Restoring tape files...

Hi all, I have kinda inherited this problem, but was wondering if anyone else had any ideas. Currently all our backup rentention periods are set to 2 weeks, so that we can cycle through tapes (save money etc...). Anyhow the guys next door in IT, decided one day long long ago, that it would... (0 Replies)
Discussion started by: B14speedfreak
0 Replies

8. UNIX for Advanced & Expert Users

Tar: tape blocksize error

When trying to extract a tar file in HP-UX using tar -xvf command it exits with the following error :"Tar: tape blocksize error". Tar file is created using the following command with MKS toolkit(Unix Simulation Kit for Windows env) under Windows 2000 Professional: "$tar -cvf test.tar test.txt... (1 Reply)
Discussion started by: ramkumar
1 Replies

9. AIX

Problems restoring from tape in AIX

I am trying to restore some files from a DLT drive in AIX 4.3 but I am having a few problems. Basically when I try to run the restore command I get the following error: Cannot read from the specified input. Please enter the device name when ready I am the following command for the restore ... (0 Replies)
Discussion started by: The Hunter
0 Replies

10. UNIX for Dummies Questions & Answers

Restoring a file from Tape

help please i have "inherited" a Sco Server (the administrator departed in a hurry...yes we are chasing him..) and haven't used Unix for 8 years. i have a file that i need to retrieve from a tape. i have been able to find the file on tape using the cpio -ivt command. however... the problem I... (3 Replies)
Discussion started by: mfischer
3 Replies
Login or Register to Ask a Question