09-21-2010 02:21 AM
Hello,
I have a a disk staging storage who works perfectly, the final destination is a LTO2 tape,
A tape was damaged, but the original backup is still on disk,
How can I send these images on a new tape again,
I was thinking to expire the damaged tape and restart manually the relocation to final destination,
it is maybe wrong or is there any other way to duplicate the primary copy
Note It concerns my oldest master (version 5.0) that's why I do not bother the support ...
Thank you
Solved! Go to Solution.
09-21-2010 11:44 AM
But I have a manual suggestion:
If you know the image id's, list them in a text file or use this command to list all images on the disk stu
bpimmedia -l -mediaid {DISK_STU_PATH} -d 01/01/2010 | grep IMAGE |awk '{ print $4 }' > /tmp/to_duplicate
Do not add a / to the path for the diskstu. Then do a:
bpduplicate -dstunit {storageunit} -Bidfile /tmp/to_duplicate -primary -dp {DESTINATION_VOLUME_POOL} -L /tmp/progress.log
bpduplicate will then start duplicating the images listed in "to_duplicate". The duplication process will delete the /tmp/to_duplicate files when finished. The duplicated images will be the primary version (-primary qualifier to bpduplicate) and you can now safe expire the disk images (optional of cause).
e.g.
bpexpdate -backupid {backupid} -d 0 -copy 1
Before starting to duplicating the images, pls check Netbackup is configured to allow more than two copies. Check Host properties - master server - global attributes - Maximum backup copies.
09-21-2010 11:44 AM
But I have a manual suggestion:
If you know the image id's, list them in a text file or use this command to list all images on the disk stu
bpimmedia -l -mediaid {DISK_STU_PATH} -d 01/01/2010 | grep IMAGE |awk '{ print $4 }' > /tmp/to_duplicate
Do not add a / to the path for the diskstu. Then do a:
bpduplicate -dstunit {storageunit} -Bidfile /tmp/to_duplicate -primary -dp {DESTINATION_VOLUME_POOL} -L /tmp/progress.log
bpduplicate will then start duplicating the images listed in "to_duplicate". The duplication process will delete the /tmp/to_duplicate files when finished. The duplicated images will be the primary version (-primary qualifier to bpduplicate) and you can now safe expire the disk images (optional of cause).
e.g.
bpexpdate -backupid {backupid} -d 0 -copy 1
Before starting to duplicating the images, pls check Netbackup is configured to allow more than two copies. Check Host properties - master server - global attributes - Maximum backup copies.
09-21-2010 12:02 PM
Use the GUI - go into the catalog and search for Copy #2 of that backup (assuming that the destroyed tape was set as the primary after duplication) and then do a duplicate job using the option from right-click. If duplicate isn't available make sure you are set to duplicate on the catalog view and not verify. command line always works, but guis make it nice to find and perform what you're looking for. Set the new duplication to primary and expire the broken tape copy.
09-22-2010 01:53 AM
Outbacker - it should be copy #1
09-22-2010 07:07 AM
Thank you for your help, with your advices I was able to write a script to replace the broken tape
I let the primary copy on disk as requested by my customer
The tape broken hosts the copy number2 of 66 backupids,
09-22-2010 07:52 AM
thanks for the follow-up
09-23-2010 12:08 AM
Thumps up from me. Thanks for marking my post as a solution.