IBM WebSphere - Synchronize a node (syncNode)
IBM WebSphere - Synchronize a node (syncNode)
Before we get into synchronization, let's talk about nodes and the master configuration. The master configuration is a collection of XML files that contain all sorts of information about a cell, such as the security settings and the applications in the cell. A node contains one or more WebSphere application servers. When a managed nodes is federated into the dmgr, the node needs to be synchronized with the master configuration so that the node is using the dmgr configuration.
The synchronization is always from Dmgr to Nodes and it never happens vise versa. If you made any changes from the node side it will be cleared during next synchronization process.
Be aware that if the dmgr cannot communicate with the node, a question mark icon will be displayed. When there is a lack of communication between the dmgr and the node, synchronization is not possible. In this situation, you first will want to resolve the communication issue between the dmgr and the node
Manual Synch Node
However, you most certainly can manually synchronize the node with the master configuration. To manually synchronize, at System administration > Nodes, check each node that is out of sync, and select Synchronize. Or, you can use the syncNode.sh (Linux) or syncNode.bat (Windows) commands (more on this in a moment).
We can manually synchronize a node with the Deployment Manager through the command
syncNode command. The syncNode command forces a configuration synchronization to occur between the node and the deployment manager for the cell in which the node is configured.
Go to the respective profile bin /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin folder and run:
- Stop the Nodeagent as first step
./stopNode.sh -user <username> -password <password>
- Run the below command to synch Node manually with DMGR
./synchNode.sh <DMGR HostName > <SOAP Connector Port> -user <username> -password <password>
Automatic synchronization
Typically, there is no need to get involved and manually synchronize the node with the master configuration. By default, at System administration > Nodes > nodeagent > File synchronization service, Automatic synchronization is enable, so that the synchronization will happen automagically, once every 1 minute.
There are two types of synchronizations.
- Synchronization: In this node synchronization operation is performed using the normal synchronization optimization algorithm. This operation is fast but might not fix problems from manual file edits that occur on the node .So it is still possible for the node and cell configuration to be out of synchronization after this operation is performed.
- Full synchronization: In this it clears all synchronization optimization settings and performs configuration synchronization a new ,so there will be no mismatch between Node and Cell configuration after this operation is performed. This operation can take longer time than the synchronization operation.
Comments
Post a Comment