Moving a database after installation
The NetBackup database (NBDB) and the NetBackup authorization database (NBAZDB), are created on the primary server by default. To improve performance, you can use the NetBackup database administration utilities or command-line options to change the location of the databases.
Note the following:
If BMR is installed and you want to move its database, it must reside on the primary server.
Due to performance issues, you can only move a database to another disk or volume. The disk or volume must be locally attached.
NetBackup does not support saving the NetBackup database (NBDB, including EMM), NBAZDB, or the configuration files to a remote NFS share. CIFS is supported on some SAN storage and NAS storage.
Run a catalog backup to back up NBDB and BMRDB both before and after moving the databases.
The following instructions describe how to use the database administration utility to move a database.
You can also use the following command:
install_path\Veritas\NetBackup\bin\nbdb_move.exe
You can run the nbdb_move command at any time because it does not drop the database and recreate it. Therefore all the data is preserved.
To move a NetBackup database on Windows
- Perform a catalog backup.
- Shut down all NetBackup services by typing the following command:
install_path\Veritas\NetBackup\bin\bpdown
- Start the NetBackup Scale-Out Relational Database Manager service:
install_path\Veritas\NetBackup\bin\bpup -e vrtsdbsvc_psql
- Start the NetBackup Database Administration utility and enter the database logon password. Click OK.
- From the Database list, select the database that you want to move.
- Select the Tools tab.
- Click Move.
- Select Move data to and browse to the new location.
- NetBackup does not require that the database directories are world-writable. Make sure that the new database directories (data_directory) have appropriate permissions so that the directories are not world-writable.
- Start all services by typing the following command:
install_path\Veritas\NetBackup\bin\bpup
- Perform a catalog backup.
To move a NetBackup database on UNIX
- Perform a catalog backup.
- Shut down all NetBackup daemons by typing the following command:
/usr/openv/netbackup/bin/bp.kill_all
- Start the NetBackup Scale-Out Relational Database Manager daemon:
/usr/openv/netbackup/bin/nbdbms_start_stop start
- Use one of the following methods to move the existing databases:
Use the Move Database option in the NetBackup Database Administration utility (dbadm).
Enter the following command:
/usr/openv/db/bin/nbdb_move
-data data_directory
You can run the nbdb_move command at any time because it does not drop the database and recreate it. Thus, all data is preserved.
/usr/openv/db/bin/nbdb_move -data data_directory
Note:
NetBackup does not require that the database directories are world-writable. Make sure that the new database directories (data_directory) have appropriate permissions so that the directories are not world-writable.
- Start all NetBackup daemons by typing the following command:
/usr/openv/netbackup/bin/bp.start_all
- Perform a catalog backup.