Sunday 23 June 2013

Moving a profile to a new host in Websphere Application Server


Hi all,

I have a scenario where I am working with two servers and both are having same setup one is my primary and second is standby. Antecedently my profile is crashed on primary setup while doing some R&D. It is best practice to take backup of your profile before doing any changes but I didn't. After a lot of searching I got a solution to move profile from one server to different. Then I recover my profile by moving standby profile to primary. Here is the process I followed.

Procedure:

  1. Stop all the processes running related to the profile of witch you want to move.
  2. Then run the manageprofiles command with the backupProfile option, and specify the profile
    Name to be backed up and the backup file name with appropoiate location.
    manageprofile.bat -backupProfile -profileName AppSrv02 -backupFile D:\IBM\WebSphere\AppServer\profiles\AppSrv02Backup.zip
  1. When the backup has finished, transfer the backup file from the one server to the another
    server.and run manageprofiles using the restoreProfile option as follows
    manageprofile.bat -restoreProfile -backupFile D:\IBM\WebSphere\AppServer\profiles\AppSrv02Backup.zip
  1. start up wsadmin without connecting to a WebSphere process
    wsadmin.bat -conntype NONE -lang jython
  2. Once wsadmin is ready, invoke the changeHostName utility command for the AdminTask object as
    shows below.
    wsadmin>AdminTask.changeHostName ('[-interactive]')
    *Node Name (nodeName): Node Name of your Profile
    *Host Name (hostName): New host name
    System Name (systemName): (oprional)
    Regenerate Certificates (regenDefaultCert):(oprional)

    Press F to finish.
  1. Invoke the AdminConfig.save() utility command to save changes.
  2. Start the application server and you can see the changes reflected in the admin console

Hope this will help you to change you the only hostname of your profile also.



Effort only fully releases its reward after a person refuses to quit.”

Regards,
Akhilesh B. Humbe

1 comment:

  1. Hi Akhilesh,

    Can backup Deployment Manager and restore to new host if current Deployment Manager die?

    ReplyDelete

Popular Posts