Applicable to:
- SolusVM 2
Question
How to migrate SolusVM 2 Management node to another server?
Answer
-
Create a backup of Management node
- Prepare a new server and install SolusVM 2 on it
- Connect to the new Management node via SSH
- Download the backup(.zst file) created in step 1 from Backup Node
- Restore the backup with the command:
# /usr/local/solus/bin/installer -restore <backup>
where <backup> is the path to the backup file downloaded in step 4
After the Migration, update the new IP/hostname on the management server and all the CRs by following the instructions:
- Connect to SolusVM 2 Management node via SSH
- Update
hostparameter in/usr/local/solus/config/config.ymlfile - After that run the following command to update docker stack settings:
# /usr/local/solus/bin/installer -reconfigure
Note: During the execution of the command above it will try to renew Let's Encrypt certificate for the specified hostname, so it is better to have the new hostname resolvable globally prior to changing it.
- If you have SSL certificate for new domain name purchased from a certificate authority, you can update certificate files using this article
- On the next step, check
api_hostandhostparameters in/etc/solus/agent.jsonfile on every CR nodes:
# grep host /etc/solus/agent.json
If there is an old hostname, change it to new one and restart solus-agent service to apply changes
# systemctl restart solus-agent
Comments
Please sign in to leave a comment.