Migration d'un websphere 6.1 vers un websphere 8.0.0.5.


  • Prendre le password SOAP de la version WebSphere installé.

  • root@arecibo:/ # grep "com.ibm.SOAP.loginPassword" /apps/WebSphere/profiles61/dmgr/properties/soap.client.props
    com.ibm.SOAP.loginPassword={xor}GwscPioZMDE7Phg+Kjw3Og==
    root@arecibo:/ # cd  script
    root@arecibo:/script # ./decrypt_password_was.pl {xor}GwscPioZMDE7Phg+Kjw3Og==
    DTCauFondaGauche
    root@arecibo:/script #
    

  • Création d'un répertoire pour la migration (root)

  • root@arecibo:/ # mkdir /Migration
    root@arecibo:/ # chmod 777 /Migration
    

  • Réalisation d'une sauvegarde du DMGR WebSphere 6.1 (root)

  • root@arecibo:/ # /apps/WebSphere/profiles61/dmgr/bin/backupConfig.sh /Migration/was61dmgr_backupConfig_beforeMigration.zip -nostop
    ADMU0116I: Tool information is being logged in file
               /apps/WebSphere/profiles61/dmgr/logs/backupConfig.log
    ADMU0128I: Starting tool with the dmgr profile
    ADMU5001I: Backing up config directory /apps/WebSphere/profiles61/dmgr/config to
               file /Migration/was61dmgr_backupConfig_beforeMigration.zip
    ...................................................................................
    ...................................................................................
    ...................................................................................
    ...................................................................................
    ADMU5002I: 1,449 files successfully backed up
    root@arecibo:/ #
    root@arecibo:/ # ls -l /Migration/was61dmgr_backupConfig_beforeMigration.zip
    -rw-r--r--    1 root     system     12779594 Jul  3 11:51 /tmp/was61dmgr_backupConfig_beforeMigration.zip
    root@arecibo:/ #
    

  • Si on veut restaurer le DMGR du WebSphere 6.1 la commande est la suivante (root)

  • root@arecibo:/ # cd /apps/WebSphere/profiles61/dmgr/bin
    root@arecibo:/apps/WebSphere/profiles61/dmgr/bin # pwd
    /apps/WebSphere/profiles61/dmgr/bin
    root@arecibo:/apps/WebSphere/profiles61/dmgr/bin # ./restoreConfig.sh /Migration/was61dmgr_backupConfig_beforeMigration.zip
    ADMU0116I: Tool information is being logged in file
               /apps/WebSphere/profiles61/dmgr/logs/restoreConfig.log
    ADMU0128I: Starting tool with the dmgr profile
    ADMU0505I: Servers found in configuration:
    ADMU0506I: Server name: dmgr
    ADMU2010I: Stopping all server processes for node areciboManager
    ADMU0512I: Server dmgr cannot be reached. It appears to be stopped.
    ADMU5502I: The directory /apps/WebSphere/profiles61/dmgr/config already exists;
               renaming to /apps/WebSphere/profiles61/dmgr/config.old
    ADMU5504I: Restore location successfully renamed
    ADMU5505I: Restoring file
               /Migration/was61dmgr_backupConfig_beforeMigration.zip
               to location /apps/WebSphere/profiles61/dmgr/config
    .....................................................................................
    .....................................................................................
    .....................................................................................
    .....................................................................................
    ADMU5506I: 1,269 files successfully restored
    ADMU6001I: Begin App Preparation -
    ADMU6009I: Processing complete.
    ADMU6002I: Begin Asset Preparation -
    ADMU6009I: Processing complete.
    root@arecibo:/apps/WebSphere/profiles61/dmgr/bin #
    

  • PreUpgrade du DMGR du WebSphere 6.1 (root)

  • root@arecibo:/Migration # /apps/WebSphere/AppServer8/bin/WASPreUpgrade.sh /Migration/was61towas8dmgr /apps/WebSphere/AppServer61 -oldProfile dmgr
    IBM WebSphere Application Server, Release 8.0
    Product Upgrade PreUpgrade tool, Version 1.0
    Copyright IBM Corp., 1997-2010
    
    MIGR0300I: The migration function is starting to save the existing Application Server environment.
    The file handle limit is set below the optimum limit of 10,000. If you do not change the file handle limit to 10,000 or above, then the migration might fail.
    MIGR0302I: The existing files are being saved.
    MIGR0385I: Starting to save profile dmgr.
    MIGR0425I: A deployment manager migration is detected.  Before continuing with the WASPostUpgrade process, run the backupConfig command on your federated nodes.
    
    MIGR0303I: The existing Application Server environment is saved.
    MIGR0420I: The first step of migration completed successfully.
    root@arecibo:/Migration #
    

  • PostUpgrade du DMGR du WebSphere 6.1 vers la version WebSphere 8.0.0.5 (root)

  • root@arecibo:/ # /apps/WebSphere/AppServer8/bin/WASPostUpgrade.sh /Migration/was61towas8dmgr -profileName dmgr -oldProfile dmgr -replacePorts true -backupConfig false -keepDmgrEnabled true -includeApps true -scriptCompatibility true -keepAppDirectory true -username administrateur -password "DTCauFondaGauche"
    IBM WebSphere Application Server, Release 8.0
    Product Upgrade PostUpgrade tool, Version 1.0
    Copyright IBM Corp., 1997-2010
    
    MIGR0304I: The previous WebSphere environment is being merged into this profile.
    CEIMI0006I Starting the migration of Common Event Infrastructure.
    MIGR0332I: The attributes of the Active authentication mechanism are updating.
    MIGR0335I: Attributes of the Active user registry are updating to reflect the information for server ID .
    MIGR0229I: The migration function is updating the attributes of SSLConfig entry CellDefaultSSLSettings. This entry is already defined in the existing model.
    MIGR0223I: The migration function is adding SSLConfig entry NodeDefaultSSLSettings to the model.
    MIGR0223I: The migration function is adding JAASAuthData entry appli_recette61-alias to the model.
    MIGR0486I: The Transports setting in file server.xml is deprecated.
    MIGR0486I: The PMIService:initialSpecLevel setting in file server.xml is deprecated.
    MIGR0527I: The java.security file was migrated. Review the contents of the file to ensure the desired behavior. Additional changes may be needed.
    MIGR0339I: Application appli_baby23-recette61-bz.ear is deploying using the wsadmin command.
    MIGR0499I: Application appli_baby23-recette61-bz.ear successfully deployed using the wsadmin command.
    MIGR0339I: Application appli_baby23-recette61-pz.ear is deploying using the wsadmin command.
    MIGR0499I: Application appli_baby23-recette61-pz.ear successfully deployed using the wsadmin command.
    MIGR0339I: Application appli_prof67-recette61.ear is deploying using the wsadmin command.
    MIGR0499I: Application appli_prof67-recette61.ear successfully deployed using the wsadmin command.
    MIGR0339I: Application ibmARS.ear is deploying using the wsadmin command.
    MIGR0499I: Application ibmARS.ear successfully deployed using the wsadmin command.
    MIGR0339I: Application commsvc.ear is deploying using the wsadmin command.
    MIGR0499I: Application commsvc.ear successfully deployed using the wsadmin command.
    MIGR0339I: Application appli_sport11-recette61.ear is deploying using the wsadmin command.
    MIGR0499I: Application appli_sport11-recette61.ear successfully deployed using the wsadmin command.
    CEIMI0007I The Common Event Infrastructure migration is complete.
    MIGR0307I: The restoration of the previous Application Server environment is complete.
    MIGR0259I: The migration has successfully completed.
    root@arecibo:/ #
    

  • Arret du DMGR de l'ancienne version WebSphere 6.1 (was61)

  • was61@arecibo:/home/was61$ /apps/WebSphere/profiles61/dmgr/bin/stopManager.sh
  • Start du manager was8 (was8)

  • Afin de pouvoir ré-injecter la configuration de notre WebSphere 6.1 dans notre WebSphere 8.0.0.5.
    Nous démarrons le DMGR du WebSphere 8.0.0.5 préalablement installé.
    was8@arecibo:/ $ /apps/WebSphere/profiles8/dmgr/bin/startManager.sh
    ADMU0116I: Tool information is being logged in file
               /apps/WebSphere/profiles8/dmgr/logs/dmgr/startServer.log
    ADMU0128I: Starting tool with the dmgr profile
    ADMU3100I: Reading configuration for server: dmgr
    ADMU3200I: Server launched. Waiting for initialization status.
    ADMU3000I: Server dmgr open for e-business; process id is 28975
    was8@arecibo:/ $
    

  • Test de la console WebSphere 8.0.0.5

  • Taper l'url de la console dans votre navigateur.
    L'url est la même qu'avant le migration https://arecibo:13153/ibm/console
    Utilisateur : administrateur
    Password : DTCauFondaGauche
    Le dmgr est en 8.0.0.5, mais tout les noeuds reste en 6.1, c'est normal.

  • Backup de l'ancien profile du WebSphere 6.1 d'un noeud (root)

  • root@arecibo:/ # /apps/WebSphere/profiles61/node/bin/backupConfig.sh /Migration/was61node_backup_profiles61beforeMigration.zip -profileName node -nostop
    ADMU0116I: Tool information is being logged in file
               /apps/WebSphere/profiles61/node/logs/backupConfig.log
    ADMU0128I: Starting tool with the node profile
    ADMU5001I: Backing up config directory /apps/WebSphere/profiles61/node/config
               to file
               /Migration/was61node_backup_profiles61beforeMigration.zip
    .........................................................................................
    .........................................................................................
    .........................................................................................
    .........................................................................................
    .........................................................................................
    ADMU5002I: 552 files successfully backed up
    root@arecibo:/ #