Quantcast
Channel: Smart ERP Solutions - Services
Viewing all articles
Browse latest Browse all 4

Synchronization in Websphere Application Server

$
0
0

Synchronization: Moving the changes to master configuration through node local configuration if any changes are made in master configuration node agent will push all those changes to all Application Sever nodes configuration

By Default Auto-synchronization is enabled as you can see below screenshot

System administration àNode agents àFileSychornization serviceàAutomatic Synchronization 

Here I am talking small examples how it will be synchronized when we make any configuration changes

Disable the automatic Synchronization option and restart the node agent to save those changes

Create a new server>>Servers>>Websphere Application servers>>NEW>>server2

Click on default and click next 

Click on next 

Click on Finish here 

Here we have two options save and review if we click on the save it will directly save those changes to master configuration until we click on the save these changes will be saved on DMGR profile /wstemp directory

E:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\Dmgr01\wstemp>

E:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\Dmgr01\wstemp>dir /s "server2"

 Volume in drive E has no label.

 Volume Serial Number is CE57-C018

 Directory of E:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\Dmgr01\wstemp\0\workspace\cells\Neehar-PCCell01\nodes\Neehar-PCNode01\servers

01/01/2016  07:20 AM    <DIR>          server2

E:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\Dmgr01\wstemp\0\workspace\cells\Neehar-PCCell01\nodes\Neehar-PCNode01>dir

 Volume in drive E has no label.

 Volume Serial Number is CE57-C018

 Directory of E:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\Dmgr01\wstemp\0\workspace\cells\Neehar-PCCell01\nodes\Neehar-PCNode01

01/01/2016  07:12 AM    <DIR>          .

01/01/2016  07:12 AM    <DIR>          ..

01/01/2016  07:20 AM               786 .repositoryContext

01/01/2016  07:12 AM               980 node-metadata.properties

01/01/2016  07:12 AM               129 node-metadata.properties.workspace_save

01/01/2016  07:12 AM               411 node.xml

01/01/2016  07:12 AM               129 node.xml.workspace_save

01/01/2016  07:20 AM            14,488 serverindex.xml

01/01/2016  07:12 AM            10,675 serverindex.xml.copy

01/01/2016  07:12 AM               129 serverindex.xml.workspace_save

01/01/2016  07:20 AM    <DIR>          servers

               8 File(s)         27,727 bytes

               3 Dir(s)  287,976,259,584 bytes free

àThis is DMGR conig path before we click on save on the console we don’t have server2.So the changes are not saved to master configuration yet

E:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\Dmgr01\config\cells\Neehar-PCCell01\nodes\Neehar-PCNode01\servers>dir

 Volume in drive E has no label.

 Volume Serial Number is CE57-C018

 Directory of E:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\Dmgr01\config\cells\Neehar-PCCell01\nodes\Neehar-PCNode01\servers

12/28/2015  11:57 AM    <DIR>          .

12/28/2015  11:57 AM    <DIR>          ..

08/22/2015  10:12 PM    <DIR>          nodeagent

08/22/2015  10:14 PM    <DIR>          server1

12/28/2015  11:57 AM    <DIR>          server3

               0 File(s)              0 bytes

               5 Dir(s)  287,976,423,424 bytes free

àNow click on the save 

Now I am able to server2 here after we saved the changes to master configuration

E:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\Dmgr01\config\cells\Neehar-PCCell01\nodes\Neehar-PCNode01\servers>dir

 Volume in drive E has no label.

 Volume Serial Number is CE57-C018

 Directory of E:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\Dmgr01\config\cells\Neehar-PCCell01\nodes\Neehar-PCNode01\servers

01/01/2016  07:38 AM    <DIR>          .

01/01/2016  07:38 AM    <DIR>          ..

08/22/2015  10:12 PM    <DIR>          nodeagent

08/22/2015  10:14 PM    <DIR>          server1

01/01/2016  07:38 AM    <DIR>          server2

12/28/2015  11:57 AM    <DIR>          server3

               0 File(s)              0 bytes

               6 Dir(s)  287,976,611,840 bytes free

Here these changes must be moved to local node configuration

We cannot start the server until these changes are made. Here you can see below I tried to start the sever I am unable to start it 

Master configuration changes are temporarily for admin purpose we need to move those changes to Node local configuration then only we can start the server

Local configuration

Here this is location of node local configuration here we are unable to see server2 because the synchronization is not happened yet

E:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\Neehar-PCCell01\nodes\Neehar-PCNode01\servers>dir

 Volume in drive E has no label.

 Volume Serial Number is CE57-C018

 Directory of E:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\Neehar-PCCell01\nodes\Neehar-PCNode01\servers

12/28/2015  12:03 PM    <DIR>          .

12/28/2015  12:03 PM    <DIR>          ..

08/22/2015  10:14 PM    <DIR>          nodeagent

08/22/2015  10:17 PM    <DIR>          server1

