Ignite-UX
Showing results for 
Search instead for 
Do you mean 

Cannot read Ignite TAR archive contents

Highlighted
Regular Advisor

Cannot read Ignite TAR archive contents

Hello

 

We are having trouble reading the contents of our make_tape_recovery tapes using

 

 

mt -t /dev/rmt/1mn fsf 1

tar tvf /dev/rmt/1m

 

 

We are getting

 

TAR: blocksize = 2

directory checksum errors

 

Is there any other way to read the contents of the IGNITE tape, as opposed to recovering from it?  Could we use CPIO? PAX?

 

Thanks

 

Tariq

 

 

6 REPLIES
Honored Contributor Honored Contributor

Re: Cannot read Ignite TAR archive contents

What type of server was the tape created on? 

 

For a PA-RISC based system the 'fsf 1' is correct.

 

However, for an Itanium based system you must do:  mt -f /dev/rmt/1mn fsf 22

Regular Advisor

Re: Cannot read Ignite TAR archive contents

Sorry, yes a PA-RISC system

Honored Contributor Honored Contributor

Re: Cannot read Ignite TAR archive contents

What was the exact make_tape_recovery command that was used to createthe tape?  Are you positive that the tape was created successfully?

Acclaimed Contributor Acclaimed Contributor

Re: Cannot read Ignite TAR archive contents

>Could we use cpio? pax?

 

Yes, you can use pax(1) to read pax, tar or cpio archives.

 

>yes a PA-RISC system

 

Then that mt(1) should have worked.  Did you rewind the tape before doing the fsf?

 

>mt -t /dev/rmt/1mn fsf 1

>tar tvf /dev/rmt/1m

 

Ah, you should use the same device for mt(1) and tar: /dev/rmt/1mn

Regular Advisor

Re: Cannot read Ignite TAR archive contents

The script we are using is:

 

SYSTEM=`hostname`
TAPEDEVICE=/dev/rmt/1m

# Hashed out while working out how to cope with frecover interactive mode if no header...
# /usr/local/scripts/check_tape.sh $TAPEDEVICE

rm /tmp/recovery_tape.txt

/opt/ignite/bin/make_tape_recovery -I -a ${TAPEDEVICE}n -x inc_entire=vg00 -v | tee /tmp/recovery_tape.txt

# Eject the tape!
/usr/bin/mt -f $TAPEDEVICE offl

/usr/local/scripts/sendunix.sh "$SYSTEM Make Tape Recover `date`" /tmp/recovery_tape.txt

exit

 

We have had issues whereby the logs say the backup has completed successfully, but when it comes to testing the tape, trying to fsf 1 and tar tvf the archive, we are unable to, also, unable to read the header.

 

Hope this helps.

 

Tariq

Acclaimed Contributor Acclaimed Contributor

Re: Cannot read Ignite TAR archive contents

>when it comes to testing the tape, trying to fsf 1 and tar tvf the archive, we are unable to

 

As I mentioned, have you used a no rewind device for both steps?

TAPEDEVICE=/dev/rmt/1mn

mt -f $TAPEDEVICE fsf 1

tar tvf $TAPEDEVICE