Skip to content

How To Change Local IP Address Of HySecure HA Cluster Nodes

Pre-requisite

Take SSH access of all (Active, Standby and Real Server) HySecure Gateways in HA cluster. Take direct SSH of each Gateway. Don't take SSH via HySecure.
Note down the new IP address as well as new virtual IP address for HA cluster.
Take down time for changing VIP of HA cluster.

How to change IP address of HySecure HA cluster node

Active Gateway

Take SSH access of Active Gateway and execute below steps.

  1. Enable maintenance mode on Active Gateway. Login using security officer and do this step.
  2. Change local IP address of Active Gateway from HySecure OS console.
  3. Take SSH access of Active Gateway.
  4. Edit lvs.cf and replace new IP address of primary, backup, real server and VIP, then save this file.
    Command is vi /etc/sysconfig/ha/lvs.cf
  5. Edit hosts file and replace new IP address of primary and VIP of HA cluster. Command is vi /etc/hosts
  6. Edit "dbinfo.xml" file and replace new HA VIP and save it.
    Command is vi /home/fes/fescommon/dbinfo.xml
  7. Reboot Active Gateway.
    Command is reboot

Standby Gateway

Take SSH access of Standby Gateway and execute below steps.

  1. Enable maintenance mode on Standby Gateway. Login using security officer and do this step.

  2. Change local IP address of Standby Gateway from HySecure OS console.

  3. Take SSH access of Standby Gateway.

  4. Edit lvs.cf and replace new IP address of primary, backup and VIP, then save this file.
    Command is vi /etc/sysconfig/ha/lvs.cf

  5. Edit hosts file and replace new IP address of Standby and VIP of HA cluster.
    Command is vi /etc/hosts

  6. Edit "dbinfo.xml" file and replace new HA VIP and save it.
    Command is vi /home/fes/fescommon/dbinfo.xml

  7. Reboot Standby Gateway.

Command is reboot

Real Gateway

Take SSH access of Real Gateway and execute below steps.This is optional Gateway, if you have real server then only do this step.

  1. Change local IP address of Real Gateway from HySecure OS console.

  2. Take SSH access of Real Gateway.

  3. Edit hosts file and replace new IP address of real server and VIP of HA cluster.
    Command is vi /etc/hosts

  4. Edit "dbinfo.xml" file and replace new HA VIP with old VIP, then save this file
    Command is vi /home/fes/fescommon/dbinfo.xml

Active Gateway

Login as security officer using Active Gateway local IP address and disable maintenance mode. Then verify HySecure dash board (management page), it should show running cluster information.

Standby Gateway

Login as security officer using Standby Gateway local IP address and disable maintenance mode. Then verify HySecure dash board, it should show running cluster information.

Real Gateway

Take SSH access of Real Gateway and execute below steps.

  1. Stop infoAgent service on real server.
    Command is pkill info

  2. Verify that infoAgent service is stop or not on real server.
    Command is ps ax | grep info

  3. Stop FileSync service on real server.
    Command is pkill File

  4. Verify that Filesync service is stop or not on real server.
    Command is ps ax | grep File

  5. Start infoAgent service on real server.
    Command is /etc/sysconfig/ha/infoAgent

Now VIP of HySecure HA cluster we well as each node IP address has been changed. User can login into HySecure server using new VIP address. Login as security office into Active Gateway and verify from cluster information that all services of cluster nodes are running as expected. If everything is fine then it is ready for production.