12/28/2015  12:03 PM    <DIR>          server3

               0 File(s)              0 bytes

               5 Dir(s)  287,975,763,968 bytes free

Normally Synchronization can be done in 3 ways

1) DMGR Console

2) Syncnode.bat Dmgrhostname Support (from Appserver/bin)—DMGR must be up and running and Stop the node agent and Sync node and Start the node agent

3) Wsadmin

NodesàSynchronize

Synchronize-Moves only move update changes (example-Server2 changes)

Resynchronize-- Completely moves master config

In Status you can see black after I Synchronized if it is not synchronized it will be in red in Status

After Synchronizing we can see the changes effected to local node configuration we can see server 2 now

E:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\Neehar-PCCell01\nodes\Neehar-PCNode01\servers>dir

 Volume in drive E has no label.

 Volume Serial Number is CE57-C018

 Directory of E:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\Neehar-PCCell01\nodes\Neehar-PCNode01\servers

01/01/2016  08:12 AM    <DIR>          .

01/01/2016  08:12 AM    <DIR>          ..

08/22/2015  10:14 PM    <DIR>          nodeagent

08/22/2015  10:17 PM    <DIR>          server1

01/01/2016  08:12 AM    <DIR>          server2

12/28/2015  12:03 PM    <DIR>          server3

               0 File(s)              0 bytes

               6 Dir(s)  287,973,756,928 bytes free

Now I started the server it started successfully 

Now I am deleting the server which I have created server2

From admin console if we delete that server that will delete in master configuration and it won't delete in the local configuration 

We can start that server through command prompt because we have not deleted from local configuration

E:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\AppSrv01>cd bin

E:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\AppSrv01\bin>serverStatus.bat -all

ADMU0116I: Tool information is being logged in file E:\Program Files

           (x86)\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\serverStatus.log

ADMU0128I: Starting tool with the AppSrv01 profile

ADMU0503I: Retrieving server status for all servers

ADMU0505I: Servers found in configuration:

ADMU0506I: Server name: nodeagent

ADMU0506I: Server name: server1

ADMU0506I: Server name: server2

ADMU0506I: Server name: server3

ADMU0508I: The Node Agent "nodeagent" is STARTED

ADMU0508I: The Application Server "server1" is STARTED

ADMU0509I: The Application Server "server2" cannot be reached. It appears to be

           stopped.

ADMU0508I: The Application Server "server3" is STARTED

E:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\AppSrv01\bin>startServer.bat server2

ADMU0116I: Tool information is being logged in file E:\Program Files

           (x86)\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\server2\startServer.log

ADMU0128I: Starting tool with the AppSrv01 profile

ADMU3100I: Reading configuration for server: server2

ADMU3200I: Server launched. Waiting for initialization status.

ADMU3000I: Server server2 open for e-business; process id is 14184

It has been not removed from local node configuration

=============================================

E:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\Neehar-PCCell01\nodes\Neehar-PCNode01>cd servers

E:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\Neehar-PCCell01\nodes\Neehar-PCNode01\servers>dir

 Volume in drive E has no label.

 Volume Serial Number is CE57-C018

 Directory of E:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\Neehar-PCCell01\nodes\Neehar-PCNode01\servers

01/01/2016  08:12 AM    <DIR>          .

01/01/2016  08:12 AM    <DIR>          ..

08/22/2015  10:14 PM    <DIR>          nodeagent

08/22/2015  10:17 PM    <DIR>          server1

01/01/2016  08:12 AM    <DIR>          server2

12/28/2015  12:03 PM    <DIR>          server3

               0 File(s)              0 bytes

               6 Dir(s)  287,968,550,912 bytes free

Stop the nodeagent -stopNode.bat/sh

E:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\AppSrv01\bin>syncNode.bat  Neehar-PC 8879

ADMU0116I: Tool information is being logged in file E:\Program Files

           (x86)\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\syncNode.log

ADMU0128I: Starting tool with the AppSrv01 profile

ADMU0401I: Begin syncNode operation for node Neehar-PCNode01 with Deployment

           Manager Neehar-PC: 8879

ADMU0016I: Synchronizing configuration between node and cell.

ADMU0402I: The configuration for node Neehar-PCNode01 has been synchronized

           with Deployment Manager Neehar-PC: 8879

-Start the Nodeagent àstartNode.bat            

After doing the Synchronization Server2 it has been removed from local node configuration

E:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\Neehar-PCCell01\nodes\Neehar-PCNode01\servers>dir

 Volume in drive E has no label.

 Volume Serial Number is CE57-C018

 Directory of E:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\Neehar-PCCell01\nodes\Neehar-PCNode01\servers

01/01/2016  08:35 AM    <DIR>          .

01/01/2016  08:35 AM    <DIR>          ..

08/22/2015  10:14 PM    <DIR>          nodeagent

08/22/2015  10:17 PM    <DIR>          server1

12/28/2015  12:03 PM    <DIR>          server3

               0 File(s)              0 bytes


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images