lunedì 25 novembre 2013

Create a deployment manager and two nodes on two separated machines with Websphere 8.0

Today I want to show an example how I can create a topology of a deployment manager with two nodes created on two separated machines. In the commands below are used the default templates and ports. The summary of steps is:

1) Create the Deployment Manager on machine1
2) Create first Node Agent on machine1
3) Check if profiles have been created
4) Start the Deployment Manager
5) Add first node to Deployment Manager
6) Restart first node and Deployment Manager
7) Create second Node Agent on machine2
8) Add the second node to the Deployment Manager

Details of steps:

(Steps for a fresh environment with no security enabled, the security can be enabled later)

1) Create the Deployment Manager (named Dmgr01) on machine1

<WAS_HOME>/bin/manageprofiles.sh -create -templatePath <WAS_HOME>/profileTemplates/management -portsFile <WAS_HOME>/profileTemplates/management/actions/portsUpdate/dmgr.portdef.props -profileName Dmgr01

2) Create first Node Agent (named Custom01) on machine1

<WAS_HOME>/bin/manageprofiles.sh -create -templatePath <WAS_HOME>/profileTemplates/managed -portsFile <WAS_HOME>/profileTemplates/managed/actions/portsUpdate/portdef.props -profileName Custom01

3) Check if profiles Dmgr01 and Custom01 are present:

<WAS_HOME>/bin/manageprofiles.sh -listProfiles

4) Start the Deployment Manager:

<WAS_HOME>/profiles/Dmgr01/bin/startManager.sh

5) Add first node to Deployment Manager:

<WAS_HOME>/bin/addNode.sh hostname1 8879 -profileName  Custom01

6) Restart first node and Deployment Manager:

<WAS_HOME>/profiles/Custom01/bin/stopNode.sh
<WAS_HOME>/profiles/Dmgr01/bin/stopManager.sh
<WAS_HOME>/profiles/Dmgr01/bin/startManager.sh
<WAS_HOME>/profiles/Custom01/bin/startNode.sh

7) Creating second Node Agent on machine2 with specific node name:

<WAS_HOME>/bin/manageprofiles.sh -create -templatePath <WAS_HOME>/profileTemplates/managed -portsFile <WAS_HOME>/profileTemplates/managed/actions/portsUpdate/portdef.props -profileName Custom02 -nodeName hostname2Node02

8) Add the second node to the Deployment Manager (of the first machine1):

<WAS_HOME>/bin/addNode.sh hostname1 8879 -profileName Custom02


This is a screenshot of the nodes created:



Official docs:
http://pic.dhe.ibm.com/infocenter/wasinfo/v8r0/topic/com.ibm.websphere.migration.nd.doc/info/ae/ae/rxml_manageprofiles.html?resultof=%22%6d%61%6e%61%67%65%70%72%6f%66%69%6c%65%73%2e%73%68%22%20

Nessun commento:

Posta un commento