The Integration with IPmanager 6 module is used to combine DCImanager 6 and VMmanager 6 address spaces. The module combines records about physical networks, pools, and blocks of IP addresses, but it does not transfer information about IP address relationships to dedicated servers and virtual machines (VMs). This article describes how to migrate IP address information to the platform that acts as a master during integration.
To migrate IP address information:
- Install and configure the Integration with IPmanager 6 module according to the instructions in the VMmanager 6 or DCImanager 6 documentation.
- On the source server:
- Connect to the server via SSH.
-
Create a database dump file:
docker exec -it mysql bash -c "mysqldump <database> -p\$MYSQL_ROOT_PASSWORD ip ipnet ippool ippool_range userspace >/root/ipmgr.sql"
Comments to the command -
Copy the dump file to the /root directory:
docker cp mysql:/root/ipmgr.sql /root/
- Copy the dump file /root/ipmgr.sql to the master server into the /root directory.
- On the master server:
- Подключитесь к серверу по SSH.
-
Import the data from the dump file:
docker cp /root/ipmgr.sql mysql:/root/
docker exec -it mysql bash -c "mysql <database> -p\$MYSQL_ROOT_PASSWORD"
Comments to the commandsource /root/ipmgr.sql;
-
To ensure that IP addresses, networks and pools appear correctly in the interfaces of both platforms, move them to the public address space:
-
Define the id of the public space:
select id from userspace where is_public=1;
Example of reply+----+ | id | +----+ | 1 | +----+
-
Move the objects to the public space:
update ip set userspace=<public_id>;
update ippool set userspace=<public_id>;
update ipnet set userspace=<public_id>;
Comments to the command
-