Operating System - HP-UX
1756806 Members
2986 Online
108852 Solutions
New Discussion юеВ

view make_recovery tape contents

 
SOLVED
Go to solution
Sammy_2
Super Advisor

view make_recovery tape contents

Trying to look the contents of make_recovery dds3-tape and recover just one file. The make_recovery tape was made using the following command.
# /opt/ignite/bin/make_recovery -A -C -v -d /dev/rmt/0mn
and was successful.

Tried this and get the following errors:
# mt -f /dev/rmt/0mn fsf 1
fsf 1 failed: I/O error
# mt -t /dev/rmt/0mn fsr 1
fsr 1 failed: I/O error
good judgement comes from experience and experience comes from bad judgement.
6 REPLIES 6
harry d brown jr
Honored Contributor
Solution

Re: view make_recovery tape contents

You need to rewind the tape first after the make_recovery to the no-rewind device: /dev/rmt/0mn

If the tape was just loaded prior to you performing the make_recovery, then you can rewind the tape using :

mt -t /dev/rmt/0m rew
Live Free or Die
Sridhar Bhaskarla
Honored Contributor

Re: view make_recovery tape contents


if mt -t /dev/rmt/0mn fsf 1 fails,

then probably the tape is corrupted. Try doing the following to confirm that the tape is really bad.

/opt/ignite/bin/copy_boot_tape -u /dev/rmt/0mn -b -d to_somewhere

It should successfully dump the bootimage under
to_somehwere directory. Else, the tape is confirmed bad.

You can also user check_recovery command to verify if everything is ok.

-Sri


You may be disappointed if you fail, but you are doomed if you don't try
Michael Roberts_3
Honored Contributor

Re: view make_recovery tape contents

This has worked for me in the past:

mt -t /dev/rmt/0m rew
mt -t /dev/rmt/0mn fsf #no count default is 1

# get table of contents
pax -vf /dev/rmt/0mn
etouq ot hguone revelc ton m'i
James R. Ferguson
Acclaimed Contributor

Re: view make_recovery tape contents

Hi Sam:

The following should work on a rewound tape (or one freshly inserted into the drive):

# mt -t /dev/rmt/0mn fsf 1
# tar -xvf /dev/rmt/0m filename

Note that the first command forward spaces ONE FILE without rewind. The second command extracts one file.

The 'mt -t' is equivalent to 'mt -f' as of 11.x and is the preferred form.

...JRF...
Sammy_2
Super Advisor

Re: view make_recovery tape contents

Thanks to everyone. I had to rewind b4 issuing the command "mt -t /dev/rmt/0mn fsr 1"
command.
I had to do:
# mt -t /dev/rmt/0m rew
Harry, Sridhar, Michael and James were right and pointed me in the right direction.
Appreciate it. Solved.
good judgement comes from experience and experience comes from bad judgement.
Magdi KAMAL
Respected Contributor

Re: view make_recovery tape contents

Hi Sam,

#mt -t /dev/rmt/0m rew
Will rewind the tape.

#mt -t /dev/rmt/0mn fsf #1
Will skip the lif area.

#tar -xvf /dev/rmt/0m home/abc/myFile.sh

Attention:
The recovered file is in RELATIVE path ( without the slash in the begining. In my example the home directory is without the slash in the begining ).

Only two files are in ABSOLUTE path :
/etc/passwd
/etc/group

Magdi