Forum Discussion

dhananjaya's avatar
dhananjaya
Level 3
9 years ago

Move client machine to another NB master server

Hi Guys I have requirment to move a Netbackup client machine temparalry to another master server from it original . What are the steps that I need to follow to move this client ? Is that just  ...
  • sdo's avatar
    9 years ago

    Q) Is that just  change master server name in bp.conf file ?

    A) Yes.

    .

    You can achieve the same result by doing:

    1) Create a text file named:     mixed-server-entries.txt

    SERVER = new-master-name
    
    SERVER = old-master-name
    
    MEDIA_SERVER = media-server-a-name

    2) And add whatever other 'server' and/or media server entries you usually use.

    3) Save and close the text file.

    4) For the next step - I very much suggest that you already have the NetBackup binaries paths in your path.

    N.B: If you are working in the binaries folder and you goof with the next command then you could accidentally corrupt the binary command bpgetconfig.  Not good.  I very much suggest that no backup admin ever works in the binaries folder.

    N.B:  If you don't know how to setup 'paths' for folders - then post another forum question - and I will tell you how to achieve that for Unix/Linux/Windows.

    5) From the old environment, push the new server list to the client using the command:

    Windows:  > type mixed-server-entries.txt | bpsetconfig -h client-name
    
    Unix:     # cat  mixed-server-entries.txt | bpsetconfig -h client-name

    6) Now the client will respond to both master servers, and can be backed up by any server name listed in as either SERVER= or MEDIA_SERVER=

    N.B:  You can cause your backups to be useless IF both environments perform backups - so be sure that only one environment - either old - or new - is performing backups.

    7) When you are happy that the new environment can backup the client, then you cause the old master to be blocked by creating a new text file, named:   new-env-servers-only.txt

    SERVER = new-master-name
    
    MEDIA_SERVER = new-env-media-a

    8) And add any other server or media server entries for the new environment, and save and close the file.

    9) Again push the server list, but this can be done from either the new environment or the old environment, because the client is currently responding to both master servers.  So use the same bpsetconfig command but 'type' or 'cat' the filename for the final list of entries.

    N.B:  After this, the client will no longer repsond to the old backup environment.

    .

    If you have many clients to update - I dare say that you could script it.