Este contenido no está disponible en el idioma seleccionado.
Chapter 3. 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.
You must stop both the source and the target JBoss EAP servers before you run the JBoss Server Migration Tool.
3.1. Run the JBoss Server Migration Tool in Interactive Mode Copiar enlaceEnlace copiado en el portapapeles!
By default, the JBoss Server Migration Tool runs interactively. This mode allows you to choose exactly which server configurations you want to migrate.
Interactive mode does not allow you to choose which subsystems to migrate. For information on how to configure the tool at the subsystem or task level, see Configure the Migration Tasks Performed by the JBoss Server Migration Tool.
The following are the basic steps that are performed for a minimal migration. If the server from which you are migrating includes custom configurations, for example deployments, or if it is missing default resources, the tool provides additional prompts.
To run the tool in interactive mode, navigate to the target server installation directory and run the following command, providing the
sourceargument as the path to the source server installation.EAP_HOME/bin/jboss-server-migration.sh --source EAP_PREVIOUS_HOME
$ EAP_HOME/bin/jboss-server-migration.sh --source EAP_PREVIOUS_HOMECopy to Clipboard Copied! Toggle word wrap Toggle overflow You are prompted to determine if you want to migrate the source server’s standalone configurations, which are located in the
EAP_PREVIOUS_HOME/standalone/configuration/directory, to the target server’s standalone configurations, which are located in theEAP_HOME/standalone/configuration/directory.Migrate the source's standalone server? yes/no? yes
Migrate the source's standalone server? yes/no? yesCopy to Clipboard Copied! Toggle word wrap Toggle overflow If you respond with
no, standalone server migration is skipped and no standalone server configuration files are migrated.If you respond with
yes, you see the following prompt.Migrate all configurations? yes/no? yes
Migrate all configurations? yes/no? yesCopy to Clipboard Copied! Toggle word wrap Toggle overflow Respond with
yesto migrate all of the source server’s standalone server configuration files.Respond with
noto receive a prompt for each individualstandalone*.xmlconfiguration file.Next, you are prompted to determine if you want to migrate the source server’s managed domain configurations, which are located in the
EAP_PREVIOUS_HOME/domain/configuration/directory, to the target server’s managed domain configurations, which are located in theEAP_HOME/domain/configuration/directory.Migrate the source's managed domain? yes/no? yes
Migrate the source's managed domain? yes/no? yesCopy to Clipboard Copied! Toggle word wrap Toggle overflow If you respond with
no, managed domain migration is skipped and no managed domain configuration files are migrated.If you respond with
yes, the tool begins migrating the managed domain content of the source server. A ciphered repository is used to store data, such as deployments and deployment overlays, that are referenced by the source server’s managed domain and host configurations. Because the source and target servers use a similar content repository, the tool simply copies the data from the source server to the target server and prints the results to the console and the server log.INFO [ServerMigrationTask#397] Migrating domain content found: [22/caa450a9ba3b84eaf5a15b6da418b92ce6c98e/content, 23/b62a37ba8a4830622bfcdb960280577cc6796e/content] INFO [ServerMigrationTask#398] Resource with path /EAP_HOME/domain/data/content/22/caa450a9ba3b84eaf5a15b6da418b92ce6c98e/content migrated. INFO [ServerMigrationTask#399] Resource with path /EAP_HOME/domain/data/content/23/b62a37ba8a4830622bfcdb960280577cc6796e/content migrated.
INFO [ServerMigrationTask#397] Migrating domain content found: [22/caa450a9ba3b84eaf5a15b6da418b92ce6c98e/content, 23/b62a37ba8a4830622bfcdb960280577cc6796e/content] INFO [ServerMigrationTask#398] Resource with path /EAP_HOME/domain/data/content/22/caa450a9ba3b84eaf5a15b6da418b92ce6c98e/content migrated. INFO [ServerMigrationTask#399] Resource with path /EAP_HOME/domain/data/content/23/b62a37ba8a4830622bfcdb960280577cc6796e/content migrated.Copy to Clipboard Copied! Toggle word wrap Toggle overflow Next, the migration tool scans the source server for managed domain configuration files, prints the results to the console, and provides the following prompt.
Migrate all configurations? yes/no? yes
Migrate all configurations? yes/no? yesCopy to Clipboard Copied! Toggle word wrap Toggle overflow Respond with
yesto migrate all of the source server’s managed domain configuration files.Respond with
noto receive a prompt for each individual managed domain configuration file.Next, the migration tool scans the source server for host configurations files, prints the results to the console, and provides the following prompt.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Respond with
yesto migrate all of the source server’s host configuration files.Respond with
noto receive a prompt for each individual host configuration file.Upon completion, you should see the following message in the server console.
Migration Result: SUCCESS
Migration Result: SUCCESSCopy to Clipboard Copied! Toggle word wrap Toggle overflow
3.2. Run the JBoss Server Migration Tool in Non-interactive Mode Copiar enlaceEnlace copiado en el portapapeles!
You can run the JBoss Server Migration Tool in non-interactive mode. This mode allows it to run without prompts.
The JBoss Server Migration Tool automatically migrates all subsystem configurations for all server configuration files. For information on how to configure the tool at the subsystem or task level, see Configure the Migration Tasks Performed by the JBoss Server Migration Tool.
To run the tool in non-interactive mode, navigate to the target server installation directory and run the following command, providing the
sourceargument as the path to the source server installation and setting the--interactiveor-iargument tofalse.EAP_HOME/bin/jboss-server-migration.sh --source EAP_PREVIOUS_HOME --interactive false
$ EAP_HOME/bin/jboss-server-migration.sh --source EAP_PREVIOUS_HOME --interactive falseCopy to Clipboard Copied! Toggle word wrap Toggle overflow By default, the tool automatically migrates all of the source server’s standalone and managed domain configuration files. However, you can configure the tool’s properties to skip migration of specific configurations. Upon completion, you should see the following message in the server console.
Migration Result: SUCCESS
Migration Result: SUCCESSCopy to Clipboard Copied! Toggle word wrap Toggle overflow