Hello,
I am working on documenting a procedure, if even possible, to perform a R80.10 MDS "migration" to R80.10 MDS with a new hostname, new domain names, and new IP addresses for the domains.
Global objects are being used in the Domains added for good measure
In theory, I think the steps would be:
- migrate export the MDS from the source
- migrate_global_policies on the destination
- migrate export each CMA from the source
- mgmt_cli to create the new domain on the destination (do not start the domain)
- cma_migrate to import each domain
And I've already run into a failure
migrate_global_policies fails on the destination:
[Expert@DESTINATION_R80:0]# ./migrate_global_policies /var/log/tmp/export/SOURCE_R80_MDS.tgz
Welcome to the Global Policies Migration Utility.
If the Multi-Domain Server is started, it should be stopped now.
Do you want to stop the Multi-Domain Server processes (Domain Management Servers will not be stopped) [yes/no] ? yes
Stopping Multi-Domain Server only
Stop SmartLog Server...
cpwd_admin:
Process SMARTLOG_SERVER terminated
cpwd_admin:
Process FWM terminated
cpwd_admin:
Process FWD terminated
cpwd_admin:
Process CPD terminated
Multi-Domain Server stopped
Error: Failed to stop CPWD. It is not responding. Aborting.
Performing verifications on currently installed version
The messages generated by the verification tools will be available in:
/opt/CPmds-R80/system/pre_upgrade/pre_global_policies_migrate.log
======================================================================
>>> Executing Source Version Upgrade Path Checker
Pre-upgrade verification ended successfully, proceeding with migrate
Starting CPM only
cpWatchDog is already running
CPM Server already running.
CPM Server is running.
CPM server started
Making sure Multi-Domain Server is running...
Preparing database...
Execution finished with errors. See log file '/opt/CPshrd-R80/log/migrate-2019.02.01_11.42.54.log' for further details
Migration not completed.
migrate-2019.02.01_11.42.54.log:
[1 Feb 11:43:00] ..--> CanonicalizePath
[1 Feb 11:43:00] [CanonicalizePath] Canonicalizing path 'bash -c "set -o pipefail; /opt/CPsuite-R80/fw1/bin/upgrade_tools//gzip -d -c /opt/CPmds-R80/tmp//export_db//ren_db.gz | /opt/CPsuite-R80/fw1/bin/psql_client postgres -U postgres --set ON_ERROR_STOP=on"'
[1 Feb 11:43:00] [CanonicalizePath] Resulting path: 'bash -c "set -o pipefail; /opt/CPsuite-R80/fw1/bin/upgrade_tools//gzip -d -c /opt/CPmds-R80/tmp//export_db//ren_db.gz | /opt/CPsuite-R80/fw1/bin/psql_client postgres -U postgres --set ON_ERROR_STOP=on"'
[1 Feb 11:43:00] ..<-- CanonicalizePath
[1 Feb 11:43:00] ..--> ExecCommandGetOutput
[1 Feb 11:43:00] [ExecCommandGetOutput] Going to execute command: 'bash -c "set -o pipefail; /opt/CPsuite-R80/fw1/bin/upgrade_tools//gzip -d -c /opt/CPmds-R80/tmp//export_db//ren_db.gz | /opt/CPsuite-R80/fw1/bin/psql_client postgres -U postgres --set ON_ERROR_STOP=on"'
[1 Feb 11:43:05] [ExecCommandGetOutput] ERR: Command completed with error code 3
[1 Feb 11:43:05] ..<-- ExecCommandGetOutput
[1 Feb 11:43:05] [CommandRunner::exec] Command's output:
-------------------------------------
SET
SET
ERROR: database "cpm" is being accessed by other users
DETAIL: There are 4 other sessions using the database.
-------------------------------------
[1 Feb 11:43:05] [CommandRunner::exec] ERR: Command execution had failed