Migrating DCImanager 6 to a new server
The article contains instructions on how to migrate the platform to another server. If the platform and the location are on the same server, the location will be migrated along with the platform.
If you need to migrate the location to a new server, follow the steps in the knowledge base article If you need to reinstall the OS or replace the location server.
Migration steps
To migrate DCImanager 6 to a new server:
- Generate a new token in your client area eu.ispsystem.com.
- On the source server:
- Change the token for the LicenseToken parameter in the configuration file /opt/ispsystem/dci/config.json.
Perform a backup:
dci backup
CODEThe backup will be saved in the directory/opt/ispsystem/dci/backup.
Stop the DCImanager 6 service:
dci down
CODETransfer the archive file to the destination server:
rsync -avzP /opt/ispsystem/dci/backup/<archive_file_name> user@1.2.3.4:/root/
CODEComments1.2.3.4 — IP address of the destination server;
user — user name at the destination server;
<archive_file_name> — archive file in the .tar.gz. format.
Note
The rsync utility must be installed on both the source and destination server.
- On the destination server:
- Connect to the server via SSH with superuser permissions (root by default).
Download the installer:
curl -O https://download.ispsystem.com/6/dci/dcibox/dci
CODEMake it executable:
chmod +x dci
CODEStart the recovery:
./dci restore -b /root/<имя_файла_архива>
CODEComments<archive_file_name> — archive file in the .tar.gz. format.
Note
Be sure to specify the full path to the archive file.
When the installation is complete, move the /opt/ispsystem/dci/clickhouse_storage directory from the source server:
rsync -avzP user@1.2.3.4:/opt/ispsystem/dci/clickhouse_storage /opt/ispsystem/dci
CODECommentsuser — user name on the source server;
1.2.3.4 — IP address of the source server.
Make the installer a service:
./dci make-service
CODEAfter completing the DCImanager 6 migration to the new server, enter the interface
→ System overview → Renew license.
"System Overview" section
- If the migration was successful, remove the platform from the source server:
Stop DCImanager 6 service and disable it:
systemctl stop dci.service
CODEsystemctl disable dci.service
CODEDelete the information about the platform operation:
rm /opt/ispsystem/dci -rf
CODERemove the installed docker images and containers:
docker system prune -a -f
CODE