02-08-2011 11:48 AM
I've had some bar code grief which I have resolved. Now I have 3 tapes defined in the media db that don't really exist. If I try and delete/expire/move I get the perverbial error message "Volume xyz does not exist in the database, media does not exist(35)".
I have tried a combination of vmdelete and bpexpdate commands to try and remove the tape from the db. No luck. Quick and dirty fix would be?
Many thanks
Solved! Go to Solution.
02-09-2011 05:30 AM
THey were in the NetBackup Administrators Console, where you list the media showing the volume by media ID's, barcodes, media type, robot #, etc....
Maybe it's just a bug in the console? as I closed and reopened the console this morning as a test, and those ghost volumes (for lack of a better term) disappeared. I didn't think that sort of manuvering was necessary, as in the listing was pretty dynamic.
Anyhow, they disappeared from the volume manager, so this is good.
Thank you all for your help.
02-08-2011 11:54 AM
I hope we're talking post-6.x NBU version?
Please post output of the following:
nbemmcmd -listmedia -mediaid <media-id>
If pre-6.x:
bpmedialist -m <media-id>
and
vmquery -m <media-id>
02-08-2011 12:19 PM
Apologies. NB 7.0, Master and media server are Windows 2003 based.
nbemmcmd command I have tried already and it gives me the exact same message.
Volume does not exist in the database (35)
Command did not complete successfully.
02-08-2011 12:44 PM
I have obviously never encountered anything similar...
Where do you still see the media-id's?
02-09-2011 12:04 AM
Have you tried to use the -h switch using bpexpdate ??.
E.g:
bpexpdate -d 0 -mediaid ABC123 -h {media_server_who_wrote_the_media}
02-09-2011 05:30 AM
THey were in the NetBackup Administrators Console, where you list the media showing the volume by media ID's, barcodes, media type, robot #, etc....
Maybe it's just a bug in the console? as I closed and reopened the console this morning as a test, and those ghost volumes (for lack of a better term) disappeared. I didn't think that sort of manuvering was necessary, as in the listing was pretty dynamic.
Anyhow, they disappeared from the volume manager, so this is good.
Thank you all for your help.
02-09-2011 06:37 AM
I have seen over the years that GUI's are S-L-O-W to be updated with changes.
I have learned to rely more on cmd than on the GUI's. If I want sonething done quickly, I do it on cmd...
02-09-2011 07:11 AM
I would kill to have this installation on a good old Sun SPARC system of some kind. Don't really care. But something with a real shell, good old xbpadm etc.... But alas, I have no choice.