cancel
Showing results for 
Search instead for 
Did you mean: 

How to expire backup images & move media to scratch pool

Taqadus_Rehman
Level 6

 

I have gone through a scenario when some of backup images were no longer required and we decided to discard those images and reuse the media. This is how we achive it.
 
  1. Verify if there are valid images on the tape.
  2. Expire images.
  3. Verify if the tape is assigned or not.
  4. De-assign media
  5. Change volume pool
 
Verify if there are valid images on the tape.
The bpmedialist command can then be used to determine if there are valid images still on the tape. If there are valid images still on the tape, then the tape cannot be moved to another volume pool until all valid images have expired.
 
 <Install_Path>\Program Files\Veritas\netbackup\bin\admincmd\bpmedialist -m <media_id> 
 
Expire Images
If a media has valid images, but that images are no longer desired, the following command may be run:
 
 bpexpdate -m <media_id> -d 0 -force 
Verify if the tape is assigned or not
 
The vmquery command can be used to determine if the tape is assigned or not. Check the "assigned:" entry to see if an assigned time has been set. If an assigned time has been set, the tape cannot be moved to another volume pool until all valid images have expired.
 <Install_Path>\program files\veritas\volmgr\bin\vmquery –m <Media_Id> 
 
De-assign media
In case where the tape is listed with an assigned date, but where NO valid images exist on the tape, the following command can be run:
 
 C:\Program Files\Veritas\netbackup\bin\admincmd\bpexpdate -deassignempty -m <media_id>  
 
Change volume pool
Now backup images are expired, media de-assigned, now we can change volume pool
 vmchange –p <destination_pool_number> -m <media_id>