WAS Best Practices PDF
WAS Best Practices PDF
WAS Best Practices PDF
x
Author: Leigh Williamson Co-Author: Owner: Pravin D Patel Ajit Jariwala
Table of Contents
1 Overview ...................................................................................................................................3 1.1 Procedure to backup and restore configurations ................................................................3 1.2 For more information ...........................................................................................................3 Changing Host Name or IP address of WSAS install ...............................................................4 2.1 Procedure to alter the hostName property of ND node (dmgr profile) ..............................4 2.2 Procedure to alter the hostName property for a node profile federated in DMGR profile...6 2.3 Procedure to alter hostname property for a standalone Base NODE profile ......................7 Changing the node name of WSAS node profile ......................................................................9 3.1 Procedure to alter the node name property for a standalone Base profile .........................9 3.2 Procedure to alter the node name property for a federated Base node profile ................10 Changing cell name of WSAS install ......................................................................................14 4.1 Procedure to alter the cell name property for a standalone Base profile..........................14 4.2 Procedure to alter the cell name property for federated Cell ............................................15 Changing Server Name of WSAS install ................................................................................18 Repository Migration of WSAS install .....................................................................................19 6.1 Procedure for Repository Migration of Standalone WSAS profile ....................................19 6.2 Repository Migration of federated WSAS dmgr profile .....................................................20 WebSphere Configuration Archive..........................................................................................21
5 6
5/15/2006
1 Overview
This white paper describes ways to manually modify certain parts of the WebSphere Application Server version 6.x configuration that are not available through the administrative tooling that comes with the product. Version 6.x configuration, for all editions of the product, is stored in XML files in a profile name subdirectory under the main product installation root directory. Administrative tooling shipped with WebSphere product provides support for modifying most of the configuration settings. This tooling includes the web-based admin console program, the wsadmin scripting tool, command line utilities, and even a public Java API for WebSphere administration. While the version 6.x tooling supports altering most of the configuration, certain modifications that impact the structure of the configuration directories (the topology of the environment) were not available to be shipped with the version 6.x products. However, these changes can be accomplished without tooling through the manual procedures described in this document. Each section of this document treats a specific configuration modification separately. Each section begins with a short discussion of the issues related to changing the specific part of the configuration. Then one or more procedures are provided to itemize the steps required to perform the modification manually.
5/15/2006
5/15/2006
<password> To stop nodeagent, use following command from node profiless bin directory. <WAS_NODE_PROFILE_HOME>/bin/stopNode (.bat/.sh) -username <name> -password <password> To stop Applicaton Server, use following command from node profiless bin directory. <WAS_NODE_PROFILE_HOME>/bin/stopServer (.bat/.sh) <server> -username <name> password <password> 3. In the serverindex.xml file for the ND (dmgr profile) being modified, alter the value of the hostName property for the ServerIndex element in the file. Search for string hostName= to find this property. Also in the serverindex.xml file for the ND (dmgr profile) being modified, alter the host property for every EndPoint in the file. Search all occurrences of host= string in following serverindex.xml <WAS_DMGR_PROFILE_HOME>/config/cells/<cell>/nodes/<nodeManager>/serverindex.x ml 4. Edit the wsadmin.properties file in the properties subdirectory under the dmgr profile home. Change the value of the com.ibm.ws.scripting.host property in that file to the new host address. <WAS_DMGR_PROFILE_HOME>/properties/wsadmin.properties Repeat above step for every Node profile in the Cell; since wsadmin utility on all nodes in the Cell should connect to ND. <WAS_NODE_PROFILE_HOME>/properties/wsadmin.properties 5. Delete the content of the following sub-directories entirely. <WAS_DMGR_PROFILE_HOME>/wstemp <WAS_DMGR_PROFILE_HOME>/config/temp <WAS_NODE_PROFILE_HOME>/wstemp <WAS_NODE_PROFILE_HOME>/config/temp
6. After all documents for the ND (dmgr profile) and node profiles have been updated, start Deployment Manager using following command. <WAS_DMGR_PROFILE_HOME>/bin/startManager (.bat/.sh) 7. Once DMGR process is running, execute the syncNode tool on each node in the cell containing the dmgr profile being modified. SyncNode will replicate the configuration containing the changed hostName property to the local node. <WAS_NODE_PROFILE_HOME>/bin/syncNode (.bat/.sh) <dmgr_host> <dmgr_soap_port> username <name> -password <password> Note: syncNode command may take substantial time based on the size of the Cell, so give it
5/15/2006
enough time to complete. 8. Start each nodeagent by following command and verify that nodeagent is visible in the ND Administrative Console. <WAS_NODE_PROFILE_HOME>/bin/startNode (.bat/.sh) 9. Start servers on each node profile by following command. <WAS_NODE_PROFILE_HOME>/bin/startServer (.bat/.sh) <server>
2.2 Procedure to alter the hostName property for a node profile federated in DMGR profile
1. Always perform backupConfig before making significant configuration changes. 2. Ensure that nodeagent, jmsserver and all Application Server JVM processes have been stopped in the entire Cell. Also verify that no WebSphere java process or WASService.exe (on Windows) process is running. To stop nodeagent, use following command from node profiless bin directory. <WAS_NODE_PROFILE_HOME>/bin/stopNode (.bat/.sh) -username <name> -password <password> To stop Applicaton Server, use following command from node profiless bin directory. <WAS_NODE_PROFILE_HOME>/bin/stopServer (.bat/.sh) <server> -username <name> password <password> 3. Make all configuration changes through the deployment manager profile in an ND environment. 4. In the serverindex.xml file for the node profile being modified, alter the value of the hostName property for the ServerIndex element in the file. Search for string hostName= to find this property. Also in the serverindex.xml file for the node profile being modified, alter the host property for every EndPoint in the file. Search all occurrences of host= string in following serverindex.xml <WAS_DMGR_PROFILE_HOME>/config/cells/<cell>/nodes/<node>/serverindex.xml 5. Wsadmin utility in every node of the Cell should connect to ND; make sure ND host is specified for com.ibm.ws.scripting.host in the wsadmin.properties file. <WAS_NODE_PROFILE_HOME>/properties/wsadmin.properties 6. Delete the content of the following sub-directories entirely. <WAS_NODE_PROFILE_HOME>/wstemp
5/15/2006
<WAS_NODE_PROFILE_HOME>/config/temp 7. After all documents for the node have been updated in dmgr profile configuration, execute the syncNode tool on each node in the cell containing the node being modified. SyncNode will replicate the configuration containing the changed hostName property to the local node profile. Once syncNode has been executed, the node should be functional again within the cell, with a new hostName property. <WAS_NODE_PROFILE_HOME>/bin/syncNode (.bat/.sh) <dmgr_host> <dmgr_soap_port> -username <name> -password <password> Note: syncNode command may take substantial time based on the size of the Cell, so give it enough time to complete. 10. Start nodeagent by following command and verify that nodeagent is visible in the ND Administrative Console. <WAS_NODE_PROFILE_HOME>/bin/startNode (.bat/.sh) 11. Start each server on node profile by following command. <WAS_NODE_PROFILE_HOME>/bin/startServer (.bat/.sh) <server>
2.3 Procedure to alter hostname property for a standalone Base NODE profile
1. Always perform backupConfig before making significant configuration changes. 2. Ensure that all server processes have been stopped on this standalone node profile. Also verify that no WebSphere java process or WASService.exe process is running. <WAS_NODE_PROFILE_HOME>/bin/stopServer (.bat/.sh) <server> 3. In the serverindex.xml file for the node being modified, alter the value of the hostName property for the ServerIndex element in the file. Search for hostName= to find this property. Also in the serverindex.xml file for the node being modified, alter the host property for every EndPoint in the file. Search all occurrences of host= string to find these properties. <WAS_NODE_PROFILE_HOME>/config/cells/<cell>/nodes/<node>/serverindex.xml 4. Edit the wsadmin.properties file in the properties subdirectory under the installation root. Change the value of the com.ibm.ws.scripting.host property in that file to the new host address. <WAS_NODE_PROFILE_HOME>/properties/wsadmin.properties 5. Delete the content of the following sub-directories entirely. <WAS_NODE_PROFILE_HOME>/wstemp <WAS_NODE_PROFILE_HOME>/config/temp
5/15/2006
6. Start each server on node profile by following command. <WAS_NODE_PROFILE_HOME>/bin/startServer (.bat/.sh) <server>
Note: See section WebSphere Configuration Archive for alternative wsadmin scripting option to alter hostname property for a standalone Base NODE profile.
5/15/2006
3.1 Procedure to alter the node name property for a standalone Base profile
1. Always perform backupConfig before making significant configuration changes. 2. Ensure that all server processes has been stopped on this node. Also verify that no WebSphere java process or WASService.exe process is running. <WAS_NODE_PROFILE_HOME>/bin/stopServer (.bat/.sh) <server> -username <name> password <password> 3. Execute the appropriate operating system command to change the name of the node directory (the subdirectory under config/cells/<cellname>/nodes) to the desired new node name. For example changing oldNode to newNode: <WAS_NODE_PROFILE_HOME>/config/cells/myCell/nodes>/oldNode <WAS_NODE_PROFILE_HOME>/config/cells/myCell/nodes>/newNode 4. Edit and alter the node.xml file in the node directory. Change the name property to the new node name value. Search for string name= to find the property. <WAS_NODE_PROFILE_HOME>/config/cells/<cell>/nodes/<node>/node.xml 5. Edit and alter the <WAS_NODE_PROFILE_HOME>/bin/setupCmdLine (.bat/.sh) file. Change the WAS_NODE variable value to the new node name. 6. Edit the <WAS_NODE_PROFILE_HOME>/config/cells/<cell>/security.xml file in the cell directory. Change all occurrences of the old node name to the new name in that file. The node name should appear in the security.xml file as part of the sslConfig aliases defined in that file. Search for all occurrences of string sslConfig= to find these properties. 7. Edit the <WAS_NODE_PROFILE_HOME>/config/cells/<cell>/nodes/<node>/resources.xml file in the node directory. Change all occurrences of the old node name to the new one in that
5/15/2006
file. The node name should appear in the resources.xml file as part of the node aliases defined in that file. Search for all occurrences of string node= to find these properties. 8. Edit every server.xml file in server directories under this node. Change all occurrences of the old node name to the new node name. The node name in the server.xml file is usually part of sslConfig alias (defined in the security.xml file previously edited). Search for string sslConfig= to find this property. <WAS_NODE_PROFILE_HOME>/config/cells/<cell>/nodes/<node>/servers/<server>/server. xml 9. Edit the deployment.xml file under each installed application directory. Alter the nodeName property of the deploymentTargets element in that file to change the old node to the new node name. Search for string nodeName= to find this property.
<WAS_NODE_PROFILE_HOME>/config/cells/<cell>/applications/<app.ear>/deployments/<app>/deplo yment.xml
<WAS_NODE_PROFILE_HOME>/config/cells/<cell>/applications/DefaultApplication.ear/deployments/DefaultApplica tion/deployment.xml <WAS_NODE_PROFILE_HOME>/config/cells/<cell>/applications/ivtApp.ear/deployments/ivtApp/deployment.xml <WAS_NODE_PROFILE_HOME>/config/cells/<cell>/applications/SamplesGallery.ear/deployments/SamplesGallery/ deployment.xml <WAS_NODE_PROFILE_HOME>/config/cells/<cell>/applications/TechnologySamples.ear/deployments/Technology Samples/deployment.xml <WAS_NODE_PROFILE_HOME>/config/cells/<cell>/applications/PlantsByWebSphere.ear/deployments/PlantsByW ebSphere/deployment.xml <WAS_NODE_PROFILE_HOME>/config/cells/<cell>/applications/petstore.ear/deployments/petstore/deployment.xml
10. Search all the template files under the config/templates directory for any that contain the old node name value. Change all occurrences of the old node name in the config templates to the new name. <WAS_NODE_PROFILE_HOME>/config/templates/ 11. Delete the content of the following sub-directories entirely. <WAS_NODE_PROFILE_HOME>/wstemp <WAS_NODE_PROFILE_HOME>/config/temp 12. Start each server on node by following command. <WAS_NODE_PROFILE_HOME>/bin/startServer (.bat/.sh) <server>
Note: See section WebSphere Configuration Archive for alternative wsadmin scripting option to alter nodename property for a standalone Base NODE profile.
3.2 Procedure to alter the node name property for a federated Base node profile
Changing the name of a node that has already been federated into a cell involves making config file changes to the master cell repository and nodes repository and then performing a syncNode on the local node to replicate the changes onto the local node config files.
10
5/15/2006
1. Always perform backupConfig (on the master cell configuration repository in ND) before making significant configuration changes. 2. Ensure that Deployment Manager, nodeagent, jmsserver and all server processes have been stopped in the entire Cell. Also verify that no WebSphere java process or WASService.exe process is running. To stop Deployment Manager, use following command from dmgr profiless bin directory. <WAS_DMGR_PROFILE_HOME>/bin/stopManager (.bat/.sh) -username <name> -password <password> To stop nodeagent, use following command from node profiless bin directory. <WAS_NODE_PROFILE_HOME>/bin/stopNode (.bat/.sh) -username <name> -password <password> To stop Applicaton Server, use following command from node profiless bin directory. <WAS_NODE_PROFILE_HOME>/bin/stopServer (.bat/.sh) <server> -username <name> password <password> 3. In the master cell repository, execute the appropriate operating system command to change the name of the node directory (the subdirectory under config/cells/<cellname>/nodes) to the desired new node name. For example changing oldNode to newNode. <WAS_DMGR_PROFILE_HOME>/config/cells/myCell/nodes>/oldNode <WAS_DMGR_PROFILE_HOME>/config/cells/myCell/nodes>/newNode Repeat the step on Node also. <WAS_NODE_PROFILE_HOME>/config/cells/myCell/nodes>/oldNode <WAS_NODE_PROFILE_HOME>/config/cells/myCell/nodes>/newNode 4. In the master cell repository, edit and alter the node.xml file in the node directory. Change the name property to the new node name value. Search for string name= to find the property. <WAS_DMGR_PROFILE_HOME>/config/cells/<cell>/nodes/<node>/node.xml Repeat the step on Node also. <WAS_NODE_PROFILE_HOME>/config/cells/<cell>/nodes/<node>/node.xml 5. In the master cell repository, edit the security.xml file in the cell directory. Change all occurrences of the old node name to the new one in that file. The node name should appear in the security.xml file as part of the sslConfig aliases defined in that file. Search for string sslConfig= to find this property. <WAS_DMGR_PROFILE_HOME>/config/cells/<cell>/security.xml 6. In the master cell repository, edit the resources.xml file in the node directory. Change all occurrences of the old node name to the new one in that file. The node name should appear in the resources.xml file as part of the node aliases defined in that file. Search for all occurrences of string node= to find these properties. <WAS_DMGR_PROFILE_HOME>/config/cells/<cell>/nodes/<node>/resources.xml 7. In the master cell repository, edit the deployment.xml file under each installed application directory. Alter the nodeName property of the deploymentTargets element in that file to
11
5/15/2006
change the old node to the new node name. Search for string nodeName= to find this property.
<WAS_DMGR_PROFILE_HOME>/config/cells/<cell>/applications/<app.ear>/deployments/<app>/depl oyment.xml
<WAS_DMGR_PROFILE_HOME>/config/cells/<cell>/applications/DefaultApplication.ear/deployments/DefaultApplic ation/deployment.xml <WAS_DMGR_PROFILE_HOME>/config/cells/<cell>/applications/ivtApp.ear/deployments/ivtApp/deployment.xml <WAS_DMGR_PROFILE_HOME>/config/cells/<cell>/applications/SamplesGallery.ear/deployments/SamplesGallery /deployment.xml <WAS_DMGR_PROFILE_HOME>/config/cells/<cell>/applications/TechnologySamples.ear/deployments/Technology Samples/deployment.xml <WAS_DMGR_PROFILE_HOME>/config/cells/<cell>/applications/PlantsByWebSphere.ear/deployments/PlantsByW ebSphere/deployment.xml <WAS_DMGR_PROFILE_HOME>/config/cells/<cell>/applications/petstore.ear/deployments/petstore/deployment.xm l
Note: Check for the node name needs to be changed in the deployment.xml file. Change the node name, only if the application is installed on the node. 8. In the master cell repository, edit every server.xml file in server directories under this node. Change all occurrences of the old node name to the new node name. The node name in the server.xml file is usually part of a sslConfig alias (defined in the security.xml file previously edited). Search for string sslConfig= to find this property. <WAS_DMGR_PROFILE_HOME>/config/cells/<cell>/nodes/<node>/servers/<server>/server .xml 9. In the master cell repository, edit the cluster.xml file for each cluster under the /clusters directory. Change all occurrences of the old node name to the new node name. Search for string nodeName= to find this property. <WAS_DMGR_PROFILE_HOME>/config/cells/<cell>/clusters/<cluster>/cluster.xml 10. In the master cell repository, search all the template files under the config/templates directory for any that contain the old node name value. Change all occurrences of the old node name in the config templates to the new name. <WAS_DMGR_PROFILE_HOME>/config/templates
11. On the local node, edit and alter the setupCmdLine (.bat/.sh) file. Change the WAS_NODE variable value to the new node name. <WAS_NODE_PROFILE_HOME>/bin/setupCmdLine.bat(.sh) 12. Delete the content of the following sub-directories entirely. <WAS_NODE_PROFILE_HOME>/wstemp <WAS_NODE_PROFILE_HOME>/config/temp 13. Start the deployment manager by following command from dmgr profiless bin directory. <WAS_DMGR_PROFILE_HOME>/bin/startManager (.bat/.sh) 14. Execute the syncNode utility on the local node to download and sync the master cell repository with the (renamed) node.
12
5/15/2006
<WAS_NODE_PROFILE_HOME>/bin/syncNode (.bat/.sh) <dmgr_host> <dmgr_soap_port> -username <name> -password <password> Note: syncNode command may take substantial time based on the size of the Cell, so give it enough time to complete. 15. Start nodeagent by following command and verify that nodeagent is visible in the ND Administrative Console. <WAS_NODE_PROFILE_HOME>/bin/startNode (.bat/.sh) 16. Start servers including jmsserver on each node by following command. <WAS_NODE_PROFILE_HOME>/bin/startServer (.bat/.sh) <server>
13
5/15/2006
4.1 Procedure to alter the cell name property for a standalone Base profile
1. Always perform backupConfig before making significant configuration changes. 2. Ensure that all server processes has been stopped on this node. Also verify that no WebSphere java process or WASService.exe process is running. <WAS_NODE_PROFILE_HOME>/bin/stopServer (.bat/.sh) <server> -username <name> password <password> 3. Execute the appropriate operating system command to change the name of the cell directory (the subdirectory under config/cells) to the desired new cell name. <WAS_NODE_PROFILE_HOME>/config/cells/oldCell <WAS_NODE_PROFILE_HOME>/config/cells/newCell <WAS_NODE_PROFILE_HOME>/installedApps/oldCell <WAS_NODE_PROFILE_HOME>/installedApps/newCell 4. Edit and alter the cell.xml file in the cell directory. Change the name property to the new cell name value. For example oldCell to newCell. Search for string name= to find this property. <WAS_NODE_PROFILE_HOME>/config/cells/<cell>/cell.xml 5. Edit and alter the setupCmdLine (.bat/.sh) file. Change the WAS_CELL variable value to the new cell name. <WAS_NODE_PROFILE_HOME>/bin/setupCmdLine (.bat/.sh) 6. Edit the deployment.xml file under each installed application directory. Alter the binariesURL property in the deployment.xml file to change the old cell name portion of the binariesURL path to the new cell name. Search for string binariesURL= to find this property.
<WAS_NODE_PROFILE_HOME>/config/cells/<cell>/applications/<app.ear>/deployments/<app>/deplo yment.xml
<WAS_NODE_PROFILE_HOME>/config/cells/<cell>/applications/DefaultApplication.ear/deployments/DefaultApplica
14
5/15/2006
tion/deployment.xml <WAS_ NODE_PROFILE_HOME>/config/cells/<cell>/applications/ivtApp.ear/deployments/ivtApp/deployment.xml <WAS_ NODE_PROFILE_HOME>/config/cells/<cell>/applications/SamplesGallery.ear/deployments/SamplesGallery/deploy ment.xml <WAS_ NODE_PROFILE_HOME>/config/cells/<cell>/applications/TechnologySamples.ear/deployments/TechnologySample s/deployment.xml <WAS_ NODE_PROFILE_HOME>/config/cells/<cell>/applications/PlantsByWebSphere.ear/deployments/PlantsByWebSpher e/deployment.xml <WAS_ NODE_PROFILE_HOME>/config/cells/<cell>/applications/petstore.ear/deployments/petstore/deployment.xml
For example: binariesURL="$(APP_INSTALL_ROOT)/oldCell/DefaultApplication.ear" binariesURL="$(APP_INSTALL_ROOT)/newCell/ DefaultApplication.ear" 7. Delete the content of the following sub-directories entirely. <WAS_NODE_PROFILE_HOME>/wstemp <WAS_NODE_PROFILE_HOME>/config/temp 8. Start each server on node by following command. <WAS_NODE_PROFILE_HOME>/bin/startServer (.bat/.sh) <server>
Note: See section WebSphere Configuration Archive for alternative wsadmin scripting option to alter hostname property for a standalone Base NODE profile.
4.2 Procedure to alter the cell name property for federated Cell
The procedure for altering the cell name in an ND environment is similar to the procedure for Base WAS, with the following exceptions. 1. Always perform backupConfig (on the master cell configuration repository in ND) before making significant configuration changes. 2. Ensure that Deployment Manager, nodeagent, jmsserver and all server processes has been stopped in the entire Cell. Also verify that no WebSphere java process or WASService.exe process is running. To stop Deployment Manager, use following command from dmgr profiless bin directory. <WAS_DMGR_PROFILE_HOME>/bin/stopManager (.bat/.sh) -username <name> -password <password> To stop nodeagent, use following command from node profiless bin directory. <WAS_NODE_PROFILE_HOME>/bin/stopNode (.bat/.sh) -username <name> -password <password> To stop Applicaton Server, use following command from node profiless bin directory. <WAS_NODE_PROFILE_HOME>/bin/stopServer (.bat/.sh) <server> -username <name> password <password>
15
5/15/2006
3. In the master cell repository, execute the appropriate operating system command to change the name of the cell directory (the subdirectory under config/cells/<cellname>) to the desired new node name. For example changing oldCell to newCell: <WAS_DMGR_PROFILE_HOME>/config/cells/oldCell <WAS_DMGR_PROFILE_HOME>/config/cells/newCell Repeat the step on Node also. <WAS_NODE_PROFILE_HOME>/config/cells/oldCell <WAS_NODE_PROFILE_HOME>/config/cells/newCell 4. Edit and alter the cell.xml file in the cell directory. Change the name property to the new cell name value. For example oldCell to newCell. Search for string name= to find this property. <WAS_DMGR_PROFILE_HOME>/config/cells/<cell>/cell.xml 5. Delete the content of the following sub-directories entirely. <WAS_DMGR_PROFILE_HOME>/wstemp <WAS_DMGR_PROFILE_HOME>/config/temp 6. Edit the deployment.xml file under each installed application directory on Deployment Manager profile. Alter the binariesURL property in the deployment.xml file to change the old cell name portion of the binariesURL path to the new cell name. Search for string binariesURL= to find this property.
<WAS_DMGR_PROFILE_HOME>/config/cells/<cell>/applications/<app.ear>/deployments/<app>/depl oyment.xml
<WAS_DMGR_PROFILE_HOME>/config/cells/<cell>/applications/DefaultApplication.ear/deployments/DefaultApplic ation/deployment.xml <WAS_ DMGR_PROFILE_HOME>/config/cells/<cell>/applications/ivtApp.ear/deployments/ivtApp/deployment.xml <WAS_ DMGR_PROFILE_HOME>/config/cells/<cell>/applications/SamplesGallery.ear/deployments/SamplesGallery/deploy ment.xml <WAS_ DMGR_PROFILE_HOME>/config/cells/<cell>/applications/TechnologySamples.ear/deployments/TechnologySample s/deployment.xml <WAS_ DMGR_PROFILE_HOME>/config/cells/<cell>/applications/PlantsByWebSphere.ear/deployments/PlantsByWebSphe re/deployment.xml <WAS_ DMGR_PROFILE_HOME>/config/cells/<cell>/applications/petstore.ear/deployments/petstore/deployment.xml
7. Edit the deployment.xml file under each installed application directory on each NODE profile. Alter the binariesURL property in the deployment.xml file to change the old cell name portion of the binariesURL path to the new cell name. Search for string binariesURL= to find this property.
<WAS_NODE_PROFILE_HOME>/config/cells/<cell>/applications/<app.ear>/deployments/<app>/deplo yment.xml
<WAS_NODE_PROFILE_HOME>/config/cells/<cell>/applications/DefaultApplication.ear/deployments/DefaultApplica tion/deployment.xml <WAS_ NODE_PROFILE_HOME>/config/cells/<cell>/applications/ivtApp.ear/deployments/ivtApp/deployment.xml
16
5/15/2006
<WAS_ NODE_PROFILE_HOME>/config/cells/<cell>/applications/SamplesGallery.ear/deployments/SamplesGallery/deploy ment.xml <WAS_ NODE_PROFILE_HOME>/config/cells/<cell>/applications/TechnologySamples.ear/deployments/TechnologySample s/deployment.xml <WAS_ NODE_PROFILE_HOME>/config/cells/<cell>/applications/PlantsByWebSphere.ear/deployments/PlantsByWebSpher e/deployment.xml <WAS_ NODE_PROFILE_HOME>/config/cells/<cell>/applications/petstore.ear/deployments/petstore/deployment.xml
8. On each of the nodes in the cell, edit the setupCmdLine file to change the WAS_CELL variable to the new cell name. <WAS_DMGR_PROFILE_HOME>/bin/setupCmdLine (.bat/.sh) <WAS_NODE_PROFILE_HOME>/bin/setupCmdLine (.bat/.sh) 9. Start the deployment manager. <WAS_DMGR_PROFILE_HOME>/bin/startManager (.bat/.sh) 10. Execute the syncNode utility on the local node to download and sync the master cell repository with the (renamed) node. <WAS_NODE_PROFILE_HOME>/bin/syncNode (.bat/.sh) <dmgr_host> <dmgr_soap_port> -username <name> -password <password> Note: syncNode command may take substantial time based on the size of the Cell, so give it enough time to complete. 11. Start nodeagent by following command and verify that nodeagent is visible in the ND Administrative Console. Note: On Windows platform, if Windows Services is used to stop nodeagent, use Windows Services panel to start it. <WAS_NODE_PROFILE_HOME>/bin/startNode (.bat/.sh) 12. Start servers including jmsserver on each node by following command. Note: On Windows platform, if Windows Services is used to stop servers, use Windows Services panel to start them. <WAS_NODE_PROFILE_HOME>/bin/startServer (.bat/.sh) <server>
17
5/15/2006
Note: See section WebSphere Configuration Archive for alternative wsadmin scripting option to alter hostname property for a standalone Base NODE profile.
18
5/15/2006
1. Install standalone WSAS on HostB. 2. On HostB, run backupConfig (.bat/sh) using following command. <WAS_NODE_PROFILE_HOME>/bin/backupConfig (.bat/sh) HostB.zip Move the backup configuration file HostB.zip to a safe place. 3. On HostB, remove entire <WAS_NODE_PROFILE_HOME>/config/cell directory structure using appropriate Operating System command. 4. On HostA, run backupConfig (.bat/sh) using following command. <WAS_NODE_PROFILE_HOME>/bin/backupConfig (.bat/sh) HostA.zip
19
5/15/2006
Copy the backup configuration file HostA.zip to HostB under <WAS_NODE_PROFILE_HOME>/bin directory. 5. On HostB, run restoreConfig (.bat/sh) using following command. <WAS_NODE_PROFILE_HOME>/bin/restoreConfig (.bat/sh) HostA.zip 6. If you going to use the node name and cell name NodeB installed as, then use one of the procedure documented in this paper to change the node name and host name of repository. 7. On NodeB, if you want to use NodeA node name and cell name, then edit <WAS_NODE_PROFILE_HOME>/bin/setupCmdLine (.bat/.sh) file for WAS_NODE and WAS_CELL variable to reflect NodeA node name and cell name.
Note: See section WebSphere Configuration Archive for alternative wsadmin scripting option to alter hostname property for a standalone Base NODE profile.
20
5/15/2006
You can only create an archive of an unfederated profile (standalone application server).
$Ad m in Task im p o r t Wasp r o f ile {-ar ch ive <arch ive_lo cat io n >}
exportWasprofile: Use the exportWasprofile command to export the entire cell configuration to a configuration archive. (myArchive.car) Using Jacl:
21
5/15/2006
Interactive mode example usage: Using Jacl: $AdminTask exportWasprofile {-interactive} Using Jython string: AdminTask.exportWasprofile ('[-interactive]')
importWasprofile: Use the importWasprofile command to import a cell configuration in the configuration archive to the system. Only a base single server configuration is supported for this command.
Using Jacl: $AdminTask importWasprofile {-archive c:\myCell.ear} Using Jython string: AdminTask.importWasprofile('[-archive c:\myCell.ear]')
Interactive mode example usage: Using Jacl: $AdminTask importWasprofile {-interactive} Using Jython string: AdminTask.importWasprofile ('[-interactive]')
22
5/15/2006