Linux

Updating node configurations in a cloned environment

If you are running a federated environment, update your node configurations.

Before you begin

Update the deployment manager (DMGR) host name.

Procedure

  1. For each node, update the wsadmin.properties properties file.
    1. Open the WC_profiledir/properties/wsadmin.properties file.
    2. Ensure that the following properties are set correctly for your new DMGR host name:
      For example:
      • com.ibm.ws.scripting.host=newdmgr.example.com
      • com.ibm.ws.scripting.port=8879
  2. For each node, change the host name for the node on the DMGR profile.
    1. Go to the WAS_installdir/profiles/instance_name/bin directory.
    2. Run a command to change the host name for the node on the DMGR profile.
      For example:
      ./wsadmin.sh -c "$AdminTask changeHostName {-nodeName myNode1 -hostName newNode1.example.com}"
      Note: This command connects to the deployment manager.
  3. Optional: For each node, change the WebSphere Commerce node name:
    1. Go to the WAS_installdir/profiles/instance_name/bin directory.
    2. Run a command to change the node name for the node in the DMGR configuration:
      For example:
      ./wsadmin.sh -c "$AdminTask renameNode {-nodeName dmgrNode1 -newNodeName newdmgrNode1}"
    3. Run a command to change the node name for the node in the local configuration:
      ./wsadmin.sh -c "$AdminTask renameNode {-nodeName myNode1 -newNodeName newNode1}" -conntype NONE

      This step is necessary because synchronization does not work when the local node name differs from what is stored in the DMGR configuration.

    4. Update the WAS_installdir/profiles/instance_name/bin/setupCmdLine.sh script to set the WAS_NODE value to your new node name.
      For example:
      WAS_NODE=newNode1
  4. Restart the Deployment Manager (DMGR) server to ensure that the new WebSphere Commerce host name and node names are loaded in the deployment manager configuration.
  5. For each node, synchronize the nodes:
    1. Go to the WAS_installdir/profiles/instance_name/bin directory.
    2. Run a command to sync the nodes.
      For example:
      ./syncNode.sh newdmgr.example.com 8879 -user dmgrAdmin -password dmgrPassword