Operating System - HP-UX
1830119 Members
4400 Online
109998 Solutions
New Discussion

Restoring one Filesystem from Ignite Backup?

 
SOLVED
Go to solution
Kannan_9
Occasional Advisor

Restoring one Filesystem from Ignite Backup?

Hi Experts ,

I have created Ignite tape using make_tape_recovery command. And I wanted to restore /home filesystem from it. How can I do that. Please do reply asap.

Thank you,
Regards.
Kannan.
6 REPLIES 6
Patrick Wallek
Honored Contributor
Solution

Re: Restoring one Filesystem from Ignite Backup?

First make the tape is rewound:
# mt -f /dev/rmt/?mn rew

Now space forward past the boot LIF on the tape:
# mt -f /dev/rmt/?mn fsf 1

Now extract what you want:

# tar -xvf /dev/rmt/?mn home

Be sure to replace the /dev/rmt/?mn with your appropriate tape device and be sure to use the no-rewind option (the 0mn, 1mn, etc.)

Also note that there is no leading '/' on what you are extracting from the tape.
Kannan_9
Occasional Advisor

Re: Restoring one Filesystem from Ignite Backup?

Thanks Patrick , for the quick response,

Well , just wanted to know ,
I have lost all data of /home , now /home is empty , I want to retore the /home , and if I give


# cd /home
# tar -xvf /dev/rmt/0m home , will it restore all the data of /home directory , to /home.

And also where norewind option has to be
use.

Thanks again.
Kannan.
--------
Patrick Wallek
Honored Contributor

Re: Restoring one Filesystem from Ignite Backup?

Do not CD to /home first. Otherwise you will wind up with /home/home.

# cd /

Then follow the directions above. Anywhere I have the /dev/rmt/?mn, substitute your tape drive. Make sure you use 0mn, 1mn, or whatever is appropriate where ever I used ?mn.
Kannan_9
Occasional Advisor

Re: Restoring one Filesystem from Ignite Backup?

Thanks Patrick , Many Thanks , I will update further.

Regards,
Kannan.
Devender Khatana
Honored Contributor

Re: Restoring one Filesystem from Ignite Backup?

Hi Kannan,

Important to decribing the use of no rewind device here. While taking ignite on a tape the tape has to write two different sessions on to the same tape one is in LIF format for making it bootable and another is for actually data backup in tar or cpio format. That is why while using mt command to fast forward to second session in this case as you are not using the boot option from tape use no rewind option otherwise your tape will rewind at the end of the mt command and will be positioned at the beginning of the tape ( Start of the LIF volume).

You can also find out the current position of the tape by using

#mt -t /dev/rmt/?mn status

Where ?mn is your current device file.

HTH,
Devender
Impossible itself mentions "I m possible"
Kannan_9
Occasional Advisor

Re: Restoring one Filesystem from Ignite Backup?

Thanks to all of you for your kind co-operation.

Thanks once again.

Regs,

Kannan