WebLogic Horizontal Cluster Setup

 WebLogic Horizontal Cluster Setup


For Horizontal Cluster we need to make sure that we run pack & unpack commands

  • Pack is to create a jar file out of the existing domain on the local server (wls-node01). 
  • Once completed Copy the same to the Remote Server (wls-node02).
  • Then install Weblogic / if already installed remove the exiting domain. You can unpack the same on the server.
  • Start the Admin server on (wls-node01).
  • Start the Node Manager on (wls-node01).
  • Start the Node Manager on (wls-node02).
  • Add the NM of (wls-node02) to the (wls-node01) Admin Server using Admin Console.
  • Try to monitor the NM of the (wls-node02) from the (wls-node01) Admin Console.
  • Adding server to(wls-node02) machine from (wls-node01) Admin Server.
  • Starting these servers on the (wls-node02).
  • Enroll From (wls-node02) to (wls-node01).
  • Starting these Server on (wls-node02) machine from the(wls-node01) admin console.


Packing:

Go to: cd /opt/Oracle/Middleware/Oracle_Home/wlserver/common/bin

Run the pack command:

[wluser@wls-node01 bin]$ ./pack.sh -domain=/opt/Oracle/Middleware/Oracle_Home/user_projects/domains/Prod_Domain/ -template=/tmp/Prod_Domain.jar -template_name=Prod_Domain.jar


Transfer the file to the remote server:

Scp for local unix server to server

Winscp for windows to unix


Unpack:

[wluser@wls-node02 bin]$ ./unpack.sh -template=/tmp/Prod_Domain.jar -domain=/opt/Oracle/Middleware/Oracle_Home/user_projects/domains/Prod_Domain.jar


Start the Admin Server:(wls-node01)

[wluser@wls-node01 bin]$ cd /opt/Oracle/Middleware/Oracle_Home/user_projects/domains/Prod_Domain/bin/

[wluser@wls-node01 bin]$ nohup ./startWebLogic.sh &


Start the Node Manager:(wls-node01)

[wluser@wls-node01 bin]$ cd /opt/Oracle/Middleware/Oracle_Home/user_projects/domains/Prod_Domain/bin/

[wluser@wls-node01 bin]$ nohup ./startNodeManager.sh &


Start the Node Manager:(wls-node02)

[wluser@wls-node02 bin]$ cd /opt/Oracle/Middleware/Oracle_Home/user_projects/domains/Prod_Domain/bin/

[wluser@wls-node02 bin]$ nohup ./startNodeManager.sh &


Enrolling:

Login to the (wls-node02)'st Server's WLST

[wlsuser@wls-node02 logs]$ cd /opt/Oracle/Middleware/Oracle_Home/wlserver/common/bin/

[wlsuser@wls-node02 bin]$ ./wlst.sh 

Connect to the(wls-node01)'th Admin Server

wls:/offline> connect('weblogic','weblogic1','t3://wls-node01:7001'


Run the following enroll command:

wls:/Prod_Domain/serverConfig> 

nmEnroll('/opt/Oracle/Middleware/Oracle_Home/user_projects/domains/Prod_Domain/','/opt/Oracle/Middleware/Oracle_Home/user_projec ts/domains/Prod_Domain/nodemanager/')

Enrolling this machine with the domain directory at /opt/Oracle/Middleware/Oracle_Home/user_projects/domains/Prod_Domain/ ...

Successfully enrolled this machine with the domain directory at /opt/Oracle/Middleware/Oracle_Home/user_projects/domains/Prod_Domain.

wls:/Prod_Domain/serverConfig> exit()


Restart the Node Manager's on both nodes.



Good Luck,

Vijayarathinam

Comments

Popular posts from this blog

SSL certificate in WebSphere Application Server

Tomcat Upgrade Steps on Windows.