IPmanager

How to move IPmanager from one server to another

You may need to move the panel and the license from one server to another when upgrading your hardware or when changing the license version. 

To do so:

  1. Import user data from the old server to the new one.
  2. Assign the software license to the new server. 

Step 1. Import user data

  1. Before you start the import process, you need to activate a separate license for the new server. Follow the installation guide to install and activate a trial version. 
  2. Import data to the new server. 

Import IPmanager files

  1. Install IPmanager on a new server. As the domain name server, select the same one that was selected for IPmanager on the old server. 
  2. Transfer the required settings from the IPmanager configuration file (/usr/local/mgr5/etc/ipmgr.conf) to the new server. We do not recommend to copy the entire configuration file, as it may contain paths that are not on the new server. For example, if servers have different operating systems.
  3. Copy the IPmanager database to the new server. To do so, run the command on the server:

    scp root@<old server IP address>:/usr/local/mgr5/etc/ipmgr.db* /usr/local/mgr5/etc/

Import the DNS server files

If BIND is installed on the servers

  1. Copy the DNS server configuration file to the new server:
    1. CentOS: /etc/named.conf
    2. Debian: /etc/bind/named.conf и /etc/bind/named.conf.options
  2. Copy the domain zone files to the new server:
    1. CentOS: /var/named/*
    2. Debian: /etc/bind/domains
  3. Check the owner of the transferred domain zone files on the new server. If the file owners on the new and old servers do not match, change the owner. For example, in CentOS7, you need to run the following commands:

    chown named:named /var/named/*ip6.arpa
    chown named:named /var/named/domains/*
    chown named:named /var/named/*in-addr.arpa
    service named restart


If PowerDNS is installed on the servers

  1. Transfer the required settings from the PowerDNS configuration file to the new server.
    1. CentOS: /etc/pdns/pdns.conf
    2. Debian: /etc/powerdns/pdns.conf
    We do not recommend to copy the entire configuration file, as it may contain paths that are not on the new server. For example, if servers have different operating systems.
  2. Transfer the PowerDNS database to the new server:
    1. Create a database dump on the old server.

      mysqldump <database name> > <path to the file to which the dump will be written>
      View details
    2. Copy the dump to the new server. To do so, run the command on the server:

      scp root@<old server IP address>:<path to the file to which the dump is written> <path to the file on the new server to which the dump will be copied> 
    3. Deploy the database from the dump on the new server:

      mysql <database name> < <path to the file on the new server to which the dump will be copied>
      View details

Check

  1. Restart IPmanager on the new server

    /usr/local/mgr5/sbin/mgrctl -m ipmgr exit
  2. Make sure that IPmanager works fine.

Step 2. Assign the license to the new server

  1. After you have imported all the users to the new server, log in to the Client area where you ordered the license. 
  2. Delete the trial license from the client area.
  3. Open the configuration form of the commercial license and specify the IP address of the new server.
  4. If you upgrade or change the product version (eg. from ISPmanager 4 to 5 or from Lite to Business) you also need to change the tariff plan in the Client area. For more information about how to do so, please contact your license provider.
  5. Update the license file. Go to  HelpAbout program → click on Update license. Or run the command to update it manually:

    /usr/local/mgr5/sbin/licctl fetch mgrName
    Where