netbakcup備份時遇到 status 59: access to the client was not allowed 問題解決
一.問題描述
在一個linux 6.3 x86_64+oracle 10.2.0.5的資料庫伺服器上安裝netbackup client和netbakckup db for oracle 後,在netbackup server上配置備份策略.進行手工備份時發生錯誤程式碼為59的錯誤,
錯誤描述如下:
2012-10-24 11:40:37 - Info nbjm(pid=3436) starting backup job (jobid=269562) for client zhjkdb, policy ORA-ZHJKDB, schedule fullbackup
2012-10-24 11:40:37 - Info nbjm(pid=3436) requesting MEDIA_SERVER_WITH_ATTRIBUTES resources from RB for backup job (jobid=269562, request id:{E2ADD91E-3307-4F69-8D2C-7B968B0182A2})
2012-10-24 11:40:37 - requesting resource Disk-Main
2012-10-24 11:40:37 - requesting resource netbackup.NBU_CLIENT.MAXJOBS.zhjkdb
2012-10-24 11:40:37 - requesting resource netbackup.NBU_POLICY.MAXJOBS.ORA-ZHJKDB
2012-10-24 11:40:37 - granted resource netbackup.NBU_CLIENT.MAXJOBS.zhjkdb
2012-10-24 11:40:37 - granted resource netbackup.NBU_POLICY.MAXJOBS.ORA-ZHJKDB
2012-10-24 11:40:37 - granted resource Disk-Main
2012-10-24 11:40:39 - estimated 0 Kbytes needed
2012-10-24 11:40:39 - Info nbjm(pid=3436) started backup job for client zhjkdb, policy ORA-ZHJKDB, schedule fullbackup on storage unit Disk-Main
2012-10-24 11:40:41 - started process bpbrm (7144)
2012-10-24 11:40:44 - Error bpbrm(pid=7144) bpcd on zhjkdb exited with status 59: access to the client was not allowed
2012-10-24 11:40:44 - Info bpbrm(pid=7144) zhjkdb is the host to backup data from
2012-10-24 11:40:44 - end writing
access to the client was not allowed(59)
客戶端測試伺服器的帶庫是否可以使用,結果也失敗,如下:
[oracle@zhjkdb ~]$ sbttest "SBT_TAPE"
The sbt function pointers are loaded from libobk.so library.
-- sbtinit succeeded
-- sbtinit (2nd time) succeeded
sbtinit: Media manager supports SBT API version 2.0
sbtinit: Media manager is version 5.0.0.0
sbtinit: vendor description string=Veritas NetBackup for Oracle - Release 6.5 (2007072323)
sbtinit: allocated sbt context area of 8 bytes
sbtinit: proxy copy is supported
-- sbtinit2 succeeded
-- regular_backup_restore starts ................................
MMAPI error from sbtbackup: 7501, VxBSACreateObject: Failed with error:
Server Status: access to the client was not allowed
二.問題分析
在netbackup server檢視job的工作記錄和錯誤的描述,如下:
Status 59: access to the client was not allowed
The master or the media server tries to access the client, but the client does not recognize the server as a valid server.
For the Enterprise Vault Agent: The names of all of the media servers among the Enterprise Vault servers are not specified in the client configuration.
troubleshoot:
Do the following, as appropriate:
* If the server is a valid server, verify that it is in the server list on the client. If necessary add it as follows:
* On Windows clients: Add the server on the Server to use for backups and restores drop-down in the Specify NetBackup Machines and Policy Type dialog box. To display this dialog box, start the Backup, Archive, and Restore interface on the client. Then click Specify NetBackup Machines and Policy Type on the File menu.
* On UNIX and Linux, and Macintosh clients: add a SERVER entry in the bp.conf file.
* On NetWare target clients: add a SERVER entry in the bp.ini file.
If you change the server list on a UNIX or Linux master server, do the following for the changes to take effect: stop and then restart the NetBackup Request daemon (bprd) and NetBackup database manager daemon (bpdbm). On Windows, stop and restart the NetBackup Request Manager and NetBackup Database Manager services.
* On Windows clients, enable bpinetd debug logging as follows:
* Create a bpinetd debug log directory on the client.
* Increase the debug or log level.
See How to set logging levels on UNIX clients in the Troubleshooting Guide.
See How to set logging levels on PC clients in the Troubleshooting Guide.
* Retry the backup and examine the resulting logs to determine the cause of the failure.
* On all clients, enable bpcd debug logging as follows:
* Create a bpcd debug log directory on the client.
* On a UNIX or Linux client, add the VERBOSE option to the /usr/openv/netbackup/bp.conf file.
* On PC clients, increase the debug or log level as explained in the debug log topics in Chapter 3.
* Retry the backup and examine the resulting logs to determine the cause of the failure.
* Check the bpcd debug log to determine the server's peer name and what comparisons are made.
The bpcd process compares NetBackup server list entries to the peer name of the server that tries the connection. It rejects the connection if the names are different. If necessary, change the server list entry on the client to match the peer name.
* On Windows clients, check the following:
* Verify that NetBackup for Windows software was installed under a Windows administrator account.
If NetBackup is under another type of account, reinstall it under an administrator account. The installation completes successfully under a non-administrator account except for the following: the NetBackup Client service is not added to Windows and the NetBackup server cannot access the client.
* Verify that the Windows TCP/IP service specifies the domain server that resolves names for the subnet that contains the NetBackup servers.
UNIX, Linux, and Windows clients are frequently not on the same subnet and use different domain servers. When this condition exists, NetBackup servers and Windows clients may be able to ping one another, but the server still cannot access the Windows client.
* The preceding items may not resolve this problem.
See Resolving network communication problems in the Troubleshooting Guide.
* If NetBackup use multiple network interfaces with media servers, make sure that the interface names appear in the client's /usr/openv/netbackup/bp.conf file.
* For the Enterprise Vault Agent: See the Troubleshooting section of the NetBackup for Enterprise Vault Agent Administrator's Guide.
原來懷疑是伺服器端出現了問題,透過命令檢查,伺服器端可以訪問到客戶端的埠,如下:
C:Documents and Settingsdujiabing>bptestbpcd -client zhjkdb
1 1 1
120.10.12.189:4616 -> 120.10.12.13:13724
120.10.12.189:4618 -> 120.10.12.13:13724
120.10.12.189:4620 -> 120.10.12.13:13724
59:access to the client was not allowed ,表明了是客戶端上的配置有問題.
檢查客戶端的bp.conf檔案,內容如下:
# more /usr/openv/netbackup/bp.conf
SERVER = netbackup
CLIENT_NAME = zhjkdb
#more /etc/hosts
120.10.12.13 zhjkdb
120.10.12.189 netbackup
配置好像都沒有問題.
三.問題解決
仔細分析,這個問題可能是因為客戶端在配置netbackup server的資訊的時候存在問題,檢視另外一些備份正常的客戶端環境,發現在bp.conf檔案中缺少media server的定義.
於是在/usr/openv/netbackup/bp.conf 檔案中增加了media server的定義.如下:
#more /usr/openv/netbackup/bp.conf
SERVER = netbackup
CLIENT_NAME = zhjkdb
MEDIA_SERVER = netbackup-ms
在客戶端,測試帶庫是否可以訪問:
$sbttest "SBT_TAPE"
[oracle@zhjkdb ~]$ sbttest "SBT_TAPE"
The sbt function pointers are loaded from libobk.so library.
-- sbtinit succeeded
-- sbtinit (2nd time) succeeded
sbtinit: Media manager supports SBT API version 2.0
sbtinit: Media manager is version 5.0.0.0
sbtinit: vendor description string=Veritas NetBackup for Oracle - Release 6.5 (2007072323)
sbtinit: allocated sbt context area of 8 bytes
sbtinit: proxy copy is supported
-- sbtinit2 succeeded
-- regular_backup_restore starts ................................
-- sbtbackup succeeded
write 100 blocks
-- sbtwrite2 succeeded
-- sbtclose2 succeeded
sbtinfo2: SBTBFINFO_NAME=SBT_TAPE
sbtinfo2: SBTBFINFO_SHARE=multiple users
sbtinfo2: SBTBFINFO_ORDER=sequential access
sbtinfo2: SBTBFINFO_LABEL=G:diskzhjkdb_1351060391_C1_F1
sbtinfo2: SBTBFINFO_CRETIME=Wed Oct 24 14:33:11 2012
sbtinfo2: SBTBFINFO_EXPTIME=Wed Oct 31 14:33:11 2012
sbtinfo2: SBTBFINFO_COMMENT=Backup ID : zhjkdb_1351060391
sbtinfo2: SBTBFINFO_METHOD=stream
-- sbtinfo2 succeeded
-- sbtrestore succeeded
file was created by this program:
seed=430316798, blk_size=16384, blk_count=100
read 100 buffers
-- sbtread2 succeeded
-- sbtclose2 succeeded
-- sbtremove2 succeeded
-- regular_backup_restore ends ................................
再在netbackup server手動啟動備份,結果成功,問題解決.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/32980/viewspace-1059655/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- netbakcup備份時遇到 status 6: the backup failed to back up the requested files 問題解決AI
- DataGuard之switchover_status狀態not allowed解決過程
- 裝SAP GUI時遇到的問題及解決GUI
- TSM備份時提示認證失敗(Authentication failure)問題的解決AI
- 使用nodeAPI時遇到非同步問題的解決方法API非同步
- 遇到問題的解決方法
- Oracle EXPDP自動備份緩慢問題解決Oracle
- 上手MySQL之解決問題:not allowed to connect to this MySQL serverMySqlServer
- 啟動rocketmq-client-python測試遇到的問題解決方法記錄MQclientPython
- RMAN備份時出現RMAN-06056: could not access datafile 6 錯誤,解決方法!!
- Access denied for user ‘root‘@‘localhost‘問題的解決localhost
- 解決不能訪問 VMware Server Web Access 的問題ServerWeb
- 解決linux crontab備份mysql失敗的問題LinuxMySql
- Word文件儲存時常遇到的問題及其解決方
- Oracle rman 備份與恢復 臨時表空間的檔案問題解決Oracle
- 解決mysql"Access denied fot user 'root'@'localhost'"問題MySqllocalhost
- 玩Deno遇到問題的解決方案
- 今天遇到的問題與解決方法
- CKEditor使用中遇到的問題解決
- 解決 plsql 遇到亂碼的問題SQL
- 解決在使用Amoeba遇到的問題
- Selenium爬蟲遇到超時TimeOut問題的解決方法爬蟲
- 怎樣解決更新MacOS big sur時遇到的那些問題!Mac
- 在防護DDoS時會遇到哪些問題,該怎樣解決?
- 使用RMAN report need backup命令檢查備份時遇到一個詭異的問題
- Fabric 環境搭建遇到問題及解決
- HTC Vive遇到的問題解決辦法
- gem install mysql遇到問題。解決方案MySql
- 安裝sql server遇到問題解決方法SQLServer
- django儲存資料到表時,遇到字符集問題--已解決Django
- Physical Standby Switchover_status Showing Not Allowed
- 解決一次RMAN遲遲不能開始備份的問題
- Mac時間機器備份加速教程,Time Machine 備份太慢的解決方法Mac
- 近期工作遇到的問題及解決方式收藏
- nodejs 近期所遇到的問題及解決NodeJS
- div拖動遇到iframe卡頓的問題解決
- 新手開發遇到問題,求幫助解決!!!
- steam提示:在連線至steam伺服器時遇到問題解決方法伺服器