利用jnbSA啟動netbackup圖形介面報錯無法登陸

yangtingkun發表於2007-10-30

在作業系統一次啟動後,發現無法透過jnbSA啟動NETBACKUP的圖形介面了,報錯資訊為:

Unable to login, status: 525

Can not connect to the NB-Java authentication service via VNETD on backup on port 13724.

Check the log file for more details.


這個時候使用RMAN進行備份會報錯,錯誤資訊為:

$ rman target /

恢復管理器: Release 10.2.0.3.0 - Production on 星期四 8 30 23:12:43 2007

Copyright (c) 1982, 2005, Oracle. All rights reserved.

連線到目標資料庫: TESTRAC (DBID=4291216984)

RMAN> run
2> {
3> allocate channel c1 device type sbt;
4> backup tablespace users;
5> }

使用目標資料庫控制檔案替代恢復目錄分配的通道: c1通道 c1: sid=287 例項=testrac2 devtype=SBT_TAPE通道c1: VERITAS NetBackup for Oracle - Release 6.0 (2006110304)

啟動 backup 30-8 -07通道 c1: 啟動全部資料檔案備份集通道 c1: 正在指定備份集中的資料檔案輸入資料檔案 fno=00005 name=+DISK/testrac/datafile/users.267.618591279通道 c1: 正在啟動段 1 30-8 -07釋放的通道: c1
MAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: backup
命令 (c1 通道上, 08/30/2007 23:28:38 ) 失敗

ORA-19506:
無法建立順序檔案, 名稱 = "uriqngcj_1_1", 引數 = ""
ORA-27028: skgfqcre: sbtbackup
返回錯誤

ORA-19511:
從介質管理器層接收到錯誤, 錯誤文字為:
VxBSAValidateFeatureId: Failed with error:
Server Status: cannot connect on socket

在網上搜尋了半天也沒有找到確切的答案,嘗試重啟NETBACKUP的服務:

發現服務重啟後錯誤依舊。

仔細檢查錯誤日誌:

# more /usr/openv/netbackup/logs/user_ops/nbjlogs/jbp.root.jnbSA.12820.log

DISPLAY environment variable is set to: 172.25.6.201:1.0
Console was started on:
SunOS racnode2 5.8 Generic_117350-46 sun4u sparc SUNW,Sun-Fire-480R

Command line options were:
/usr/openv/netbackup/bin/jnbSA

Starting administration console version 6.0.

LANG=iso_8859_1
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=iso_8859_1

java version "1.4.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_04-b04)
Java HotSpot(TM) Client VM (build 1.4.0_04-b04, mixed mode)

ServerInterface:Logon: java.net.ConnectException: Connection timed out
ServerInterface:Logon - Initial host:null, Current host:backup, Firewall Env:tru
e, MS port:13722, VNETD:13724, m_intPort:0, localPort:0, range use:false
Can not connect to the NB-Java authentication service via VNETD on backup on por
t 13724. Exception:
java.net.ConnectException: Connection timed out

發現netbackup尋找的主機名為backup,而當前的主機名為testrac2

# hostname
racnode2

檢查/etc/hosts

# more /etc/hosts
#
# Internet host table
#
127.0.0.1 localhost
172.25.198.223 racnode2 loghost
172.25.198.222 racnode1 loghost
172.25.198.224 racnode1-vip
10.0.0.1 racnode1-priv
172.25.198.225 racnode2-vip
10.0.0.2 racnode2-priv
172.25.198.250 backup
172.25.198.226 racnode3

原來,在安裝NETBACKUP的時候,為主機又繫結了一個IP172.25.198.250,而這個虛擬IP沒有在啟動後自動載入,從而造成了上面的問題。

下面為網路卡繫結這個IP地址:

bash-2.03# ifconfig ce0:2 plumb
bash-2.03# ifconfig ce0:2 172.25.198.250 netmask 255.255.0.0 broadcast 172.25.255.255 up
bash-2.03# netbackup stop
stopping the NetBackup Service Monitor
stopping the NetBackup Service Layer
stopping nbproxy...
stopping the NetBackup compatibility daemon
stopping the Media Manager device daemon
stopping the Media Manager volume daemon
stopping the NetBackup Notification Service
bash-2.03# netbackup start
NetBackup Database Server started.
NetBackup Notification Service started.
NetBackup Enterprise Media Manager started.
NetBackup Resource Broker started.
NetBackup request daemon started.
NetBackup compatibility daemon started.
NetBackup Job Manager started.
NetBackup Policy Execution Manager started.
NetBackup Service Layer started.
NetBackup is not configured for clustering.
NetBackup Service Monitor started.
bash-2.03# su - oracle
Sun Microsystems Inc. SunOS 5.8 Generic Patch October 2001
$ rman target /

恢復管理器: Release 10.2.0.3.0 - Production on 星期四 8 30 23:51:08 2007

Copyright (c) 1982, 2005, Oracle. All rights reserved.

連線到目標資料庫: TESTRAC (DBID=4291216984)

RMAN> run
2> {
3> allocate channel c1 device type sbt;
4> backup tablespace users;
5> }

使用目標資料庫控制檔案替代恢復目錄分配的通道: c1通道 c1: sid=285 例項=testrac2 devtype=SBT_TAPE通道c1: VERITAS NetBackup for Oracle - Release 6.0 (2006110304)

啟動 backup 30-8 -07通道 c1: 啟動全部資料檔案備份集通道 c1: 正在指定備份集中的資料檔案輸入資料檔案 fno=00005 name=+DISK/testrac/datafile/users.267.618591279通道 c1: 正在啟動段 1 30-8 -07通道 c1: 已完成段 1 30-8 -07段控制程式碼=uuiqnika_1_1 標記=TAG20070830T235138 註釋=API Version 2.0,MMS Version 5.0.0.0通道 c1: 備份集已完成, 經過時間:00:00:55完成 backup 30-8 -07

啟動 Control File and SPFILE Autobackup 30-8 -07 handle=c_c-4291216984-20070830-00 comment=API Version 2.0,MMS Version 5.0.0.0完成 Control File and SPFILE Autobackup 30-8 -07釋放的通道: c1

新增IP地址後,重現啟動NETBACKUPjnbSA啟動正常,帶庫備份也恢復正常。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/4227/viewspace-69483/,如需轉載,請註明出處,否則將追究法律責任。

相關文章