Articles in this section

How to migrate SolusVM 2 Management node to another server?

Applicable to:

  • SolusVM 2

Question

How to migrate SolusVM 2 Management node to another server?

Answer

  1. Create a backup of Management node

  2. Prepare a new server and install SolusVM 2 on it
  3. Connect to the new Management node via SSH
  4. Download the backup(.zst file) created in step 1 from Backup Node
  5. 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: 

  1. Connect to SolusVM 2 Management node via SSH
  2. Update host parameter in /usr/local/solus/config/config.yml file
  3. 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.

  4. If you have SSL certificate for new domain name purchased from a certificate authority, you can update certificate files using this article
  5. On the next step, check api_host and host parameters in /etc/solus/agent.json file 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

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.