Enterprise Data Services Community Blog
2 MIN READ
How to expire backup images & move media to scratch pool
Taqadus_Rehman
14 years agoLevel 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.
- 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>
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>
Published 14 years ago
Version 1.0Taqadus_Rehman
Level 6
Joined July 16, 2008
Enterprise Data Services Community Blog
Enterprise Data Services Community Blog is the perfect place to share short, timely insights including product tips, news and other information relevant to the community.