- Print
- PDF
Migrating from a Non-Hot Standby Virtual Machine to Docker
Preparing to Migrate
This procedure contains instructions on how to migrate from one of the following releases:
- Skylight orchestrator virtual machine (23.12 or prior version) to the same version of Skylight orchestrator Docker
- Skylight orchestrator virtual machine (23.12 or 23.12.1 version) to Legacy orchestrator Docker 24.09
Migration involves setting up a new Skylight orchestrator Docker (target installation) that will be used to import the database configuration of the Skylight orchestrator virtual machine installation (source installation). This requires, at a minimum:
- A new Skylight orchestrator Docker for Non-Hot Standby
- Ensure the hostname, IP address, NTP server, timezone, and deployment profiles are consistent between the target and source installations.
These procedures are written assuming the target installation will be hosted in a new environment with new net IP addresses. It is expected that new firewall implementations will be required to ensure the application can connect to the network and that end users can access the application interfaces.
The installation of these new Skylight orchestrator Dockers is beyond the scope of this article. These procedures are already captured in the Skylight orchestrator Docker Deployment article and should be used when preparing for your migrating activity. The deployment profile is important to consider when installing your Skylight orchestrator Docker.
The software ships with four deployment profiles:
- 5K profile (default)
- 15K profile
- 30K profile
- 60K profile.
The profiles reference the number of network elements the system can manage. Larger profiles have larger memory, CPU, and disk requirements. The selection of the profile is dictated by the current number of network elements in your source installation.
Please consult your Cisco sales engineer if you need guidance on the profile to choose for your Skylight orchestrator Docker. The deployment profile can be changed (during a maintenance window) at any time, but when doing so, adequate memory, CPU, and disk resources need to be assigned to the Docker host.
Once the Skylight orchestrator Docker is in place, with IP addresses assigned, deployment profile selected, and networking rules in place, the high-level process of migrating entails the following tasks:
- Taking a database backup of your source installation
- Stopping the software on your source installation
- Transferring all resync DAT files on each mediation folder to your target installation
- Transferring the performance session data to your target installation
- Importing the database backup into the target installation
- Starting up the software on your target installation.
Before starting the migration process, follow the steps below to ensure there is no offline data (all Resync DAT files) on the source installation.
To ensure there is no offline data on the source installation:
Note: This procedure is only required when migrating from Skylight orchestrator virtual machine version 23.12 or 23.12.1. to Legacy orchestrator Docker 24.09.
- Open an SSH terminal session to Skylight orchestrator on port 22.
- Log in as the visionems user.
- Run the following command:
find /data/medn*instance/s*/ -type f -name "*RESYNC*" | wc -l
If the output is 0, it indicates there is no offline data.
Otherwise, offline data exists in the Skylight orchestrator virtual machine. In this case, you must wait for the Skylight orchestrator virtual machine to process all offline data by generating the CSV file and sending all CSV files to the SFTP/Rsync destination. If this step is not completed, the offline data will be lost during the migration.
Note: Once the migration is complete, the Legacy orchestrator Docker 24.09 application will continue to generate and handle live and offline data files correctly, even without any old offline data files.
Migration Procedure
Source Installation Procedures
Precondition
During the source installation, ensure that the Internal License Server key needs to be added before performing the migration process.
Note: From release 23.04, all activation keys are preinstalled by default on Skylight orchestrator. Skip procedure below if using Skylight orchestrator 23.04.
To import an Internal License Server key
- Obtain the appropriate key file from Technical Support.
- Save the key file on the local file system (for example, on the desktop) and extract this file.
- Access the Admin ▶ Feature Activation page.
- Click the Choose File button.
- Select the Internal License Server key file on your local file system from the file selector dialog.
- Click the Import button.
Backing up the Data Store
In order to rehome, a database backup of the source installation is required.
To back up and transfer the data store
Open an SSH terminal session to Skylight orchestrator on port 22.
Log in as the visionems user.
Change to the scripts directory by entering:
cd /opt/accedian/skylight/scripts
- Create a backup of the data store by entering:
./ems_backup_mysql.sh -d
The backup is created and saved in the /opt/accedian/backups directory.
- Rename the database backup file to migrate.tar.gz and transfer it to the new Skylight orchestrator Docker (target installation) under the /tmp directory.
Stopping the Application
It is best to stop the application on the source installation while performing the migrating procedure.
To stop the application
- Open an SSH terminal session to the Skylight orchestrator on port 2200.
- Log in as the visionems user.
- Stop the application by entering:
service stop app_server
Transferring All Resync DAT Files
Note: Ignore this step when migrating from Skylight orchestrator virtual machine 23.12 (or 23.12.1) to Legacy orchestrator Docker 24.09.
When migrating from the Skylight orchestrator virtual machine (version 23.12 or prior) to Skylight orchestrator Docker of the same version, follow these steps to ensure the historical performance monitoring data is preserved and transferred to the target installation.
To transfer Resync DAT files
- Open an SSH terminal session to Skylight orchestrator on port 22.
- Log in as the visionems user.
- Initiate the transfer by entering:
For Virtual Machine version 23.04.1 or prior
cd /data
rsync -R -v medn1instance/datfiles/*/*_RESYNC.* skylight@<ip_docker_host>:<path_of_data_volume_for_mediation1>
cd /data/medn2instance
rsync -R -v datfiles/*/*_RESYNC.* skylight@<ip_docker_host>:<path_of_data_volume_for_mediation2>
cd /data/medn3instance
rsync -R -v datfiles/*/*_RESYNC.* skylight@<ip_docker_host>:<path_of_data_volume_for_mediation3>
cd /data/medn4instance
rsync -R -v datfiles/*/*_RESYNC.* skylight@<ip_docker_host>:<path_of_data_volume_for_mediation4>
cd /data/medn5instance
rsync -R -v datfiles/*/*_RESYNC.* skylight@<ip_docker_host>:<path_of_data_volume_for_mediation5>
cd /data/medn6instance
rsync -R -v datfiles/*/*_RESYNC.* skylight@<ip_docker_host>:<path_of_data_volume_for_mediation6>
cd /data/medn7instance
rsync -R -v datfiles/*/*_RESYNC.* skylight@<ip_docker_host>:<path_of_data_volume_for_mediation7>
cd /data/medn8instance
rsync -R -v datfiles/*/*_RESYNC.* skylight@<ip_docker_host>:<path_of_data_volume_for_mediation8>
cd /data/medn9instance
rsync -R -v datfiles/*/*_RESYNC.* skylight@<ip_docker_host>:<path_of_data_volume_for_mediation9>
cd /data/medn10instance
rsync -R -v datfiles/*/*_RESYNC.* skylight@<ip_docker_host>:<path_of_data_volume_for_mediation10>
cd /data/medn11instance
rsync -R -v datfiles/*/*_RESYNC.* skylight@<ip_docker_host>:<path_of_data_volume_for_mediation11>
cd /data/medn12instance
rsync -R -v datfiles/*/*_RESYNC.* skylight@<ip_docker_host>:<path_of_data_volume_for_mediation12>
For Virtual Machine version 23.12
cd /data
rsync -R -v medn1instance/s*/datfiles/*/*_RESYNC.* skylight@<ip_docker_host>:<path_of_data_volume_for_mediation1>
cd /data/medn2instance
rsync -R -v s*/datfiles/*/*_RESYNC.* skylight@<ip_docker_host>:<path_of_data_volume_for_mediation2>
cd /data/medn3instance
rsync -R -v s*/datfiles/*/*_RESYNC.* skylight@<ip_docker_host>:<path_of_data_volume_for_mediation3>
cd /data/medn4instance
rsync -R -v s*/datfiles/*/*_RESYNC.* skylight@<ip_docker_host>:<path_of_data_volume_for_mediation4>
cd /data/medn5instance
rsync -R -v s*/datfiles/*/*_RESYNC.* skylight@<ip_docker_host>:<path_of_data_volume_for_mediation5>
cd /data/medn6instance
rsync -R -v s*/datfiles/*/*_RESYNC.* skylight@<ip_docker_host>:<path_of_data_volume_for_mediation6>
Transferring the Performance Session Data
To preserve the historical performance session data, it must be transferred over to the target installation by following these steps.
To transfer performance session data
- Open an SSH terminal session to Skylight orchestrator on port 22.
- Log in as the visionems user.
- Initiate the transfer by entering:
rsync -av /data/sdmm skylight@x.x.x.x:/<directory>
Where x.x.x.x is the IP address of the target installation.
Where < directory > is the bizn1instance directory under so-data volume.
Target Installation Procedures
The following procedures guide you through the database import and rebalancing process to be executed on the target installation of Skylight orchestrator Docker.
Requirements
To ensure all devices are reachable on the Skylight orchestrator Docker (target installation), manually configure all settings related to the network, interface, NTP server, Hamon, timezone (highly recommended), etc., to match the configurations on the source virtual appliances. Refer to the Docker Deployment articles for more information.
Ensure the data volume(s) is configured to store all performance session data and performance metrics data.
Stopping the Skylight orchestrator Services
- Open an SSH terminal session to the Skylight orchestrator CLI on port 2200.
- Log in as the skylight user.
- Stop services by entering:
services stop
Note: If the services are stopped, skip this step.
Importing the Database
Ensure the user ‘skylight’ has read access to the archive that was copied in the /tmp folder. The backup file that must be restored must be placed on the appliance file system in the /tmp directory.
To import the database
- Open an SSH terminal session to the Skylight orchestrator CLI on port 2200.
- Log in as the skylight user.
- If migrating from Skylight orchestrator virtual machine (23.12 or prior version) to the Skylight orchestrator Docker of the same version, restore the backup by entering:
database restore <filename_of_the_backup_archive>
OR
- If migrating from the Skylight orchestrator virtual machine (23.12 or 23.12.1 version) to the Legacy orchestrator Docker 24.09 version, restore the backup by entering:
database migrate <filename_of_the_backup_archive>
Note: You must only provide the filename of the archive, not the path which is assumed to be /tmp.
Starting the Skylight orchestrator Services
This procedure will start the application.
- Open an SSH terminal session to the Skylight orchestrator CLI on port 2200.
- Log in as the skylight user.
- Start services by entering:
services start
Rollback Procedure
The migrating operation can be rolled back by stopping the application on the target installation and restarting the application on the source installation.
Target Installation Procedure
This procedure will stop the application.
Stopping Skylight orchestrator Services on Non-Hot Standby Configuration
- Open an SSH terminal session to the Skylight orchestrator CLI on port 2200.
- Log in as the skylight user.
- Stop services by entering:
services stop
Source Installation Procedure
This procedure will start the application.
Starting the application for Non-Hot Standby configuration
- Open an SSH terminal session to the Skylight orchestrator on port 2200.
- Log in as the visionems user.
- Start the application by entering:
service start app_server
© 2024 Cisco and/or its affiliates. All rights reserved.
For more information about trademarks, please visit: Cisco trademarks
For more information about legal terms, please visit: Cisco legal terms
For legal information about Accedian Skylight products, please visit: Accedian legal terms and tradmarks