Moving the NetBackup database from one host to another

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

  1. Perform a catalog backup.

  2. If NetBackup is currently installed on B, do the following:

    • Shut down NetBackup on B by typing the following command:

      Install_path/VERITAS/NetBackup/bin/bpdown

    • Run the following command on B by typing the following command:

      Install_path/VERITAS/NetBackup/bin /nbdb_relocate -make_emmhost emmservername

      This command in not internationalized.

    • 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.

  3. 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:

    Install_path/VERITAS/NetBackup/bin/nbdb_admin -dba password

  4. 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:

    Install_path/VERITAS/NetBackup/bin/bpdown

  5. Copy the following files from A to B to the final location (do not copy vxdbms.conf):

    NBDB.db

    EMM_DATA.db

    EMM_INDEX.db

    NBDB.log

    NBDB.m.log (optional)

    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.

  6. 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

  7. Start the Sybase SQL Anywhere server on B by typing the following command:

    Install_path/VERITAS/NetBackup/bin/bpup -e SQLANYs_VERITAS_NB

  8. Use the nbdb_move command on B to set the location of the database files by typing the following command:

    nbdb_move -data dataDirectoryB -index indexDirectoryB-tlog

    tlogDirectoryB [-mlog mlogDirectoryB] -config_only

  9. Stop the Sybase SQL Anywhere server on B by typing the following command:

    Install_path/VERITAS/NetBackup/bin/ bpdown -e SQLANYs_VERITAS_NB

  10. 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:

    NBDB.db

    EMM_DATA.db

    EMM_INDEX.db

    NBDB.log

    NBDB.m.log (optional)

  11. 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

    This command in not internationalized.

  12. On A, delete the following database files and configuration files:

    NBDB.db

    EMM_DATA.db

    EMM_INDEX.db

    NBDB.log

    NBDB.m.log (optional)

  13. 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

      Install_path/VERITAS/NetBackupDB/conf/databases.conf

      Install_path/VERITAS/NetBackupDB/conf/server.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

  14. Start NetBackup on B and on all master servers and media servers that use B as the EMM server.

  15. Perform a catalog backup.