cancel
Showing results for 
Search instead for 
Did you mean: 

image cleanup partially succussful due to old clients removed

randes2000
Level 4

Netbackup 7.5.0.4 on Solaris 10.  After deleting an old policy for a server no longer online, my image cleanup is partially successful with the following error:

"Error nbdelete (pid=20502) Fragments were not removed. Server <client name> is invalid (37 )"

I removed the acutal client name due to security rules.

I encountered this issue several years ago, but do not remember the solution.  Thanks for any help.

1 ACCEPTED SOLUTION

Accepted Solutions

Marianne
Level 6
Partner    VIP    Accredited Certified

Try the following:

 

bpimage - newserver <new-server> -oldserver <old-server>

Then try to delete the server

nbemmcmd -deletehost -machinename <old-server> -machinetype foreign_media

View solution in original post

9 REPLIES 9

Marianne
Level 6
Partner    VIP    Accredited Certified

Seems NBU media server was removed and not just a client.

Media servers need to be properly decommisioned.
nbdecommission is the recommended way - it will move image ownership to new media server and remove all devices and EMM server name from NBU.

See:
http://www.symantec.com/docs/HOWTO72806 
http://www.symantec.com/docs/HOWTO66666

Jaykullar
Level 5

You could run the following:

bpmedialist -mlist -l -h <old_server>

bpmedia -movedb -allvolumes -oldserver <old_server> -newserver <new_server>

then nbdelete -allvolumes -force, then bpimage -cleanup -allclients

randes2000
Level 4

Looks like this old server was a media server.  We have a retention policy of two years, so I can't expire any remaining images still within that timeframe.

The bpmedialist and bpmedia commands fail, because the old media server is no longer in the NetBackup configuration.

I need a method of moving any remaining images for this media server to another.  Thanks for the info.

Jaykullar
Level 5

Has the old media server been deleted from the EMM?

randes2000
Level 4

"nbemmcmd -listhosts"  shows a listing for this old media server as:

foreign_media   <server-name>

Jaykullar
Level 5

So these images that its trying to clean up have they expired? Can you go into catalog and delete the images manually then try the nbdelete and clean up?

Marianne
Level 6
Partner    VIP    Accredited Certified

I need a method of moving any remaining images for this media server to another.

 

Look at nbdecommission as per my post above.

It does not need decommissioned media server to be up and running.

nbdecommission -oldserver <hostname> -newserver <hostname>

randes2000
Level 4

Marianne,

  I took your advice and ran the nbdecommission command and it looks like it succeeded somewhat.  The last statement of the output was "unable to delete host <server name>".   Also this server is still listed as "foreign media" with the "nbemmcmd -listhosts" command.  My main objective is to get a complete image cleanup.  I manually initiated a cleanup, but the output is not the same as the automated run.  I'll wait for the system to run one and check the output.  Thanks for your help.

Marianne
Level 6
Partner    VIP    Accredited Certified

Try the following:

 

bpimage - newserver <new-server> -oldserver <old-server>

Then try to delete the server

nbemmcmd -deletehost -machinename <old-server> -machinetype foreign_media