IMPORTANT: When you copy your existing VM images, you must also make a backup of the WebSphere Portal databases. These database backups will be used in conjunction with the VMWare image backups when you create new Portal clones. Doing this ensures that the contents of the database match the contents of the Portal VM images.
Update the Deployment Manager Hostname and Node
- Ensure the dmgr, nodeagents, and WebSphere_Portal servers are stopped on all the VM images.
- From the /bin directory, execute this wsadmin command to change the hostname for DMGR:
/wsadmin.sh -c "\$AdminTask changeHostName {-nodeName myDmgr -hostName newdmgr.ibm.com}” -conntype NONE |
3. Start dmgr server
Update the WebSphere Portal hostname
- Edit <wp_profile_root>/properties/wsadmin.properties and make sure the following properties are set correctly for your new DMGR hostname:
com.ibm.ws.scripting.host=newdmgr.ibm.com
com.ibm.ws.scripting.port=
8879
- From <wp_profile>/bin directory, execute this wsadmin command to change the hostname for the Portal Node on the DMGR
./wsadmin.sh -c
"\$AdminTask changeHostName {-nodeName myWpNode1 -hostName newwpnode1.ibm.com}"
- Restart the Deployment Manager server. This is to ensure the new Portal hostname is loaded in the deployment manager configuration.
- Synchronize the node using the syncNode command from <wp_profile>/bin directory:
./syncNode.sh newdmgr.ibm.com
8879
-user dmgrAdmin -password dmgrPassword
- Edit the <wp_profile>/ConfigEngine/properties/wkplc.properties files and ensure these two properties are accurate:
WasRemoteHostName=newdmgr.ibm.com
WpsHostName=newwpnode1.ibm.com
Update additional properties in the Deployment Manager configuration with the new hostnames
- Start the Deployment Manager and nodeagents for each node. Do not start WebSphere_Portal on any node yet.
- Log in to the Deployment Manager
- Navigate to Environment -> WebSphere Variables
- Set the Scope to your first WebSphere_Portal server
- Edit the WCM_HOST variable to be the new hostname of that Portal server.
- Repeat steps 4-5 for each WebSphere_Portal server in your cluster.
- Save all changes and synchronize the nodes
Update the database configuration for your Portal cluster
At this point, your new Portal cluster is using the exact same database as your original Portal cluster, so we need to point it to a new database.
- Restore your database backup that goes with VM images to a new location.
- On the primary node, edit the wkplc_DbDomain.properties file and make any necessary changes to the following properties for the domain, where domain is release, community, customization, jcr, likeminds, and feedback:
domain.DbName
domain.DbURL
domain.DbSchema
domain.DbUser
domain.DbPassword
domain.DataSourceName - On the primary node, execute the following ConfigEngine.sh script to ensure the new properties are valid:
./ConfigEngine.sh validate-database-connection
- On the primary node, execute the following ConfigEngine.sh script to update the database configuration:
./ConfigEngine.sh connect-database
- On the primary node, execute the following ConfigEngine.sh script to remove any potential references to the old hostname from the database:
./ConfigEngine.sh action-clean-scheduled-tasks
- On each secondary node, copy the wkplc_DbDomain.properties file over from the primary node.
- On each secondary node, execute the following ConfigEngine.sh script to ensure that the database information is accurate for the local JCR configuration:
./ConfigEngine.sh action-update-icm-properties