16.5. Changing Master and Slave Servers IP Addresses¶
If the master server IP address changes for some reason, you have to additionally configure slave servers registered with it:
On each slave server, open the
/var/opt/pva/agent/etc/vzagent.conf
file, locate the<ns1:address>
and<host>
elements and change the old master server IP address to the new one. For example:<node> <...> <host>10.30.10.101</host> <...> <ns1:address>10.30.10.101</ns1:address> <...> </node>
Restart the
va-agent
service to apply changes:# systemctl restart va-agent
If the IP address of a slave server changes for some reason and you want to keep its VA settings, you have to additionally configure the master server:
On the master server, open the
/var/opt/pva/mn/etc/vzagent.conf
file, locate the corresponding<ns1:address>
and<host>
elements with the old slave server IP address and change it to the new IP address. For example:<node> <...> <host>10.30.10.102</host> <...> <ns1:address>10.30.10.102</ns1:address> <...> </node>
Restart the
va-mn
service to apply changes:# systemctl restart va-mn
Alternatively, you can unregister the slave server from Virtuozzo Automator and re-register it with the new IP address, but in this case VA settings for this server will be lost.