Nbdelete -allvolumes -force command failing with a status code 150.

Article:TECH194041  |  Created: 2012-07-30  |  Updated: 2012-08-01  |  Article URL http://www.symantec.com/docs/TECH194041
Article Type
Technical Solution


Problem



 Nbdelete -allvolumes -force command failing with a status code 150.  This is causing Netbackup cleanup jobs to end in a status code 1.


Error



Admin Log:

17:18:37.614 [7400] <2> logparams: nbdelete -allvolumes -force  
17:18:43.672 [7400] <4> nbdelete_start_bpdm_and_wait: Starting cleanup request on supported server: test_media for media: /staging
17:18:43.675 [7400] <8> file_to_cache_item: [vnet_addrinfo.c:6555] fopen() failed ERRNO=2 FILE=/usr/openv/var/host_cache/049/51628049+0,1,50,0,2,0+amsbck02.txt 
17:18:43.783 [7400] <8> retry_getaddrinfo_for_real: [vnet_addrinfo.c:1056] getaddrinfo() failed RV=8 NAME=test_media SVC=0 errno=0 
17:18:43.783 [7400] <8> retry_getaddrinfo: [vnet_addrinfo.c:918] retry_getaddrinfo_for_real failed RV=8 NAME=test_media SVC=0 
17:18:43.783 [7400] <8> vnet_cached_getaddrinfo_and_update: [vnet_addrinfo.c:1624] retry_getaddrinfo() failed RV=8 NAME=test_media SVC=NULL 
17:18:43.799 [7400] <8> vnet_cached_getaddrinfo: [vnet_addrinfo.c:1273] vnet_cached_getaddrinfo_and_update() failed 6 0x6 
17:18:43.799 [7400] <8> init_connect_recs: [vnet_connect.c:721] vnet_cached_getaddrinfo() failed STAT=6 RV=8 HOST=test_media
17:18:43.799 [7400] <8> connect_to_service: [vnet_connect.c:545] init_connect_recs() failed 6 0x6 
17:18:43.799 [7400] <8> vnet_connect_to_bpcd: [vnet_connect.c:279] connect_to_service() failed 6 0x6 
17:18:43.799 [7400] <2> local_bpcr_connect: Can't connect to client amsbck02 
17:18:43.799 [7400] <2> ConnectToBPCD: bpcd_connect_and_verify(test_media, test_media) failed: 48 
17:18:43.799 [7400] <16> nbdelete_start_bpdm_and_wait: Function ConnectToBPCD failed: (client hostname could not be found) 48 
17:18:43.799 [7400] <4> nbdelete: RemoveFragments: nbdelete_start_bpdm_and_wait (delete tar images) retval=48, mediaID=/staging
18:41:29.494 [7400] <16> deletionHandler::cleanDisks: RemoveAllVolumes failed remove tar images , error=150 
18:41:29.494 [7400] <2> nbdelete: EXIT status = 150 
 

Environment



 Media Server - Solaris - test_media

NB_7.5.0.1
 
Decommissioned Media Server - HPUX - test_media
NB_6.x
/staging

Cause



 The issue was caused by EMM entries for a media server that was improperly decommissioned 3 years ago.  There were EMM entries in the following tables:

 

720 - EMM_Machine
721 - EMM_MachineAlias
732 - EMM_StorageUnit_60
733 - EMM_StorageUnitGroup_60
734 - EMM_StorageUnit_STUGroup_60
843 - DBM_DeletedImageFragment

 

 


Solution



The 843 table will list the disk pool that the problem fragments are assigned too.  Once you have the disk pool name you can run the nbdelete command to remove the table entries in the 843 table.  Open a command prompt and cd to the /usr/openv/netbackup/bin/admincmd directory and run:

nbdelete -purge_deletion_list -media_id <DSSU Media ID> -force

In this case this was the command that deleted the table entries:

./nbdelete -purge_deletion_list -media_id  /staging01 -force

After the 843 table entries are deleted you will be able to remove the problem media server with the nbemmcmd -deletehost command.  Then the image cleanup jobs should run properly.

 




Article URL http://www.symantec.com/docs/TECH194041


Terms of use for this information are found in Legal Notices