INTRODUCTION
What is JBoss Server Migration Tool?
The JBoss Server Migration Tool is a Java application which ships with JBoss EAP 7.1 and that automatically migrates JBoss EAP server configurations with minimal or no interaction required. The JBoss Server Migration Tool reads your existing source server configuration files and adds configurations for any new subsystems, updates the existing subsystem configurations with new features, and removes any obsolete subsystem configurations.
Pre-Migration Tasks
Download the Jboss eap 7.1 and setup on your linux machine.
For example-
I’m using the EAP_HOME /opt/RH/TestApp_JB7.1 for jboss eap 7.1 and /opt/RH/TestApp_JB7.0 for jboss eap 7.0
Running the JBoss Server Migration Tool
You can run the JBoss Server Migration Tool in either of the following ways.
- Interactive mode: This mode, which is the default, allows you to choose exactly which configurations you want to migrate.
- Non-interactive mode: This mode allows you to run the tool without prompts.
We will use Interactive mode to migrate the application server.
1. Run below command to migrate with interactive mode.
$cd /opt/rh/TestApp_JB7.1/bin
$./jboss-server-migration.sh --source /opt/rh/TestApp_JB7.0
2. It will prompt for standalone migration. Type “yes” here and hit enter.
3. Then type “yes” for migrate all configuration files of standalone.
4. Because we have already deployed application in our old EAP 7.0 so type “no” here to migrate the deployed application as well. If any case the deployed application not migrated then copy it from old EAP 7.0 to new EAP 7.1
5. Our application running on standalone mode and we haven’t done any configuration changes on domain, so here no need to migrate domain. Type “no” for skip to domain migration.
6. Now the migration completed from Jboss EAP 7.0 to Jboss EAP 7.1. You can see the output log of migrated content.
7. Now the Jboss EAP 7.0 server configuration migrated to Jboss EAP 7.1. Go to the EAP 7.1 Home and start the instance to verify.
8. The same method to migrate from Jboss EAP 6 to Jboss EAP 7.1 and only one difference, you have to re-configure mod_cluster in Jboss EAP 7.1 because the configurations are different than the Jboss EAP 6.
Run the JBoss Server Migration Tool in Non-interactive Mode
This post is only for Interactive mode migration. But those who wants to migrate in Non-interactive mode please follow the bellow command.
$cd /opt/rh/TestApp_JB7.1/bin
$ ./jboss-server-migration.sh --source /opt/rh/TestApp_JB7.0 --interactive false
$EAP_HOME/migration/configuration/environment.properties
Migration Result: SUCCESS
Comments
Post a Comment