Forum Discussion

Vickie's avatar
Vickie
Level 6
11 years ago

Unable to remove media server

Hi All,
 
Master Server Name : masterserver.bkp.com
NBU Version : 7.5.0.4
Master Server : Windows 2003
 
Media Server Name : mediaserver.bkp.com
NBU Version Media : 6.5.6
MEdia Server : Windows 2003
 
I did a media server decommission. After performing all task for decommission media server.
At the end when I tried to remove the server from emm, I got below error.
 
D:\Veritas\NetBackup\bin\admincmd>nbemmcmd -deletehost -machinename mediaserver.bkp.com -machinetype media
NBEMMCMD, Version: 7.5.0.4
The function returned the following failure status:
the media is allocated for use (199)
Command did not complete successfully.
 
1) No media/images assign to this host.
 
D:\Veritas\NetBackup\bin\admincmd>bpmedialist -mlist -h mediaserver.bkp.com -l
 
2) All refference entry of media server removed from master server.
3) Devices attached to media server removed and un-zoned. Storage unit removed.
4) Media server is in Deactivate state
5) Media server entry exist in "nbemmcmd -listhost" command output.
 
Now Media server has been shut down by the OS team.
Need help to remove this media server.
 
Note: There was basic disk storage unit configured for this server to backup its data to disk.
  • The bpimagelist output shows that the backup image belongs to the master server:

    Media Type:       Media Manager (2)
     Density:          hcart (6)
     File Num:         38
     ID:               R02210
     Host:             masterserver.bkp.com

     

    So, this shows that you have previously changed ownership for images.

    The problem is with the disk images - although the image ownership was transferred to Master, the Media Descriptor is still recorded as the media server:

    Media Descriptor:        mediaserver.bkp.com

    Have you tried to expire disk images with 'justimage' option?
    This will ensure that NBU will not try to find the actual storage path to delete the images.

15 Replies

Replies have been turned off for this discussion
  • Yes Marianne, but I tried to expire the imaged to Disk.
     
    But there are many images to Tape as well, which is still active with infinite retention.
     
    G:\Veritas\NetBackup\bin\admincmd>bpimage -newserver masterserver.bkp.com -oldserver mediaserver.bkp.com
    no entity was found

    The disk is not mounted/presented on any other server, its no more available for access.

  • For the disk images, this command will work:

    bpexpdate -justimage -backupid <image-id> -d 0

    Please shows us ouput of the following for one of the images on tape:

    bpimagelist -backupid <backup_id> -L

     

  • The bpimagelist output shows that the backup image belongs to the master server:

    Media Type:       Media Manager (2)
     Density:          hcart (6)
     File Num:         38
     ID:               R02210
     Host:             masterserver.bkp.com

     

    So, this shows that you have previously changed ownership for images.

    The problem is with the disk images - although the image ownership was transferred to Master, the Media Descriptor is still recorded as the media server:

    Media Descriptor:        mediaserver.bkp.com

    Have you tried to expire disk images with 'justimage' option?
    This will ensure that NBU will not try to find the actual storage path to delete the images.

  • Great bingo... :-)

    G:\Veritas\NetBackup\bin\admincmd>nbemmcmd -deletehost -machinename mediaserver.bkp.com -machinetype media
    
    NBEMMCMD, Version: 7.5.0.4
    
    Command completed successfully.

    Finally the media server has been removed successfully. 

    Thanks alot Marianne, for contineous help and support. By with I successfully done the months long pending issue. yeslaugh