Operating System - HP-UX
1834149 Members
2280 Online
110064 Solutions
New Discussion

Re: MAke_recovery tape - restore only one partition

 
SOLVED
Go to solution
Kim Kendall
Regular Advisor

MAke_recovery tape - restore only one partition

Is there any trick (if at all possible) to restore just one logical volume from a make_recovery tape?

The lvol is a part of vg00 so it's on the tape, but I really didn't want to wipe the entire system getting it back.
5 REPLIES 5
Randy Rayfield
Advisor

Re: MAke_recovery tape - restore only one partition

You should be able to "skip" forward on the tape and tar or dd it off.
RAC_1
Honored Contributor
Solution

Re: MAke_recovery tape - restore only one partition

I have done a selective file restore from ignite tape. IT was as follows.

Put in the tape in drive
mt -f /dev/rmt/0m fsf 1
tar -tvf /dev/rmt/0mn > /tmp/file_list.txt

Check the file_list.txt

mt /dev/rmt/0m rewind
mt -f /dev/rmt/0mn fsf 1
cd /dir
tar -xvf /dev/rmt/0mn dir/file_to_restore

Anil
There is no substitute to HARDWORK
Steven E. Protter
Exalted Contributor

Re: MAke_recovery tape - restore only one partition

If possible this should be done fron the interactive insall interface. I'm not sure it can be done.

After the kernel load, on the console you are prompted to hit a key to get to the interactive interface.

This is really a job for a different kind of backup, either from fbackup or DP/omniback or a third party solution.

Ignite is really good at making a broke system fixed, it does not seem designed to restore single files or groups of files. It may be able to though.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Kim Kendall
Regular Advisor

Re: MAke_recovery tape - restore only one partition

Well - we ended up losing a drive and one partition (after drive replacement) was really messed up. Lost a lot of data from a single lvol, so I need to restore from tape.

I have an oracle db on the system that I take down every night and do a cold backup. So I can recover from our normal backups just fine....but...

I just found out someone else has put a sybase db on the system AND he has never shut it down or made any backups of it!!! The only time it was down was when I made the make_recovery tape (a couple months ago). And he doesn't know if he will be able to do a recovery if I just restore from our normal full/incremental backups.

I'll just try and tar that partition off the make_recovery tape.
Patrick Wallek
Honored Contributor

Re: MAke_recovery tape - restore only one partition

The others are correct. The only option is to restore from the make_tape_recovery tape via tar.

If you were to boot from the tape, it would rebuild and restore the ENTIRE system which is not what you want.