备份策略backup_oracle_rmanbak_files原在master机器Win2008NBU上执行,因Win2008NBU运行在虚拟机上,经常看到No robot daemon or robotics are unavailable 或Robotic library is down on server, Media Server: dbrac02 这样的错误,Symantec公司建议将其转到转到另外2个Media Server上。转过来后发现执行策略是出现下面错误:
2013/2/22 17:12:00 - Info nbjm(pid=4784) starting backup job (jobid=359) for client jsgcb-fu, policy backup_oracle_rmanbak_files, schedule backup_oracle_rmanbak_files
2013/2/22 17:12:00 - Info nbjm(pid=4784) requesting STANDARD_RESOURCE resources from RB for backup job (jobid=359, request id:{8479B66B-0717-4AF5-95B5-899607B391C7})
2013/2/22 17:12:00 - requesting resource dbrac02-hcart2-robot-tld-0
2013/2/22 17:12:00 - requesting resource win2008nbu.NBU_CLIENT.MAXJOBS.jsgcb-fu
2013/2/22 17:12:00 - requesting resource win2008nbu.NBU_POLICY.MAXJOBS.backup_oracle_rmanbak_files
2013/2/22 17:12:00 - granted resource win2008nbu.NBU_CLIENT.MAXJOBS.jsgcb-fu
2013/2/22 17:12:00 - granted resource win2008nbu.NBU_POLICY.MAXJOBS.backup_oracle_rmanbak_files
2013/2/22 17:12:00 - granted resource T724L5
2013/2/22 17:12:00 - granted resource IBM.ULT3580-TD5.000
2013/2/22 17:12:00 - granted resource dbrac02-hcart2-robot-tld-0
2013/2/22 17:12:00 - estimated 0 Kbytes needed
2013/2/22 17:12:00 - Info nbjm(pid=4784) started backup (backupid=jsgcb-fu_1361524320) job for client jsgcb-fu, policy backup_oracle_rmanbak_files, schedule backup_oracle_rmanbak_files on storage unit dbrac02-hcart2-robot-tld-0
2013/2/22 17:12:01 - started process bpbrm (6492)
2013/2/22 17:12:03 - end writing
2013/2/22 17:13:22 - Error bpbrm(pid=6492) bpcd on jsgcb-fu exited with status 59: access to the client was not allowed
access to the client was not allowed(59)
解决办法:
1. 确认各机器名没错:检查hosts文件
2. 检查bp.conf(各种UNIX,Windows需要改注册表)
3. 检查NetBackup Console/Gui Double Click on Host Properties -> Clients -> jsgcb-fu -> Servers:是否有dbrac01, dbrac02 (没有则加入)
2014.07.01 今天在做Oracle11gRAC异机恢复时发现(OracleRestore: 23.22):
2014/7/1 14:53:39 - begin Restore
2014/7/1 14:53:41 - 1 images required
2014/7/1 14:53:41 - media T721L5 required
2014/7/1 14:53:43 - restoring image dbrac02_1404058152
2014/7/1 14:53:47 - requesting resource T721L5
2014/7/1 14:53:49 - granted resource T721L5
2014/7/1 14:53:49 - granted resource IBM.ULT3580-TD5.000
2014/7/1 14:58:13 - Error bpbrm(pid=10728) bpcd on OracleRestore exited with status 59: access to the client was not allowed
2014/7/1 14:58:13 - Info bpbrm(pid=10728) telling media manager to start restore on client
2014/7/1 14:58:15 - Warning bptm(pid=8204) failure logging message to client OracleRestore in log /C/Program罓Files/Veritas/NetBackup/Logs/user_ops/dbext/logs/1408.0.1404198058: server not allowed access (46)
2014/7/1 14:58:15 - Error bpbrm(pid=11080) bpcd on OracleRestore exited with status 59: access to the client was not allowed
2014/7/1 14:58:16 - Info bpbrm(pid=11080) listening for client connection
2014/7/1 14:58:16 - Info bpbrm(pid=10728) child done, status 25
2014/7/1 14:58:16 - Info bpbrm(pid=10728) sending message to media manager: STOP RESTORE dbrac02_1404058152
2014/7/1 14:54:46 - restored image dbrac02_1404058152 - (cannot connect on socket(25)); restore time 00:01:03
2014/7/1 14:58:13 - Error bpbrm(pid=10728) bpcd on OracleRestore exited with status 59: access to the client was not allowed
2014/7/1 14:58:13 - Info bpbrm(pid=10728) telling media manager to start restore on client
2014/7/1 14:58:15 - Warning bptm(pid=8204) failure logging message to client OracleRestore in log /C/Program罓Files/Veritas/NetBackup/Logs/user_ops/dbext/logs/1408.0.1404198058: server not allowed access (46)
2014/7/1 14:58:15 - Error bpbrm(pid=11080) bpcd on OracleRestore exited with status 59: access to the client was not allowed
2014/7/1 14:58:16 - Info bpbrm(pid=11080) listening for client connection
2014/7/1 14:58:16 - Info bpbrm(pid=10728) child done, status 25
2014/7/1 14:58:16 - Info bpbrm(pid=10728) sending message to media manager: STOP RESTORE dbrac02_1404058152
2014/7/1 14:54:50 - end Restore; elapsed time: 00:01:11
2014/7/1 14:58:13 - Error bpbrm(pid=10728) bpcd on OracleRestore exited with status 59: access to the client was not allowed
2014/7/1 14:58:13 - Info bpbrm(pid=10728) telling media manager to start restore on client
2014/7/1 14:58:15 - Warning bptm(pid=8204) failure logging message to client OracleRestore in log /C/Program罓Files/Veritas/NetBackup/Logs/user_ops/dbext/logs/1408.0.1404198058: server not allowed access (46)
2014/7/1 14:58:15 - Error bpbrm(pid=11080) bpcd on OracleRestore exited with status 59: access to the client was not allowed
2014/7/1 14:58:16 - Info bpbrm(pid=11080) listening for client connection
2014/7/1 14:58:16 - Info bpbrm(pid=10728) child done, status 25
2014/7/1 14:58:16 - Info bpbrm(pid=10728) sending message to media manager: STOP RESTORE dbrac02_1404058152
Restore error(2850)
在dbrac02上有看到bpcd进程(OracleRestore上同样看到该进程)执行:
C:\Program Files\Veritas\NetBackup\bin\admincmd>bptestbpcd -client OracleRestore
<16>bptestbpcd main: Function ConnectToBPCD(OracleRestore) failed: 46
server not allowed access
C:\Program Files\Veritas\NetBackup\bin\admincmd>bptestbpcd -client OracleRestore -debug
11:42:45.954 [9468.6708] <2> bptestbpcd: VERBOSE = 0
11:42:45.954 [9468.6708] <2> ConnectionCache::connectAndCache: Acquiring new connection for host win2008nbu, query type 223
11:42:45.985 [9468.6708] <2> vnet_pbxConnect: pbxConnectEx Succeeded
11:42:45.985 [9468.6708] <2> logconnections: BPDBM CONNECT FROM aaa.bb.23.12.63176 TO aaa.bb.104.113.1556 fd = 672
11:42:45.985 [9468.6708] <8> vnet_check_vxss_client_magic_with_info: [vnet_vxss_helper.c:871] Ignoring VxSS authentication 2 0x2
11:42:46.017 [9468.6708] <2> db_CLIENTsend: reset client protocol version from 0 to 8
11:42:46.266 [9468.6708] <2> db_end: Need to collect reply
11:42:46.266 [9468.6708] <2> db_freeEXDB_INFO: ?
11:42:46.297 [9468.6708] <2> vnet_pbxConnect: pbxConnectEx Succeeded
11:42:46.313 [9468.6708] <2> logconnections: BPCD CONNECT FROM aaa.bb.23.17.63177 TO aaa.bb.23.22.1556 fd = 672
11:42:46.344 [9468.6708] <2> vnet_pbxConnect: pbxConnectEx Succeeded
11:42:46.360 [9468.6708] <8> do_pbx_service: [vnet_connect.c:2108] via PBX VNETD CONNECT FROM aaa.bb.23.17.63178 TO aaa.bb.23.22.1556 fd = 696
11:42:46.360 [9468.6708] <8> vnet_vnetd_connect_forward_socket_begin: [vnet_vnetd.c:443] VN_REQUEST_CONNECT_FORWARD_SOCKET 10 0xa
11:42:46.547 [9468.6708] <8> vnet_vnetd_connect_forward_socket_begin: [vnet_vnetd.c:460] ipc_string 60890
11:42:46.984 [9468.6708] <2> ConnectToBPCD: bpcd_connect_and_verify(OracleRestore, OracleRestore) failed: 46
<16>bptestbpcd main: Function ConnectToBPCD(OracleRestore) failed: 46
11:42:46.984 [9468.6708] <16> bptestbpcd main: Function ConnectToBPCD(OracleRestore) failed: 46
<2>bptestbpcd: server not allowed access
11:42:46.984 [9468.6708] <2> bptestbpcd: server not allowed access
<2>bptestbpcd: EXIT status = 46
11:42:46.984 [9468.6708] <2> bptestbpcd: EXIT status = 46
server not allowed access
aaa.bb.23.17 是OracleRAC的scan地址,在OracleRestore上安装NBU Client时并未指定该scan地址加入Additional Server,参照上面的办法将dbrac-scan加入Server项中
或HKLM\Software\Veritas\Netbackup\CurrentVersion\Config下的Server项增加dbrac-scan(每个Server一行,同时也在hosts文件中增加对应解析项)可以解决。