1834150 Members
2781 Online
110064 Solutions
New Discussion

Tar Problem

 
SOLVED
Go to solution
Joseph Loo
Honored Contributor

Tar Problem

I encountered some problem when I tar my files into the tape. It will return a "tar failure" 5 which is RETCODE into my log file.

The script which executes the tar command is as follow:

OUTFILE=/tmp/backup.out
tar -cvf /dev/rmt/0m /home /stand /etc >$OUTFILE 2>&1RETCODE=$?

I have more than space in the tape (24GB) to tar every files and I have try on new tapes as well.

So, what is this RETCODE=5 and how do I go about solving this issue?

Thanks.
what you do not see does not mean you should not believe
3 REPLIES 3
John Palmer
Honored Contributor
Solution

Re: Tar Problem

Hi,

Have a look at this previous thread which had a very comprehensive answer:-

http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xdad9f841489fd4118fef0090279cd0f9,00.html

Regards,
John
Dan Hetzel
Honored Contributor

Re: Tar Problem

Hi Joseph,

Here is a document covering your issue:

http://europe-support.external.hp.com/cki/bin/doc.pl/sid=abc681ae1440a83eed/screen=ckiDisplayDocument?docId=200000038250705

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Dan Hetzel
Honored Contributor

Re: Tar Problem

Hi again,

To further refine, try redirecting stderr to
a separate log file
2>err.log instead of 2>&1
This will show you exactly what kind of warning you have.

Dan

Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com