The NetBackup database, NBDB, must always reside on the same host as the EMM server. If NBDB is moved, the EMM server must also be moved. The Bare Metal Restore database, BMRDB, must always reside on the master server. So, if NBDB and EMM server are moved to a media server from a master server, BMRDB must remain on the master server.
Use the following procedure to move the NetBackup database (NBDB) from host A to host B. This procedure also reconfigures NetBackup so that the new database host becomes the EMM server.
If you move the NetBackup database and the EMM server to a different host in a cluster environment, see the following topic:
See Cluster considerations with the EMM server.
To move the NetBackup database from one host to another
If NetBackup is currently installed on B, do the following:
Run the following command on B by typing the following command:
Install_path/VERITAS/NetBackup/bin /nbdb_relocate -make_emmhost emmservername
Start the Sybase SQL Anywhere server on B by typing the following command:
Install_path/VERITAS/NetBackup/bin /bpup -e SQLANYs_VERITAS_NB
Create NBDB and associated files in the default location on B by typing the following command:
Install_path/VERITAS/NetBackup/bin/create_nbdb create_nb -drop
If NetBackup is not installed on B, install NetBackup on B identifying B as the EMM server.
Set the database password on host B to match the password on A if the password has changed from the default. Use the NetBackup Database Administration utility or type the following command:
Shut down NetBackup on A and B and on all master servers and media servers using host A as the EMM server by typing the following command:
Copy the following files from A to B to the final location (do not copy vxdbms.conf):
If the database files on B are in the default location (Install_path/VERITAS/NetbackupDB/data) and server A is also running Windows, go to the following step:
11.
Change databases.conf on A and B so that the databases do not start automatically when the server is started by typing the following command:
Install_path/VERITAS/Netbackup/bin/ nbdb_admin -auto_start NONE
Start the Sybase SQL Anywhere server on B by typing the following command:
Install_path/VERITAS/NetBackup/bin/bpup -e SQLANYs_VERITAS_NB
Use the nbdb_move command on B to set the location of the database files by typing the following command:
Stop the Sybase SQL Anywhere server on B by typing the following command:
Install_path/VERITAS/NetBackup/bin/ bpdown -e SQLANYs_VERITAS_NB
On B, delete the database files in the default directory if non-default locations are used for dataDirectoryB, indexDirectoryB, tlogDirectoryB, mlogDirectoryB by typing the following command:
Run the following command on A and on all master servers and media servers that used A as the EMM server:
Install_path/VERITAS/NetBackup/bin/ nbdb_relocate -change_emmhost emmservername
On A, delete the following database files and configuration files:
On A do the following:
If BMRDB does not exist on A, delete the configuration files by typing the following command:
Install_path/VERITAS/NetBackupDB/data/vxdbms.conf
If BMRDB exists on A, do the following:
Run the following command on A so that BMRDB starts automatically when the server is started:
Install_path/VERITAS/Netbackup/bin/ nbdb_admin -auto_start BMRDB
Start NetBackup on B and on all master servers and media servers that use B as the EMM server.