cancel
Showing results for 
Search instead for 
Did you mean: 
Walker_Yang1
Level 5
Employee

Purpose:

Move NBDB and EMM to media server from master server. NBDB and EMM resides on Master server(default).

For this topic, more information, please refer to the following link(Title:Moving the NetBackup database from one host to another on UNIX/Linux):

http://www.symantec.com/docs/HOWTO33644

NOTES: there are some misleads in this guide in the link above, so I give an simple available example for your reference. Here is my testing environment.

Configuration:

Master: SuSE 10/

Media: SuSE 11/

Client: RedHat 6/

 

Steps:

1. Install NBU software on separate master/media/client.

NOTES: default installation, NBDB and EMM resides on Master server.

2. Do some operations on Media server.

1) Shut down NBU services.

/usr/openv/netbackup/bin/bp.kill_all

2) Change EMMSERVER entry in the bp.conf from Master server name to Media server name

3) Start the Sybase SQL Anywhere server

/usr/openv/netbackup/bin/nbdbms_start_stop start

4) Create NBDB and related files in the default location(/usr/openv/db/data)

/usr/openv/db/bin/create_nbdb

3. As the database password on master and media is same, no actions required.

4. Shut down Netbackup on master and media

/usr/openv/netbackup/bin/bp.kill_all

5. Copy the following files from /usr/openv/db/data on master to /usr/openv/db/data on media

SLP_INDEX.db

SLP_DATA.db

SEARCH_INDEX.db

SEARCH_DATA.db

JOBD_DATA.db

EMM_INDEX.db

EMM_DATA.db

DBM_INDEX.db

DBM_DATA.db

DARS_INDEX.db

DARS_DATA.db

NBDB.db

NBDB.log

6. Change the databases.conf file on master and media, so that DBs do not start automatically when the srever is started.

/usr/openv/db/bin/nbdb_admin -auto_start NONE

7. Start the Sybase SQL Anywhere server on media.

/usr/openv/netbackup/bin/nbdbms_start_stop start

8. Update the catalog with the location of the database files on media

/usr/openv/db/bin/nbdb_move -data /usr/openv/db/data -index /usr/openv/db/data -tlog /usr/openv/db/data -config_only -owner EMM

/usr/openv/db/bin/nbdb_move -data /usr/openv/db/data -index /usr/openv/db/data -tlog /usr/openv/db/data -config_only -owner DBM

/usr/openv/db/bin/nbdb_move -data /usr/openv/db/data -index /usr/openv/db/data -tlog /usr/openv/db/data -config_only -owner DARS

/usr/openv/db/bin/nbdb_move -data /usr/openv/db/data -index /usr/openv/db/data -tlog /usr/openv/db/data -config_only -owner SEARCH

/usr/openv/db/bin/nbdb_move -data /usr/openv/db/data -index /usr/openv/db/data -tlog /usr/openv/db/data -config_only -owner JOBD

/usr/openv/db/bin/nbdb_move -data /usr/openv/db/data -index /usr/openv/db/data -tlog /usr/openv/db/data -config_only -owner SLP

9. Stop the Sybase SQL Anywhere server on media.

/usr/openv/netbackup/bin/nbdbms_start_stop stop

10. Change EMMSERVERentry in the bp.conf from Master to Media

11. On master, delete the following database files

SLP_INDEX.db

SLP_DATA.db

SEARCH_INDEX.db

SEARCH_DATA.db

JOBD_DATA.db

EMM_INDEX.db

EMM_DATA.db

DBM_INDEX.db

DBM_DATA.db

DARS_INDEX.db

DARS_DATA.db

NBDB.db

NBDB.log

12. Change the databases.conf file on master and media, so that DBs can  start automatically when the srever is started.

On master:

/usr/openv/db/bin/nbdb_admin -auto_start NBAZDB

On media:

/usr/openv/db/bin/nbdb_admin -auto_start NBDB

13. Start NetBackup on Media

/usr/openv/netbackup/bin/bp.start_all

14. Start NetBackup on Master

/usr/openv/netbackup/bin/bp.start_all

Now, moving database is finished, you can use NetBackup normally. Hope helps.

 

 

Version history
Last update:
‎06-23-2014 05:05 PM
Updated by: