一次weblogic 在aix hacmp上除錯過程

羽化殘虹發表於2014-08-23

今天在aix上安裝weblogic81 ,安裝好了,啟動伺服器的在weblogic 控制檯上報錯,並且在日誌裡面也有同樣的報錯:

#### '> <> e contained P750b but check expected localhost> 
#### '> <> ime=myserver,Type=NodeManagerRuntime MBean instance failed. The method getState with signature [weblogic.management.configuration.S
erverMBean] was invoked with parameters as [[Caching Stub]Proxy for sxsb:Name=INSIIS,Type=Server].
weblogic.nodemanager.NodeManagerException: [[NodeManager:300034]Could not execute command getState for server INSIIS using the node
 manager. Reason: [CommandInvoker: Failed to send command: 'getState to server 'INSIIS' to NodeManager at host: 'localhost:5555' wi
th exception [Security:090504]Certificate chain received from localhost - 127.0.0.1 failed hostname verification check. Certificate
 contained P750b but check expected localhost. Please ensure that the NodeManager is active on the target machine].]
        at weblogic.nodemanager.client.NodeManagerRuntime.getState(NodeManagerRuntime.java:590)

sh ./startManagedWebLogic.sh StdbyServer http://localhost:7001

============================================

首先看一下兩個主機的hosts檔案

p750a

# 2000:1:1:1:209:6bff:feee:2b7f         ipv6sample      # ipv6 name/address
127.0.0.1               loopback localhost      # loopback (lo0) name/address
10.81.1.8       p750b           weblogicapp     
191.191.191.1   p750a-boot1     p750a 
191.191.191.2   p750b-boot1    

10.0.0.1        p750a_boot2
10.0.0.2        p750b_boot2    

10.81.1.26      p750a_per       
10.81.1.27      p750b_per

10.81.1.6       ora_svc
10.81.1.8       webapp_svc    

11.11.11.27     p750a-mgr  
#

============================

p750b

127.0.0.1               loopback localhost      # loopback (lo0) name/address
10.81.1.8       p750b           weblogicapp
191.191.191.2   p750b-boot1       p750b 
191.191.191.1   p750a-boot1      
    

10.0.0.1        p750a_boot2
10.0.0.2        p750b_boot2    

10.81.1.27      p750b_per
10.81.1.26      p750a_per

10.81.1.6       ora_svc         
10.81.1.8       webapp_svc  

==========================================

這些hosts檔案是最後改好的,最後找了我同事大拿來遠端來看,查了半天,有重要的兩點

第一就是在/weblogic/weblogic81/common/nodemanager/nodemanager.hosts 裡面新增主機名如下

10.81.1.8   
10.81.1.26

補充:1.8是我的weblogic 的浮動server ip,26是我p750a的 weblogic的ip

第二 在hacmp 啟動指令碼上 改動如下:

# more startweblogic
#this scripts for start server processes
sh /weblogic/weblogic81/server/bin/startNodeManager.sh &
cd /weblogic/user_projects/domains/sxsb/
sh ./startWebLogic.sh &

sleep 40
cd /weblogic/user_projects/domains/sxsb/
sh ./startManagedWebLogic.sh INSIIS http://localhost:7001

sleep 20
sh ./startManagedWebLogic.sh StdbyServer 
http://localhost:7001

hacmp weblogic 關閉指令碼

#This scripts for stop server processes
kill -9 `ps -ef | grep NodeManager | grep -v grep | awk '{print $2}'`
cd /weblogic/user_projects/domains/sxsb/
sh ./stopWebLogic.sh &

最後weblogic 啟動正常。

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

相關文章