cancel
Showing results for 
Search instead for 
Did you mean: 

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

Wile_E__Coyote
Level 4

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.

1 ACCEPTED SOLUTION

Accepted Solutions

RamNagalla
Moderator
Moderator
Partner    VIP    Certified

you are using wrong MDS key.

try this

sudo nbrbutil -releaseMDS 7061747

View solution in original post

3 REPLIES 3

Mark_Solutions
Level 6
Partner Accredited Certified

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.

 

RamNagalla
Moderator
Moderator
Partner    VIP    Certified

you are using wrong MDS key.

try this

sudo nbrbutil -releaseMDS 7061747

Wile_E__Coyote
Level 4

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!