How to expire backup images & move media to scratch pool

Created: 01 Feb 2011
Login to vote
+4 4 Votes

 

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> 

Filed Under

Comments

22
Feb
2013

Thanks Rehman, for sharing

Thanks Rehman, for sharing the process which is very simple to understand and very usefull as well.

 

Jecintha's picture
Jecintha
Certified
Certified
30
Aug
2013

Hello Rehman, How do we find

Hello Rehman,

How do we find the pool number?  On running the vmquery command, I could not see any pool number :

D:\Program Files\Veritas\Volmgr\bin>vmquery -m E640L4
================================================================================

media ID:              E640L4
media type:            1/2" cartridge tape (6)
barcode:               DPE640L4
media description:     Added by Media Manager
volume pool:           Scratch (5)
robot type:            TLD - Tape Library DLT (8)
robot number:          1
robot slot:            4
robot control host:    XXXXX
volume group:          001_00001_TLD
vault name:            ---
vault sent date:       ---
vault return date:     ---
vault slot:            ---
vault session id:      ---
vault container id:    -
created:               5/5/2012 5:45:57 AM
assigned:              ---
last mounted:          ---
first mount:           ---
expiration date:       ---
number of mounts:      0
max mounts allowed:    ---
================================================================================

31
Aug
2013

Hi Jecintha The pool number

Hi Jecintha

The pool number is given in brackets along with pool name.

volume pool:           Scratch (5)

 

Regards,

Vickie