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.
- Enable maintenance mode on Active Gateway. Login using security officer and do this step.
- Change local IP address of Active Gateway from HySecure OS console.
- Take SSH access of Active Gateway.
- 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
- Edit hosts file and replace new IP address of primary and VIP of HA cluster. Command is vi /etc/hosts
- Edit "dbinfo.xml" file and replace new HA VIP and save it. Command is vi /home/fes/fescommon/dbinfo.xml
- Reboot Active Gateway. Command is reboot
Standby Gateway
Take SSH access of Standby Gateway and execute below steps.
-
Enable maintenance mode on Standby Gateway. Login using security officer and do this step.
-
Change local IP address of Standby Gateway from HySecure OS console.
-
Take SSH access of Standby Gateway.
-
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
-
Edit hosts file and replace new IP address of Standby and VIP of HA cluster. Command is vi /etc/hosts
-
Edit "dbinfo.xml" file and replace new HA VIP and save it. Command is vi /home/fes/fescommon/dbinfo.xml
-
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.
-
Change local IP address of Real Gateway from HySecure OS console.
-
Take SSH access of Real Gateway.
-
Edit hosts file and replace new IP address of real server and VIP of HA cluster. Command is vi /etc/hosts
-
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.
-
Stop infoAgent service on real server. Command is pkill info
-
Verify that infoAgent service is stop or not on real server. Command is ps ax | grep info
-
Stop FileSync service on real server. Command is pkill File
-
Verify that Filesync service is stop or not on real server. Command is ps ax | grep File
-
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.