Operating System - HP-UX
1833954 Members
1824 Online
110063 Solutions
New Discussion

make_tape_recovery : how to browse my tape ?

 
SIMIER
Occasional Contributor

make_tape_recovery : how to browse my tape ?

Hi,

I've run many successfully 'make_tape_recovery' scripts on my systems, without any pb + I've restored many of my tapes : OK, cool product.
But, one question: how could i read content of my tapes (ie: try to extract list of files saved on my tapes, without restore my tapes) ? (...using a tar command ?, I don't know.)

Thanks,
regards,

Stephane.
5 REPLIES 5
Sridhar Bhaskarla
Honored Contributor

Re: make_tape_recovery : how to browse my tape ?

Hi Stephanie,

# mt -t /dev/rmt/0mn fsf 1
# tar -tvf /dev/rmt/0m > /tmp/index

Look at /tmp/index.

Make note of 0mn in the first command.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Jeff Schussele
Honored Contributor

Re: make_tape_recovery : how to browse my tape ?

Hi Stephane,

All you do is this

mt -f /dev/rmt/0mn rew # rewind the tape
mt -f /dev/rmt/0mn fsf 1 # move 1 file space forward
tar tvf /dev/rmt/0mn # read the tape with tar

Of course use the appropriate tape device if you don't have the default /dev/rmt/0mn
Be advised that does not guarantee that the tape is good, just that it can be read. The only sure way to know is to boot it.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
eran maor
Honored Contributor

Re: make_tape_recovery : how to browse my tape ?

Hi

there isny a tool like goust expoler if that what you are looking .

i will give you a few step to check the ignite backup and also to see the contect of the ignite tape .

These are the steps to follow to verify whether your Ignite
make_recovery tape is good:

1. Check the log generated during the Ignite backup:

/var/opt/ignite/logs/makrec.logxx

2. Boot from the tape and interrupt the boot process before
non-interactive recovery commences, and then abort the install.
This will verify whether the first image on the tape is bootable.

Note: There is a command shipped with Ignite, copy_boot_tape(1m)
that could also be of use to pull the LIF and the archive
off of a make_recovery tape.

You can use lifls(1) or lifcp(1) to examine the boot LIF
contents and pax(1) or tar(1) to examine the archive.

3. The second image on the tape is the tar archive of the OS and
possibly other files (depending on the options to make_recovery).

a) Skip over the first image with mt command using the
appropriate tape device file;

mt -f /dev/rmt/0mn rew

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

b) Verify the contents of the tar image with the tar
command using the appropriate device file;

tar tvf /dev/rmt/0m



love computers
Sridhar Bhaskarla
Honored Contributor

Re: make_tape_recovery : how to browse my tape ?

Hi (Again),

I would have added. The above was only to generate list of files that were included with the tape. To find out if the boot area is good, do the following.

# mt -t /dev/rmt/0m rew
# dd if=/dev/rmt/0mn of=/tmp/tape_lif bs=2k

Now run the regular lif commands to verify 'bootimage' is proper.

lifls /tmp/tape_lif
lifcp /tmp/tape_lif:AUTO -

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
SIMIER
Occasional Contributor

Re: make_tape_recovery : how to browse my tape ?

Thanks folks for your help, all is fine for me.
My tape is on-(going)-reading !
Steph.