Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unsure how to restore a three year old tape

Status
Not open for further replies.
Oct 9, 2003
174
US
I am using netbackup business server 4.5GA on a solaris platform. I just received a request to do a restore from a backup tape that was created in 2005. Can anyone tell me the steps to do this? Or point me in the right direction? Very green with NB, any online docs to explain this?

Thanks
 
I'd start with running an import on the tape. It is a two step process. I don't remember if it is on the 4.5 GUI's but it can be done via the command line. Here is a helpful technote. Note make the appropriate modifications for your environment.

This is an example of how to do a phase one and phase two import from the command line.

Details:
Phase1
/usr/openv/netbackup/bin/admincmd/bpimport -create_db_info -id D0003 -server megatron -L /tmp/bpimport.phase1 &

Generate image list:
/usr/openv/netbackup/bin/admincmd/bpimport -PM -s 01/01/71 00:00:00 -e 09/20/01 23:59:59 -id D0003 | awk '{print $5}' > /tmp/import_list

Phase2
/usr/openv/netbackup/bin/admincmd/bpimport -Bidfile /tmp/import_list -L /tmp/bpimport.phase2 &


Bob Stump
Just because the VERITAS documentation states something as certain, that does not make it a fact and that is truth.
 
Thanks Stumpr,

While trying phase1. I received the following:

Import phase 1 started Mon Mar 12 2007 14:51:03
14:51:05 INF - Create DB information for media id A00000.
14:51:06 INF - Initiation of bptm process to read media id A00000 was successful.
14:51:06 INF - Waiting for mount of media id A00000 on server enterprise.telephonics.com.
14:52:10 WRN - Cannot import media id A00000, that media id is already active on this server.
14:52:11 INF - Status = cannot perform specified media import operation.


I did have another tape with MediaID A00000 but I ejected that tape and replaced it with this one. It must still be present in the database though. Any suggestions?
 
There may be an easier way but this is what I would do.
1. bpexpdate the original tape that exists in your library
2. bpimport the tape that was handed to you
3. do the restore
4. bpexpdate the tape that you imported
5. bpimport the original tape that existed in your library.

Bob Stump
Just because the VERITAS documentation states something as certain, that does not make it a fact and that is truth.
 
Stumpr again thank you as you are proving to be more helpful than Veritas support themselves.

Step 1 completed after expiring the image. I successfully added the created the db_info. I then ran:

./bpimport -PM -s 2/18/2005 0:00:00 -e 2/22/2005 0:00:00 -id A00000 | awk '{print$5}'> /u02/temp_export_hold/import_list

and the image found was:

# more import_list
enterprise.telephonics.com_1108901056


This backup from Feb 20th 2005 was a full system backup. I just need to restore one dump file from it. Can I do that?
 
OK, i tried attempting a restore by going into the GUI interface. I put in the desired date range and tried to search for a directory path I knew would be there. No dice. "their are no files that match the search criteria".

I think my problem is that I don't have the necessary .f file in the /opt/openv/netbackup/db/images/enterprise.telephonics.com/1108000000 directory. I believe this file has something to do with the files listing of the backup.

Anyone have a suggestion how I can proceed?

Thanks
 
To see the proper type and date of the image run

bpimagelist -U -d 01/01/2000 -e 03/13/2007 -client <clientname>

Then you will know how to populate the GUI for your searches

Bob Stump
Just because the VERITAS documentation states something as certain, that does not make it a fact and that is truth.
 
I think that is my exact problem. The image from the 2005 tape is not showing up.

# ./bpimagelist -U -d 01/01/2000 -e 03/17/2007 -client enterprise
Backed Up Expires Files KB C Sched Type Policy
---------------- ---------- -------- -------- - ------------ ------------
03/12/2007 06:08 03/19/2007 426 43767552 N Full Backup Sun_Exp
03/10/2007 06:08 03/17/2007 455 45609536 N Full Backup Friday_Exp
03/07/2007 06:09 03/14/2007 460 46158304 N Full Backup Tuesday_Exp



I did both first steps to completion. (./bpimport -create_db_info as well as the ./bpimport -PM). My sticking point now is that I can't just go through and restore the entire image from the backup tape. I need to select a file from that backup tape and restore that specifically. How can I go about doing that?

Thanks for your help and patience.
 
according to your post the name of the client is
enterprise.telephonics.com
not enterprise

Move the folder 1108000000

from
/opt/openv/netbackup/db/images/enterprise.telephonics.com/
to
/opt/openv/netbackup/db/images/enterprise/





Bob Stump
Just because the VERITAS documentation states something as certain, that does not make it a fact and that is truth.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top