cancel
Showing results for 
Search instead for 
Did you mean: 

Restore from tape to disk and restore client

robertoaxity
Moderator
Moderator
   VIP   

Hello,

is it possible to copy information from tape to disk and then restore a client with the new information on disk?

I ask it because I have in process a restore that depends on tapes but it is taking a lot of time.

Can you help me?

Regards

Netbackup version 8.3.0.2

9 REPLIES 9

Nicolai
Moderator
Moderator
Partner    VIP   

hi @robertoaxity 

Yes, it is possible. 

You need to duplicate the tape copy to disk and set the new copy as primary copy.

Or if you restore from a command line, you can specify the version to restore (tech note two).

The bpduplicate command has a -npc (new primary copy) option. You may want to test with a small image first as the bpduplicate command is a bit tricky to work with when images has been part of SLP's.

How to change a duplicate copy to be the primary copy

https://www.veritas.com/support/en_US/article.100016222

How to restore from a different copy of the backup.

https://www.veritas.com/support/en_US/article.100019393

robertoaxity
Moderator
Moderator
   VIP   

Hello Nicolai,

the restore to tape requires 4 tapes, so I must duplicate each tape to disk and then change them all to the first copy?

is this image correct for duplicating?

robertoaxity_1-1672666244383.png

 

Regards

 

quebek
Moderator
Moderator
   VIP    Certified

Hey

Please duplicate on backup ID not individual tapes... then the backup ID will ask for all four tapes.

robertoaxity
Moderator
Moderator
   VIP   

Hello,

Thanks now i select four backup id, and the duplicate process are in Queue.

Regards

Nicolai
Moderator
Moderator
Partner    VIP   

Hi @robertoaxity 

@quebek Quebek is spot on, always duplicate backup ID's. Yes it may sometimes be a very long list of backup IDs, but this way you ensure everything is moved or duplicated. If using tape ID, backup images spanning media's may be left out in the cold.

bpiamgelist is your friend in life as a Netbackup admin, learn to master it :)

robertoaxity
Moderator
Moderator
   VIP   

Hello,

The job duplication to disk finish, but i dont see the image in disk in catalog... so i dont set the new imagen in disk to primary copy

can you help me please

Hi @robertoaxity 

You may have to select a different copy number if you are using the java GUI. Otherwise, use the bbpimagelist command as suggested (bpimagelist -backupid <backupid> -l ) and see which copy is on disk (the relevant FRAG). Then use the bpchangeprimary -copy <disk copy #> -id <backupid> to set the disk copy as primary. From there the restore will use this copy by default.

David

robertoaxity
Moderator
Moderator
   VIP   

Hello,

Sorry i dont understand, so i need duplicate tape backup on disk again?

I use bpimagelist with backupid use according to the information that appears in the finished duplication.

robertoaxity_0-1672749458508.png

[root@lprvnetbkp01 (master server) admincmd]# ./bpimagelist -backupid lqavsaperpa01_1669305614 -l
IMAGE lqavsaperpa01 0 0 13 lqavsaperpa01_1669305614 DES-QA-VMW-SAP_L3 40 *NULL* root Full-Semanal 0 9 1669305614 4548 1677340814 0 0 247770857 1194937 1 2 4 DES-QA-VMW-SAP_L3_1669305614_FULL.f *NULL* *NULL* 0 2 0 0 0 *NULL* 0 0 1 0 0 1669305614 1669305614 *NULL* 0 0 0 *NULL* 33084363 2 0 34187164 0 0 *NULL* SLP_Semanal_L3 3 1669305602 5 0 *NULL* *NULL* 0 0 0 0
HISTO 0 0 0 0 0 0 0 0 0 0
FRAG 2 -1 144522 0 2 6 275 000308 lprpaplnetbk 262144 18988146 1669329661 10 0 *NULL* 1677340814 0 65541 0 1 0 1 1677340814 1669359084 1 1 *NULL* *NULL* 0 0
FRAG 2 1 247626336 0 2 6 274 000308 lprpaplnetbk 262144 18020853 1669329661 10 0 *NULL* 1677340814 0 65541 0 1 0 1 1677340814 1669359084 1 1 *NULL* *NULL* 0 0

or a need another backupid? because the disk are stu_DESQA (media server)

Regards

 

 

 

Nicolai
Moderator
Moderator
Partner    VIP   

@robertoaxity 

To clarify - if you have a backup image and create copies of it, it will not be listed twice in the Netbackup catalog. Only one records will exist, but the number of fragments will be updated to reflect the new copies. The size of a FRAG is controlled by the "Maximum Fragment Size" and it is normal to have multiple fragments for one single backup image. E.g is Maximum fragment size" is 50G and the backup image is 100G, you will have 2 fragments. If you have two copies, one on tape and on disk, you will have at least 4 FRAG fields.

Please take a look at  "How to interpret the different fields in "bpimagelist -l" output?"

https://www.veritas.com/support/en_US/article.100017904

First we have the IMAGE keyword and all metadata associated to the backup image

IMAGE lqavsaperpa01 0 0 13 lqavsaperpa01_1669305614 DES-QA-VMW-SAP_L3 40 *NULL* root Full-Semanal 0 9 1669305614 4548 1677340814 0 0 247770857 1194937 1 2 4 DES-QA-VMW-SAP_L3_1669305614_FULL.f *NULL* *NULL* 0 2 0 0 0 *NULL* 0 0 1 0 0 1669305614 1669305614 *NULL* 0 0 0 *NULL* 33084363 2 0 34187164 0 0 *NULL* SLP_Semanal_L3 3 1669305602 5 0 *NULL* *NULL* 0 0 0 0
HISTO 0 0 0 0 0 0 0 0 0 0 

The the fragments is listed, this is where we can find the different copies of a image.

Using the tech note - field 6 = 2 (means tape), field 9 = 000308 (media ID).

FRAG 2 -1 144522 0 2 6 275 000308 lprpaplnetbk 262144 18988146 1669329661 10 0 *NULL* 1677340814 0 65541 0 1 0 1 1677340814 1669359084 1 1 *NULL* *NULL* 0 0
FRAG 2 1 247626336 0 2 6 274 000308 lprpaplnetbk 262144 18020853 1669329661 10 0 *NULL* 1677340814 0 65541 0 1 0 1 1677340814 1669359084 1 1 *NULL* *NULL* 0 0

In the output provided, there isn't FRAG for the disk copy. So it means the duplations either isn't successful or something removed the backup image again. 

Once you have a disk copy in the bpimagelist output, you use command bpchangeprimary -copy <Copy Number > -id <backupid> provided by David to change the primary image from tape to disk. Primary Copy is field 28 in the "IMAGE" section. During a restore request, Netbackup will read field 28 and know what copy number to restore from.

Hope it clarify

Best Regards

Nicolai