First you need to make sure that there are no valid images on the tape that you want.
NetBackup\bin\admincmd\[color red]bpimmedia -mediaid <TapeNumber> -L [/color]
If there are no images that you need, expire the tape:
NetBackup\bin\admincmd\[color red]bpexpdate -m <TapeNumber> -d 0 -host <MediaServer> -force [/color]
This expires the images in the media database which resides specifically on the media server.
Verify that the images have been expired by re-running:
NetBackup\bin\admincmd\[color red]bpimmedia -mediaid <TapeNumber> -L [/color]
Now make sure that the tape is deleted from the volume manager on the master server. This step is automatically run by Veritas twice a day, and if you have used bpexpdate the tape will be removed but you can force it to take effect immediately:
volmgr\bin\[color red]vmquery -m <TapeNumber> [/color]
This gets some information on the tape such as its assigned date, pool number and status. If the status is anything other that 0x0, that issue needs to be resolved first û The most likely issue is a Frozen tape û IT must be unfrozen before you deassign it.
To unfreeze a tape:
NetBackup\bin\admincmd\[color red]bpmedia -unfreeze -m <TapeNumber> -h <MediaServer> [/color]
If the tape was suspended you can replace -unfreeze with -unsuspend
If you are unsure which media server the tape belongs to:
NetBackup\bin\admincmd\[color red]bpimmedia -L -mediaid <TapeNumber> [/color]
This step will deassign and remove the volume images.
Volmgr\bin\[color red]vmquery -deassignbyid <TapeNumber> <Pool> <Status> [/color]
Finally delete the tape:
volmgr/bin/[color red]vmdelete -m <media-id> [/color]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.