How to release a media and drive from NBRB

Article: 100001079
Last Published: 2014-04-02
Ratings: 2 0
Product(s): NetBackup & Alta Data Protection

Problem

Problem occurs when allocation of media or tape drive is present in NBRB and other jobs are getting affected.

Cause

Master Server:
 
1.  Run:  nbrbutil -resetMediaServer "Media_server name"
 
2.  Run:  nbrbutil -dump This shows the Media in question is still reserved.  GUI shows the media is still in the drive.
 
3.  Run:  nbrbutil -releaseMDS <MediaKey> (Shows no error)
 
4.  Run:  nbrbutil -dump  (This shows the media is still reserved.)

Solution

To manually remove the files associated with the media and drive, from the media server perform the following:
 
1.  cd /usr/openv/netbackup/db/media
 
2.  Remove <db.lockfile>
 
3.  cd /usr/openv/netbackup/db/media/drives
 
4.  Remove the drive which reserved the Media
 
5.  Run:  /usr/openv/netbackup/db/media/tpreq
 
6.  Remove the drive in question.
 
7.  Stop NetBackup services.
 
8.  cd  /usr/openv/volmgr/misc
 
9.  Remove all lock files.
 
10.  Start NetBackup services.
 

 
How to manually remove the files associated with the media and drive, from the Master Server.
 
1.  Run:  nbrbutil -resetMediaServer "Media_server name"
 
2.  Run:  nbrbutil -dump
 
3.  Confirm the media has been released.


Applies To

1.  Verify the media is not in the drive using /usr/openv/volmgr/bin/robtest.
 
2.  Run /usr/openv/netbackup/bin/admincmd/nbrbutil -dump and confirm that the media has been reserved for a media server "Mediaserver name".
 
3.  Cancel all the jobs running on Mediaserver.

Was this content helpful?