12-13-2012 04:26 AM
Hi All,
I am trying to decommission a media server, for which i used nbdecommission command but failed. Later i tried removing the host manually. Below is the error.
I do not see any STU/STUG/SLP/media/drives/robots assigned/configured to this media server.
Master server is at 7.5.0.3
Media server is at 7.1.0.4
# vmglob -listall -b | grep -i mediaserver
#
# bpmedialist -mlist -h mediaserver
#
nbemmcmd -deletehost -machinename mediaserver -machinetype media
NBEMMCMD, Version: 7.5.0.3
The function returned the following failure status:
the media is allocated for use (199)
Command did not complete successfully.
Looking for somehelp in regards to this issues. Please let me know any logs needed to analyze the issue.
Thanks in advance.
Solved! Go to Solution.
01-07-2013 08:49 PM
12-13-2012 04:35 AM
no media are assigned to this media currently. Respective o/p is already posted.
# bpmedialist -mlist -h mediaserver
#
No devices are assigned to this server.
# vmglob -listall -b | grep -i mediaserver
#
Still unable to remove it from EMM. By the way i used nbdecommission command to decom this media server which done all the work but failing to dete entry from EMM.
12-13-2012 04:38 AM
hi
and make sure you did followed the below steps..
you need to move the the assing tapes to another media server before you go and delete the media server,
condition:-both new and old meida servers showld have the same robot contor drives.
follow below commands in order
12-13-2012 04:39 AM
See if there are images assigned to this media server :
bpimagelist -media -idonly -server <media-server> -s 1/1/2005
Check resource allocation as well:
nbrbutil -dump |grep <media-server>
12-13-2012 04:40 AM
check nbrbutil -dump | grep -i <mediaserver> if its showing any allocations..
if yes..
use nbrbutil -resetmediaserver <mediaservername > then try removing..
12-13-2012 05:03 AM
No allocations found
# nbrbutil -dump | grep -i mediaserver
#
No images also found
# bpimagelist -media -idonly -server dio -d 1/1/2005
#
12-13-2012 05:11 AM
just what to confirm, did you use the media server name in below command or just meidaserver
nbrbutil -dump | grep -i mediaserver
it should be
nbrbutil -dump | grep -i <media server name>
12-13-2012 06:19 AM
# nbrbutil -dump | grep -i mediaserver
#
Yes i used my media server name, couldn't find any allocations.
12-13-2012 06:30 AM
i would suggest you to go with clean restart of netbackup master server and they try removing the media servers.
make sure your restart of netbackup is releasing all the allocations ..
before stoping netbackup.. do
/usr/openv/netbackup/bin/admincmd/nbrbutil -resetall
//usr/openv/netbackup/bin/admincmd/nbrbutil -dump | wc -l ---> it should return 9 , if not use the reset command again.. untill you get 9
and then stop the netbackup. and start it agian..
hope this helps..
12-13-2012 06:01 PM
Tried clean restart as well. but no luck.
12-13-2012 07:54 PM
Post output of following in order.
nbemmcmd -machinealias -getaliases -machinetype media -machinename machinename
Replace highlighted with your orphaned media server name
Hope this helps
12-13-2012 09:36 PM
Possibly time to open a Support call.
Seems sql commands will be needed to clean out orphaned EMM entries.
01-07-2013 08:49 PM
01-07-2013 09:09 PM
Thanks for sharing...:-)
01-08-2013 12:15 AM
But fortunately/unfortunately this time nbdecommission command exited successfully and couldn't find root cause
That's what I personally call the "Twenty foot" rule - get within 20 feet of a PC with an issue & it starts to work. Basically, any issue that resolves itself once 'engineers' are involved.