下面步骤描述如何把NetBackup7.7版本的Master Server从oldmaster改成newmaster。
1. 停止NetBackup进程
2. 备份/usr/openv用于回退。
3. 判断新主机名的正确性
# bpclntcmd -is_local_host newmaster
newmaster is a local host
4. 修改bp.conf, vm.conf
5. 启动emm进程
# nbdbms_start_stop start
# /usr/openv/netbackup/bin/nbemm
# bpps
root 6204 1 2 23:38 ? 00:00:00 /usr/openv/db//bin/NB_dbsrv @/usr/openv/var/global/server.conf @/usr/openv/var/global/databases.conf -hn 5
root 6235 1 0 23:38 ? 00:00:00 /usr/openv/netbackup/bin/nbemm
# nbemmcmd -listhosts
NBEMMCMD, Version: 7.7
The following hosts were found:
server newmaster
master oldmaster
7. 修改emm数据库名称
# nbdb_admin -vxdbms_nb_server newmaster
Database server name updated successfully.
# nbemmcmd -renamehost -machinename oldmaster -machinetype master -newmachinename newmaster
NBEMMCMD, Version: 7.7
Command completed successfully.
# nbemmcmd -listhosts
NBEMMCMD, Version: 7.7
The following hosts were found:
server newmaster
master newmaster
Command completed successfully.
# nbemmcmd -updatehost -machinename newmaster -machinetype master -operatingsystem linux
8. 重启emm数据库和nbemm
9. 验证
# nbdb_ping
Database [NBDB] is alive and well on server [NB_newmaster].
# nbdb_admin -validate -full
10. 启动NetBackup进程bp.start_all
11. 重新扫描配置信息
nbemmcmd -deletealldevices -allrecords
12. 用Wizard生产配置信息
注意:重启可以有可能会出现看不到policy情况,给oldmaster一个解析即可。
13. 修改media server的emm名称
nbemmcmd -setemmserver -emmservername oldmaster -newemmservername newmaster
14.修改image/media DB
bpimage -newserver newmaster -oldserver oldmaster
bpmedia -movedb -allvolumes -oldserver oldmaster -newserver newmaster
原文地址:https://www.cnblogs.com/netbackup/p/9063759.html