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.
- Verify if there are valid images on the tape.
- Expire images.
- Verify if the tape is assigned or not.
- De-assign media
- 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>
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>
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>