Operating System - HP-UX
1832279 Members
2475 Online
110041 Solutions
New Discussion

make_recovery and restoring files

 
Wessel Baptist
Advisor

make_recovery and restoring files

Is there any change to restore individual-files from a "make_recovery"-tape? And is there a way to determine when the "make-recovery"-tape was created?

Thanks
Wessel Baptist
logics take you from A to B, imagination takes you anywhere
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: make_recovery and restoring files

Hi:

The make_recovery tape is made with pax, so pax or tar could be used to extract an individual file.

The /var/opt/ignite/logs/makrec.log1 file contains a summary of the make_recovery tape processes. This would show you where the date/time the last tape was made.

...JRF...
Brian M. Fisher
Honored Contributor

Re: make_recovery and restoring files

You can boot from the recovery tape without making any changes to the system to test the boot area of the tape. To test the remainder of the tape.
1) mt -t /dev/rmt/0mn rew (rewind tape)
2) mt -t /dev/rmt/0mn fsf 1 (forward tape 1 marker)
3) cd /tmp
4) tar xvf /dev/rmt/0mn etc/passwd
(Or any other file on the tape)

Brian
<*(((>< er
Perception IS Reality
Stefan Farrelly
Honored Contributor

Re: make_recovery and restoring files


I believe the main archive on an ignite tape is in tar format so you should be able to restore an individual file if needed. It will be a couple or more records along the tape though so insert the tape into your drive (say 0m) and then fast-forward along, mt -t /dev/rmt/0mn fsf 1 then try a tar tvf /dev/rmt/0mn, if you dont see a tar listing then skip along to the next record and try again. Eventually you should find it and can then reposition the tape and tar xvf it.

If you create your ignite tapes using the -C option on make_recorvery then by running check_recovery it will tell you when you last ran a make_recovery and so reminding you when that tape was created - if the tape was created on the same system as the one you are running the check_recovery on. Alternatively look at the timestamp on the file /var/opt/ignite/recovery/makerec.last
Im from Palmerston North, New Zealand, but somehow ended up in London...
Cheryl Griffin
Honored Contributor

Re: make_recovery and restoring files

make_recovery creates a lif area and a tar archive on the tape.

To just recover individual files you need to fast forward past the lif area and
then use tar to extract what you want.

Try:
# cd {directory_name_here}
# /mt fsf 1
# tar xvf /dev/rmt/0mn {file_name_here}
"Downtime is a Crime."
Cheryl Griffin
Honored Contributor

Re: make_recovery and restoring files

Oops! That was a typo in the mt command line.
Leave out the
"Downtime is a Crime."
Wessel Baptist
Advisor

Re: make_recovery and restoring files

Is there somehow a datestamp on the tape, I have several (not well labled) "make_recovery"-tapes. I only know the order I have made then but on which date and like to know that.

Thanks.
BTW the "tar" command works wel.
logics take you from A to B, imagination takes you anywhere