Friday, September 6, 2013

WAS: move deployment manager and application server profiles between differrent platforms


Backup profiles

On source server
$ cd $DMGR_BIN
$ ./manageprofiles.sh -backupProfile -profileName <Dmgr profile name> -backupFile /var/tmp/Dmgr_Backup.zip
$ cd $NODE_BIN
$ ./manageprofiles.sh -backupProfile -profileName <Application Server profile name> -backupFile /tmp/Appsrv_Backup.zip

Restore profiles on destination

Transfer the backup files to destination server.

On destination server
$ cd $WAS_HOME/bin
restore deployment manager profile
$ ./manageprofiles.sh -restoreProfile -backupFile /var/tmp/Dmgr_Backup.zip
restore WAS node profile
$ ./manageprofiles.sh -restoreProfile -backupFile /var/tmp/Appsrv_Backup.zip

 

Customize configuration files

Deployment Manager


replace all old hostname with new hostname in deployment manager serverindex.html, i.e.
/opt/IBM/WebSphere/AppServer/profiles/<Dmgr profile name>/config/cells/<cell name>/nodes/<dmgr node name>/serverindex.xml
fix all os and architeture configuration in node-metadata.properties
/opt/IBM/WebSphere/AppServer/profiles/<Dmgr profile name>/config/cells/<cell name>/nodes/<dmgr node name>/node-metadata.properties

WAS Node Profile

replace all old hostname with new hostname in node agent serverindex.html, i.e.
/opt/IBM/WebSphere/AppServer/profiles/<Dmgr profile name>/config/cells/<cell name>/nodes/<app server node name>/serverindex.xml
fix all os and architeture configuration in node-metadata.properties
/opt/IBM/WebSphere/AppServer/profiles/<Dmgr profile name>/config/cells/<cell name>/nodes/<app server node name>/node-metadata.properties

Synchornize node with deployment manager

./syncNode.sh <dmgr server name> <dmgr soap port number>

Start up profiles

$ cd $DMGR_BIN
$ ./startManager
$ cd $NODE_BIN
$ ./startNode.sh
$ ./startServer.sh server1

No comments:

Post a Comment