websphere 受管節點問題

lzq0107發表於2020-04-07

描述:在192.168.200.201下安裝websphere management節點和一個受管節點Custom01,在192.168.200.202上安裝一個受管節點Custom02,啟動192.168.200.201下management節點和受管節點Custom01,命令如下:./startManager.sh;./startNode.sh。然後試圖啟動192.168.200.202的受管節點Custom02,報如下錯誤:

************ Start Display Current Environment ************
Host Operating System is Linux, version 2.6.18-128.el5xen
Java version = J2RE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460-20080816_22093 (JIT enabled, AOT enabled)
J9VM - 20080816_022093_LHdSMr
JIT  - r9_20080721_1330ifx2
GC   - 20080724_AA, Java Compiler = j9jit24, Java VM name = IBM J9 VM
was.install.root = /opt/IBM/WebSphere/AppServer
user.install.root = /opt/IBM/WebSphere/AppServer/profiles/Custom01
Java Home = /opt/IBM/WebSphere/AppServer/java/jre
ws.ext.dirs = /opt/IBM/WebSphere/AppServer/java/lib:/opt/IBM/WebSphere/AppServer/classes:/opt/IBM/WebSphere/AppServer/lib:/opt/IBM/WebSphere/AppServer/installedChannels:/opt/IBM/WebSphere/AppServer/lib/ext:/opt/IBM/WebSphere/AppServer/web/help:/opt/IBM/WebSphere/AppServer/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime
Classpath = /opt/IBM/WebSphere/AppServer/profiles/Custom01/properties:/opt/IBM/WebSphere/AppServer/properties:/opt/IBM/WebSphere/AppServer/lib/startup.jar:/opt/IBM/WebSphere/AppServer/lib/bootstrap.jar:/opt/IBM/WebSphere/AppServer/lib/lmproxy.jar:/opt/IBM/WebSphere/AppServer/lib/urlprotocols.jar:/opt/IBM/WebSphere/AppServer/java/lib/tools.jar
Java Library path = /opt/IBM/WebSphere/AppServer/java/jre/lib/amd64/default:/opt/IBM/WebSphere/AppServer/java/jre/lib/amd64:/opt/IBM/WebSphere/AppServer/bin::/usr/lib
Current trace specification = *=info
************* End Display Current Environment *************
[12/8/10 16:17:11:018 GMT+08:00] 00000000 ManagerAdmin  I   TRAS0017I: The startup trace state is *=info.
[12/8/10 16:17:11:102 GMT+08:00] 00000000 AdminTool     A   ADMU3100I: Reading configuration for server: nodeagent
[12/8/10 16:17:11:210 GMT+08:00] 00000000 WsServerLaunc E   ADMU3002E: Exception attempting to process server nodeagent
[12/8/10 16:17:11:212 GMT+08:00] 00000000 WsServerLaunc E   ADMU3007E: Exception java.io.FileNotFoundException: /opt/IBM/WebSphere/AppServer/profiles/Custom01/config/cells/server-app-mh2Node01Cell/nodes/server-app-mh2Node01/servers/nodeagent/server.xml (No such file or directory)

到目錄下找,的確檔案不存在。
然後到網上查詢原因,有人建議如下:

你的NODE是不是已經加入CELL,你有沒有執行過ADDNODE.SH?

2.安裝WAS補丁到6.1.0.29後重試

3.如果還不行,我建議你別為WAS管理上的問題折騰了,馬上把DMGR, NODE的PROFILE統統刪掉,為一個WAS管理的問題折騰一個星期不值得,立即用PMT.SH重建CELL和NODE。

於是執行./addNode.sh 192.168.200.201 8879,輸入使用者名稱、密碼後,提示如下:

ADMU0001I: Begin federation of node newNode1 with Deployment Manager at
           DeploymentMgr:8879.
ADMU0009I: Successfully connected to Deployment Manager Server: DeploymentMgr:8879
ADMU0505I: Servers found in configuration:
ADMU0506I: Server name: newServer1
ADMU2010I: Stopping all server processes for node newNode1
ADMU0512I: Server newServer1 cannot be reached. It appears to be stopped.
ADMU0024I: Deleting the old backup directory.
ADMU0015I: Backing up the original cell repository.
ADMU0012I: Creating Node Agent configuration for node: newNode1

ADMU0027E: An error occurred during federation ADMU0036E: The Deployment
           Manager cannot lookup by name host newHost1 at address
           10.230.21.184; rolling back to original configuration.
ADMU0211I: Error details may be seen in the file:
           /…/profile/logs/addNode.log
ADMU0026I: An error occurred during federation; rolling back to original
           configuration.
ADMU0111E: Program exiting with error:

於是繼續搜尋,找到一個解決方法:

Solution:

make sure newHost1 and the host of deploymentManager can be reached each other

or check both /etc/hosts to make sure have both hostName。

 

 

 

於是在兩天機器上都新增對方的ip和主機名,方法如下:

       vi /etc/hosts,錄入

      

 

127.0.0.1 localhost.localdomain localhost

192.168.1.100 server1 server1

192.168.1.120 server2 server2

 

再次執行./addNode.sh 192.168.200.201 8879,執行成功。受管節點也跟著啟動啦。一切0k.

相關文章