Product Documentation

Before starting these steps, ensure no traffic is being sent to the SAKA having its IP Address changed. This process will stop Payara on that node, change the networking configuration on that node, change the firewall configuration on every other node, reboot the node, and afterwards restart Payara on all other nodes. Before starting this process, be sure a plan is pared for restarting each node (one at a time is fine).

To change the IP address after the appliance is in production, perform these tasks:

  1. Login as root into the appliance—either on the console or using Secure Shell (SSH).

  2. Stop Payara with the following:

    service glassfishd stop
  3. Update your DNS master to reflect the new TCP/IP address of the appliance, then propagate it to the network. Verify that the new address is visible using dig on Linux or nslookup on Windows and UNIX-like operating systems. Alternatively (or additionally), update the /etc/hosts file on all SAKA servers in the cluster to update the IP Address for this host.

  4. If using static TCP/IP address—which is strongly recommended—make a copy of the /etc/sysconfig/network-scripts/ifcfg-em1 file (in case it becomes necessary to reverse your changes).

  5. This file may alternatively be called /etc/sysconfig/network-scripts/ifcfg-eth0 depending on the hardware in your appliance.

  6. Edit the ifcfg-eth0 or ifcfg-em1 file with a text editor and modify the GATEWAY, IPADDR, and NETMASK variables with values corresponding to the new TCP/IP address. Save the file.

  7. On all other SAKA servers in the cluster, update the firewall /etc/sysconfig/iptables and update the IP Address in the configuration to match the new IP Address. When finished, restart the firewall to persist the changes: