Migrate V4.0.x of WAS to a remote stand-alone V6 machine
Use the migration tools to perform a manual migration between two machines.
Before you begin
Typically use the WASPreUpgrade and the WASPostUpgrade migration tools from V6 of WAS to upgrade from V4.0.x to V6 on the same machine.However, some scenarios require that you migrate the V4.0 configuration on one machine to V6 on a different machine. One of these scenarios is when you install new machines for your latest V6 environment but need to migrate your existing V4.0.x configuration from other machines.
Overview
This topic describes using the V6 migration tools to migrate the following products:
- WebSphere Application Server Advanced Edition, V4.0
- WebSphere Application Server Advanced Single Server Edition, V4.0 (the steps vary slightly)
The WASPreUpgrade tool saves the existing V4.0 configuration into a migration-specific-backup directory. The WASPostUpgrade tool uses this directory to add the old configuration settings to the new V6 environment.
Procedure
- Obtain the V6 product CD-ROM. On this CD is the migration/bin directory. This directory contains a special environment that use to run the WASPreUpgrade tool without installing V6.
- Save the current configuration using the WASPreUpgrade script from the /migration/bin directory of the V6 product CD-ROM, which mount to the V4.0 machine. Save the configuration in the migration-specific-backup directory on the V4.0 machine
For all scenarios except V4.0.x Advanced Single Server Edition, verify that the administrative server of the existing environment is running. The WASPreUpgrade tool provides status to the screen and to log files in the migration-specific-backup directory. ASCII log file names start with the text WASPreUpgrade and include a date and timestamp.WASPreUpgrade /opt/tmp/migration-specific-backup /opt/websphere/appserver adminNodeNameThe WASPreUpgrade tool saves selected files from the V4.0.x /bin directory. It also exports the existing Application Server configuration from the V4.0.x repository. The WASPreUpgrade tool calls XMLConfig to export the existing V4.0.x repository to the websphere_backup.xml file in the migration-specific-backup directory.
V4.0.x Advanced Single Server Edition does not require the administrative server to run at the time of migration. The WASPreUpgrade tool copies the server-cfg.xml file from the install_root/config directory to the migration-specific-backup/config directory.
If errors occur while running the WASPreUpgrade tool, you might have to apply fixes to the V4.0 installation to successfully complete the export step. See the IBM Support page for the latest fixes that might be applicable. When viewing this information from the information center, click Support to link to the IBM Support page.
- Copy the migration-specific-backup directory from the V4.0 machine to the V6 machine. Use the ftp command, shared storage, or some other mechanism to copy the file to the new machine.
Perform the following steps on the machine with V6 of WebSphere Application Server.
- Copy the migration-specific-backup/websphere_backup.xml or the migration-specific-backup/config/server-cfg.xml file and store it as an archive. You edit the original file in the next step.
- Edit the migration-specific-backup/websphere_backup.xml or the /migration-specific-backup/config/server-cfg.xml file to correct machine-dependent settings. Make the following changes in the file:
- Change the node name in the migration-specific-backup/websphere_backup.xml file. There is no node name in the migration-specific-backup/config/server-cfg.xml file. If you are using the same node name for the V6 machine that you use for the original V4.0.x configuration, do not change the name. Otherwise, change all occurrences of the V4.0.x node name to the node name you are using for WAS V6. The node name occurs in many XML stanzas throughout the file. Failing to change all occurrences results in an incomplete migration of data.
- Change the path names in the migration-specific-backup/websphere_backup.xml or the migration-specific-backup/config/server-cfg.xml file. The configuration file refers to path names in many XML stanzas throughout the file. Update any reference to a file outside of the V4.0.x directory structure to the equivalent directory on the new machine, even if create an equivalent directory. The implication of configuring a matching environment means that you might have to copy the original directory to the V6 machine. Or you might have to install the appropriate software.
- Check files in the properties directories for references that contain path names. In particular, edit the migration-specific-backup/properties/sas.client.props and the migration-specific-backup/properties/TraceSettings.properties files to correct machine-dependent settings: Make the following changes in the file:
- Change the path values of any property in the file.
Each property file contains properties that refer to paths. Update any reference to a file outside of the V4.0.x directory structure to the equivalent directory on the new machine, even if create an equivalent directory.
- Correct specification styles for path values that are dependent on the operating system.
You must correct path specifications if they differ from what works on the machine running V6.
- Correct specification styles for path names that are dependent on the operating system. You must correct path specifications if they differ from what works on the machine running V6. For example, if you are moving from V4.0.x on a Windows platform to V6 on a Linux platform, change any Windows-specific path in the configuration file to use the Linux path style. Change c:\mystuff\somepath to /opt/mystuff/somepath.
- Change user IDs and passwords to match security requirements. You might have to change user IDs and passwords if they are not identical to those in use on the V6 machine.
To change an encoded password to a clear-text password, change <password>{xor}LCoxayht</password> to <password>mypassword</password>.
- Change other machine-specific information. The configuration might refer to other software products or configurations that do not exist on the new machine. For example, the old machine might have a database. The V6 configuration should still point to the database on the old machine, possibly. Modify the data source to point to the database on the V4.0.x machine.
- Install the V6 product.
- Use the Profile Creation wizard to create a V6 profile.
- Add the V4.0.x configuration to the V6 configuration. Use the WASPostUpgrade tool in the install_root/bin directory of V6 to add the V4.0.x configuration to the V6 configuration
The WASPostUpgrade tool records detailed information specific to each enterprise bean it deploys, in the migration-specific-backup/WASPostUpgrade.log file.WASPostUpgrade /opt/tmp/migration-specific-backup- Configure WAS after migration. This is a way of verifying the results of the migration tools. We can read Configuration mapping during migration to learn more about the results of migration. This topic has a detailed description of how the migration tools migrate objects, and what you should verify.
- If you migrated from a machine being run as non-root on a Linux or UNIX platform, perform the following steps:
- See Run the deployment manager with a non-root user ID for instructions on how to set up the deployment manager to run as a non-root user.
- See Run an Application Server and node agent from a non-root user for instructions on how to set up the Application Server and the nodeagent process to run as non-root.
Result
You have migrated WAS from V4.0.x to a remote V6 machine.
What to do next
Return to Migrating product configurations to continue.
See Also
Migration tools
See Also
WASPreUpgrade command
WASPostUpgrade command