1826451 Members
3969 Online
109692 Solutions
New Discussion

Re: Restore from Ignite

 
Waqar Razi
Regular Advisor

Restore from Ignite

I have an ignite backup tape and I want to restore certain file from it. I am just kinda confused about the pathname to specify, the command to restore a file called ignite.date located in directory /DR/Ignite/ignite.date shoul be

tar -xvf /dev/rmt/0mn /DR/Ignite/ignite.date

or

tar -xvf /dev/rmt/0mn DR/Ignite/ignite.date.

The output of tar -tvf /dev/rmt/0mn is as follows:

r-xr-xr-x 2/2 0 Aug 28 11:01 2008 stand/
rwxr-xr-x 0/0 0 Nov 30 06:37 2004 stand/lost+found/
r--r--r-- 0/3 1771 Mar 17 19:30 2008 stand/system
r--r--r-- 0/3 82 Nov 15 14:04 2000 stand/kernrel
rw-rw-rw- 0/3 11344 Jul 31 04:00 2008 stand/ioconfig
rw-r--r-- 0/3 19 Jan 15 00:48 2006 stand/bootconf
rw------- 0/3 0 Nov 30 06:57 2004 stand/.kminstall_lock
rwxr-xr-x 0/3 0 Mar 17 19:31 2008 stand/system.d/
rw-r--r-- 0/3 174 Jan 15 00:55 2006 stand/system.d/krm
rw-r--r-- 0/3 36 Mar 17 19:30 2008 stand/system.d/emcp
rw-r--r-- 0/3 36 Mar 17 19:31 2008 stand/system.d/emcpmpx
rw-r--r-- 0/3 36 Mar 17 19:30 2008 stand/system.d/emcpcg
rw-r--r-- 0/3 36 Mar 17 19:30 2008 stand/system.d/emcpsapi
rw-r--r-- 0/3 36 Mar 17 19:31 2008 stand/system.d/emcpgpx
rw-r--r-- 0/3 36 Mar 17 19:31 2008 stand/system.d/emcpgpx_dm
rwxr-xr-x 0/3 0 Mar 17 19:31 2008 stand/build/
rw-r--r-- 0/3 96814 Mar 17 19:31 2008 stand/build/conf.c
rwxr--r-- 0/3 15489 Mar 17 19:31 2008 stand/build/config.mk
rw-r--r-- 0/3 5116 Mar 17 19:31 2008 stand/build/tune.h
rwxr-xr-x 0/3 0 Mar 17 19:31 2008 stand/build/mod_wk.d/
rwxr-xr-x 0/3 0 Mar 17 19:31 2008 stand/build/mod_wk.d/krm/
rw-r--r-- 0/3 169 Mar 17 19:31 2008 stand/build/mod_wk.d/krm/mod_conf.c
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: Restore from Ignite

Shalom,

You may need to go to the second section of the tape to get what you want.

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1039602

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
Pete Randall
Outstanding Contributor

Re: Restore from Ignite

Judging from your tar -tvf output, you're going to have a hard time restoring something that wasn't backed up.

What command did you use to create this Ignite tape?


Pete

Pete
Waqar Razi
Regular Advisor

Re: Restore from Ignite

/opt/ignite/bin/make_tape_recovery -Ava /dev/rmt/0mn -n 5
Pete Randall
Outstanding Contributor

Re: Restore from Ignite

It appears that all that was backed up was the /stand file system. I generally recommend that you use

make_tape_recovery -a /dev/rmt/0mn -I -x inc_entire=vg00

so that you get the entirety of your root volume group rather than just the subset of files that Ignite thinks are critical.


Pete

Pete
Pete Randall
Outstanding Contributor

Re: Restore from Ignite

As you can see from my tar -tvf output, I have all the /stand stuff that you have but also a lot more (the actual listing goes on for hundreds of screens):

rw-r--r-- 0/3 1047892 Apr 2 14:52 2008 stand/dlkm/symtab
r--r--r-- 0/3 82 Apr 27 08:41 2004 stand/kernrel
rw------- 0/0 12 Jul 24 12:28 2008 stand/rootconf
rwxr-xr-x 0/3 0 Aug 21 10:17 2007 stand/dlkm.vmunix.prev/
rwxr-xr-x 0/3 0 Aug 21 10:11 2007 stand/dlkm.vmunix.prev/system.d/
rw-r--r-- 0/3 204 Aug 21 10:11 2007 stand/dlkm.vmunix.prev/system.d/krm
rwxr-xr-x 0/3 0 Aug 21 10:11 2007 stand/dlkm.vmunix.prev/node.d/
rwxr-xr-x 0/3 0 Aug 21 10:11 2007 stand/dlkm.vmunix.prev/mod.d/
rw-r--r-- 0/3 8488 Aug 21 10:11 2007 stand/dlkm.vmunix.prev/mod.d/krm
rw-r--r-- 0/3 2735 Aug 21 10:11 2007 stand/dlkm.vmunix.prev/system
rw-r--r-- 0/3 75 Aug 21 10:11 2007 stand/dlkm.vmunix.prev/mod_register
rw-r--r-- 0/3 1018464 Aug 21 10:13 2007 stand/dlkm.vmunix.prev/symtab
rwxr-xr-x 0/3 18834944 Aug 21 10:13 2007 stand/vmunix.prev
rwxr-xr-x 0/0 0 Jul 24 12:28 2008 stand/krs_lkg/
rw------- 0/0 68664 Jul 24 12:23 2008 stand/krs_lkg/_stand_vmunix.krs
rw------- 0/0 24 Jul 24 12:23 2008 stand/krs_lkg/system.krs
rwxr-xr-x 0/3 18189576 Apr 2 14:52 2008 stand/vmunix
rwxr-xr-x 0/0 0 Aug 21 10:25 2007 home/
r-xr-xr-x 2/2 0 Apr 2 15:05 2008 opt/
rwxrwxrwx 2/2 0 Jul 28 11:15 2008 tmp/
r-xr-xr-x 2/2 0 Oct 3 14:09 2007 usr/
r-xr-xr-x 2/2 0 Apr 3 06:08 2008 usr/bin/
r-sr-xr-x 0/2 32768 Nov 9 14:38 2000 usr/bin/mediainit


Pete

Pete
Waqar Razi
Regular Advisor

Re: Restore from Ignite

It doesnt mean that it only has stand in backup, it has other things as well. My question is should I reference to directory as /DR/Ignite or DR/Ignite when specifying in tar command
Patrick Wallek
Honored Contributor

Re: Restore from Ignite

You need to specify the file exactly as it is stored on tape. As you can see from your brief output, there is NO leading '/' in the names.

So the command to use would be:

tar -xvf /dev/rmt/0mn DR/Ignite/ignite.date

Don't forget to do a:

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

to space forward over the boot area at the beginning of the tape before you do your restore.