Escolar Documentos
Profissional Documentos
Cultura Documentos
Agenda
Introduction to Migration
Migration Scenarios
Migration of Stand Alone server on same Machine using Migration Graphical
Tool
Migration of Federated cell to remote Machine using Command line
Rollback options
Common Issues
Introduction to Migration
Introduction to Migration
What is meant by configuration migration ?
Migration Process
WebSphere Application Server v8.5 supports migration from versions v6.0,
v6.1, v7.0 and v8.0
Migration Utilities
Configuration Migration Management Tool (CMMT) for WAS
v8.x (GUI)
Command Line
ManageProfiles
WASPreUpgrade
WASPostUpgrade
Migration Scenarios
Migration Scenarios
Migration of Standalone server on same machine
GUI or command line (We will cover it using GUI later in
this session)
Migration Wizard
Configuration Migration Management Tool (CMMT) for WAS
8.5
The migration wizard command is run from the WAS 8.5 bin
directory
Syntax:
app_server_root\bin\migration.[bat|sh]
Select a directory for trace file location, by default is Migration Output directory
We are choosing
to create new
profile
Summary of Migration
C:\IBM\WebSphere\AppServer855_JDK7\bin\WASPreUpgrade.bat
C:\IBM\WebSphere\WSMigration\AppSrv03 C:\IBM\WebSphere\AppServerJOBMGR -
requireEmbeddedDBMigration true -traceString "Migration.Flow=finer:Migration.*=fine"
-traceFile
C:\IBM\WebSphere\WSMigration\AppSrv03\logs\WASPreUpgrade_2014_07_08T16_39_3
5_436.trace -oldProfile AppSrv03
C:\IBM\WebSphere\AppServer855_JDK7\bin\WASPostUpgrade.bat
C:\IBM\WebSphere\WSMigration\AppSrv03 -oldProfile AppSrv03 -profileName AppSrv09
-scriptCompatibility true -replacePorts true -includeApps true -keepAppDirectory false -
traceString "Migration.Flow=finer:Migration.*=fine" -traceFile
C:\IBM\WebSphere\WSMigration\AppSrv03\logs\WASPostUpgrade_2014_07_08T16_39_
35_436.trace
10
11
WASPreUpgrade Complete
12
13
WASPostUpgrade Complete
14
CreateRemoteMigrJar
ManageProfiles
WASPreUpgrade
WASPostUpgrade
v8.5
v8.5
v8.5
v8.5
Note :You must create the remote migration .jar file on the same operating system
and architecture as you installed the source.
4. Use any archive tool to create a compressed file of the backup directory
Example:
cd /backup_source_host
./opt/WebSphereV70/java/bin/jar -cf v70tov85dmgr01.jar v70tov85dmgr01/
Create a directory on the target machine and extract the archived file to the
new directory
Example:
mkdir /backup_source_host
cd /backup_source_host
./opt/WebSphereV85/java/bin/jar xf v70tov85dmgr01.jar
Check the WASPostUpgrade console output for "Failed with errors" or "Completed
with warnings"
backup_source_host/v70tov85dmgr01/logs/WASPostUpgrade.<target profile
name>.<timestamp>.log
backup_source_host/v70tov85dmgr01/logs/WASPostUpgrade.<target profile name>.trace
3. Copy and move the backup directory to New machine (step 4 for dmgr)
Quick Summary
Install WAS v8.5 with latest fixpack on the target host
Create a new profile on the v8.5 WebSphere Application
Server
Use the createRemoteMigrJar from v8.5 to create a OS
specific Jar
Copy the new jar file to the v7.0 host and expand in temporary
directory
Use the WASPreUpgrade -machineChange true parameter to
create backup (distributed only not iSeries or zOS)
Compress the resulting backup directory and copy to target
host
Run WASPostUpgrade command from the new v8.x profile
Rollback options
There will be a serverindex.xml_disabled file in this directory, perform the following actions:
Delete or rename the serverindex.xml file
Rename the serverindex.xml_disabled file to serverindex.xml
4. Synchronize the federated nodes if they were ever running when the Version 8.5 deployment
manager was running
5. Delete the version 8.5 profile
6. Start the rolled-back deployment manager and its federated nodes v7.x environment
Common Issues
Common Issues
WASPostUpgrade fails with DMGR profile
New DMGR cellName not same as old DMGR
Cell Name of DMGR has to match old environments Cell Name
Wrong Profile
WASPostUpgrade run without profileName option then default profile is used
Command fails
<Was_V70_AppServer>\bin> ./WASPreUpgrade.sh /backup70to85
/opt/WebSphere/AppSrv70
MIGR0104E: You must specify the currently installed WebSphere Application Server
directory name
MIGR0272E: The migration function cannot complete the command.
Execution of WASPreUpgrade from v7.0 WSAS_HOME/bin instead of v8
WAS_HOME
OutOfMemory on WASPostUpgrade
Using the changeMachine true parameter collects additional, shared files, and
places in migrated directory in the backup archive
Large number of applications
Increase heapsize for the WASPostUpgrade command using -javaoption for
example -javaoption -Xmx1024m
Things to remember
Before attempting migration, backup all source profiles completely
Install the new release with the same cell name and node name you are
migrating from, as either a deployment manager, or standalone profile
Do not federate node, each node will automatically be federated during the
node(s) migration
You must create the remote migration .jar file on the same operating
system and architecture as you installed the source. Because the archive
that is generated contains operating system specific code, it only executes
on this architecture
View a webcast replay with step-by-step instructions for using the Service Request (SR)
tool for submitting problems electronically:
http://www.ibm.com/software/websphere/support/d2w.html
Sign up to receive weekly technical My Notifications emails:
http://www.ibm.com/software/support/einfo.html
Questions