This issue has been solved.

unable to delete media server from EMM DB

Created: 13 Dec 2012 | Updated: 13 Jan 2013
Login to vote
0 0 Votes

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.

Quick Look Solution

Finally I was able to delete

Finally I was able to delete the media server from configuration. Symantec support suggested to increase the logging and asked to retry the nbdecommission command to capture the logs. But fortunately/unfortunately this time nbdecommission command exited successfully and couldn't find root cause :( Following are the instructions/steps suggested by Symantec engineer. 1) Verify that the following logs are in place: /usr/openv/nebackup/logs/admin -> if the admin directory does not exist create it. /usr/openv/logs/nbemm -> if the nbemm directory does not exist create it. 2) Then open putty session to themaster server and cd to the /usr/openv/netbackup/bin and enter this command: vxlogcfg -a --prodid 51216 -o all -s DebugLevel=6 -s DiagnosticLevel=6 3) Ensure that legacy logging is turned up on master server: - Open the Netbackup Administration GUI. - Go to the host properties of master\media server. - Select the logging tab. - Uncheck robust logging and set global logging value to 5. - stop\start the NetBackup daemons\services. 4) At this point try to delete the media server from EMM or use the nbdecommission utility to decommission the media server.

Filed Under

Comments

Nagalla
Certified
Certified
13
Dec
2012
Votes
0

hi   and make sure you did

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

bpmedia -movedb -allvolumes -oldserver <old_server> -newserver<new_server>
 
nbemmcmd -deletealldevices -machinename -machinetype media
 
nbemmcmd -deletehost -machinename -machinetype media
 
remove from bp.conf of master 
 
or 
 
you can use media server decomminsion tool
 
http://www.symantec.com/business/support/index?page=content&id=TECH130438
 
hope this helps.. 
13
Dec
2012
Votes
0

no media are assigned to this

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.

 

 

Nagalla
Certified
Certified
13
Dec
2012
Votes
0

  check nbrbutil -dump | grep

 

check nbrbutil -dump | grep -i  <mediaserver>  if its showing any allocations.. 

if yes..

use nbrbutil -resetmediaserver <mediaservername > then try removing..

Marianne van den Berg
Trusted Advisor
Accredited
Certified
13
Dec
2012
Votes
0

See if there are images

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>

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

13
Dec
2012
Votes
0

  No allocations found #

 

No allocations found

# nbrbutil -dump | grep -i mediaserver
#

No images also found

# bpimagelist -media -idonly -server dio -d 1/1/2005
#

 

 

Nagalla
Certified
Certified
13
Dec
2012
Votes
-1

just what to confirm, did you

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>

13
Dec
2012
Votes
0

# nbrbutil -dump | grep -i

# nbrbutil -dump | grep -i mediaserver
#

 

Yes i used my media server name, couldn't find any allocations.

Nagalla
Certified
Certified
13
Dec
2012
Votes
0

i would suggest you to go

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.. 

13
Dec
2012
Votes
0

Tried clean restart as well.

Tried clean restart as well. but no luck.

captain jack sparrow
Partner
Accredited
13
Dec
2012
Votes
0

Post output of following in

Post output of following in order.

nbemmcmd -machinealias -getaliases -machinetype media -machinename machinename

 

nbemmcmd -machinealias -machinename machinename -machinetype media -deleteallaliases -machinename <machinename>
 
nbemmcmd -deletealldevices -machinename machinename -machinetype media
 
nbemmcmd -deletehost -machinename machinename -machinetype media

 

Replace highlighted with your orphaned media server name

Hope this helps

 Cheers !!!

 

EV Outlook Client Add-ins

Marianne van den Berg
Trusted Advisor
Accredited
Certified
13
Dec
2012
Votes
0

Possibly time to open a

Possibly time to open a Support call. 

Seems sql commands will be needed to clean out orphaned EMM entries.

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

07
Jan
2013
Votes
+1
SOLUTION

Finally I was able to delete

Finally I was able to delete the media server from configuration.

Symantec support suggested to increase the logging and asked to retry the nbdecommission command to capture the logs. But fortunately/unfortunately this time nbdecommission command exited successfully and couldn't find root cause :(

Following are the instructions/steps suggested by Symantec engineer.

1) Verify that the following logs are in place:

/usr/openv/nebackup/logs/admin -> if the admin directory does not exist create it.
/usr/openv/logs/nbemm -> if the nbemm directory does not exist create it.

2) Then open putty session to themaster server and cd to the /usr/openv/netbackup/bin and enter this command:

vxlogcfg -a --prodid 51216 -o all -s DebugLevel=6 -s DiagnosticLevel=6

3) Ensure that legacy logging is turned up on master server:

- Open the Netbackup Administration GUI.
- Go to the host properties of master\media server.
- Select the logging tab.
- Uncheck robust logging and set global logging value to 5.
- stop\start the NetBackup daemons\services.

4) At this point try to delete the media server from EMM or use the nbdecommission utility to decommission the media server.

Nagalla
Certified
Certified
07
Jan
2013
Votes
0

Thanks for sharing...:-)

Thanks for sharing...:-)

Andy Welburn
Trusted Advisor
08
Jan
2013
Votes
0

But fortunately/unfortunately

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.