Video Screencast Help
Symantec Appoints Michael A. Brown CEO. Learn more.

Can't expire media, requested media id is in use, nbrbutil not working

Created: 22 Feb 2013 • Updated: 22 Feb 2013 | 3 comments
This issue has been solved. See solution.

Netbackup 7.0.1. Trying to expire media ID H00173, getting "requested media id is in use, cannot process request."

However, the fix with nbrbutil does NOT work.

$ sudo nbrbutil -dump | grep H00173
        MdsAllocation: allocationKey=7061747 jobType=1 mediaKey=4010533 mediaId=H00173 driveKey=2000698 driveName=IBM.ULTRIUM-TD2.001 drivePath=/dev/rmt/9cbn stuName= masterServerName=earth mediaServerName=wind ndmpTapeServerName= diskVolumeKey=0 mountKey=0 linkKey=0 fatPipeKey=0 scsiResType=1 serverStateFlags=1

$ sudo nbrbutil -releaseMDS 4010533

$ sudo nbrbutil -dump | grep H00173
        MdsAllocation: allocationKey=7061747 jobType=1 mediaKey=4010533 mediaId=H00173 driveKey=2000698 driveName=IBM.ULTRIUM-TD2.001 drivePath=/dev/rmt/9cbn stuName= masterServerName=earth mediaServerName=wind ndmpTapeServerName= diskVolumeKey=0 mountKey=0 linkKey=0 fatPipeKey=0 scsiResType=1 serverStateFlags=1

I've tried a dozen times.

The media hasn't been used in 10 months. It is definitely out of the drive, and the drive has been in use these last 10 months.

Trying to decommission this library and this is the last media that hasn't been expired yet.

Operating Systems:

Comments 3 CommentsJump to latest comment

Mark_Solutions's picture

If nothing is running then try a nbrbutil -resetAll

Also take a look in Device Monitor just in case there is a pending request and look for any running or suspended jobs (restores usually) that may be holding it back.

 

Authorised Symantec Consultant

Don't forget to "Mark as Solution" if someones advice has solved your issue - and please bring back the Thumbs Up!!.

RamNagalla's picture

you are using wrong MDS key.

try this

sudo nbrbutil -releaseMDS 7061747

SOLUTION
Wile E. Coyote's picture

WINNER! Give Nagalla the giant stuffed panda!

All the links I found on the use of the -releaseMDS option said:

nbrbutil -releaseMDS <mediaKey>

Other examples replaced MDS with the mediaKey, and used the tape ID.

This tape has been sitting there with 939 expired images in it for 10 months. Now it can rest in peace.

Thanks!