Operating System - HP-UX
1753675 Members
5165 Online
108799 Solutions
New Discussion юеВ

contents of recovery file

 
John de Villiers
Frequent Advisor

contents of recovery file

How would i read the contents of a recovery file ? I tried to tar -tvf it, but i just get a directory checksum error. Same goes for when i try to read it off the tape.

The reason i want to read it is to try to figure out why one of the ignite tapes didnt work during our recent drp testing.
5 REPLIES 5
Robert-Jan Goossens
Honored Contributor

Re: contents of recovery file

Hi John,

# mt -f /dev/rmt/0mn rew

# mt -f /dev/rmt/0mn fsf 1

# tar tvf /dev/rmt/0m >> /tmp/list

Regards,
Robert-Jan
John de Villiers
Frequent Advisor

Re: contents of recovery file

done that - i "the directory checksum error"
i get that even if i go tar -tvf the recovery file on my server
Robert-Jan Goossens
Honored Contributor

Re: contents of recovery file

John,

Could post a bit more info about your hpux version and ignite version ?

Itanium ?

http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000081003144

Title: Verify ignite make_tape_recovery image on Itanium
Document ID: UIUXKBRC00017271

Regards,
Robert-Jan
Bob_Vance
Esteemed Contributor

Re: contents of recovery file

The archive file is gzipped by default.
You must unzip it:

(
cd /var/opt/ignite/recovery/archives/daytona1

gzip -d | tar tvf - 2>&1

) | head

Notice the "-" on the tar -- it specifies STDIN.


OTOH
An ignite boot tape has a boot_lif in front of the archive. You must bypass that before you can get to the archive:

(
export T=/dev/rmt/0m

mt -f ${T} rew
mt -t ${T}n fsf 1

tar tvf ${T} 2>&1

) | head

The "n" on the mt...fsf keeps the tape from rewinding and it stays positioned past the boot_lif, just at the beginning of the tar archive.


hth
bv
"The lyf so short, the craft so long to lerne." - Chaucer
Bob_Vance
Esteemed Contributor

Re: contents of recovery file

Hmmm.
I misread your orig post a little.
When I saw that is was a file, I assumed a 'make_net_recovery'.

A 'make_net_recovery' archive is gzipped by default.

'make_tape_recovery' archive is *not* compressed and must go directly to a tape device.

If you *did* the 'mt fsf 1', be sure that you used the "n" on the tape device name.

>contents of a recovery file
How did you get the archive to disk??
If you got it from the tape, then, again, be sure that you used the "n" on the 'mt fsf 1' .



hth
bv


"The lyf so short, the craft so long to lerne." - Chaucer