Move IPmanager from one server into another

From ISPWiki
Jump to: navigation, search

This article goes you through the steps you need to perform for moving IPmanager from one server into another.

Install IPmanager on a new server. Refer to the article Installation guide

Select the same name server as you use on the old server.For example, if IPmanager on your current server works with named, select named as a name server when installing the panel on the new server.

We do not recommend that you move the whole configuration file from the old serer into a new one. If the servers run different OS, paths that are used in configuration files, may differ. If you use specific configuration for your panel, add missing directives into the configuration file of the control panel on the new server.

IPmanager saves the information about networks and IP addresses in the sqlite database. Move the IPmanager database into the new server.

scp -r root@10.10.10.10:/usr/local/mgr5/etc/ipmgr.db* /usr/local/mgr5/etc/

If Named is used as a name server

Move the named configuration file and zone files

scp -r root@10.10.10.10:/etc/bind/named.conf /etc/named.conf 
scp -r root@10.10.10.10:/etc/bind/* /etc/named/

Please note: servers are running different OS, that's why location of files may vary. If location of files on the servers differ, you should also edit paths to the zone files in named.conf

You can view the paths to name server configuration files and zone files in ipmgr.conf

Restart IPmanager

/usr/local/mgr5/sbin/mgrctl -m ipmgr exit

If PowerDNS is used as a name server

If special configuration of pdns was used, add required directives into pdns.conf. We do not recommend that you copy the whole configuration file - if different OS are used on the servers, paths and access data to mysql will vary.

PowerDNS creates a separate configuration file for each name space. Copy the configuration files of name spaces from the remote server.

scp -r root@10.10.10.10://etc/powerdns/pdns-ns_me.conf //etc/pdns/pdns-ns_me.conf

Note that location of configuration files may vary depending on OS.

Be sure to change the password to mysql in the configuration files, and mysql username, if needed (use sed for bulk change).

PowerDNS creates a separate database for each name space. Note: you should make a dump of the name space database and main powerdns database.

mysqldump --databases dbname1 dbname2 dbname3 powerdns -u pdns -p > /root/dns.sql

Move the damp into the new server.

scp -r root@10.10.10.10:/root/dns.sql /root/dns.sql

Upload the damp on the new server. You can view a username and password to database in the IPmanager configuration file.

mysql -u pdns -p powerdns < /root/dns.sql

Restart IPmanager

/usr/local/mgr5/sbin/mgrctl -m ipmgr exit

If NSD is used as a name server

Move the nsd configuration file and zone files.

You can find location of files in IPmanager configuration files

scp -r root@10.10.10.10://etc/nsd3/* /etc/nsd/

Note: depending on OS, location of files may vary.


If location of files on the servers differ, change paths to the zone files in nsd.conf

Restart IPmanager

/usr/local/mgr5/sbin/mgrctl -m ipmgr exit