Cannot read Ignite TAR archive contents (720 Views)
Reply
Regular Advisor
EU-Admins-UNIX
Posts: 196
Registered: ‎09-23-2011
Message 1 of 7 (720 Views)

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

 

 

Please use plain text.
Honored Contributor
Patrick Wallek
Posts: 13,752
Registered: ‎06-21-2000
Message 2 of 7 (717 Views)

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

Please use plain text.
Regular Advisor
EU-Admins-UNIX
Posts: 196
Registered: ‎09-23-2011
Message 3 of 7 (712 Views)

Re: Cannot read Ignite TAR archive contents

Sorry, yes a PA-RISC system

Please use plain text.
Honored Contributor
Patrick Wallek
Posts: 13,752
Registered: ‎06-21-2000
Message 4 of 7 (702 Views)

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?

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,962
Registered: ‎03-06-2006
Message 5 of 7 (698 Views)

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

Please use plain text.
Regular Advisor
EU-Admins-UNIX
Posts: 196
Registered: ‎09-23-2011
Message 6 of 7 (689 Views)

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

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,962
Registered: ‎03-06-2006
Message 7 of 7 (686 Views)

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

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation