Change IP address of a PAS cluster

This solution document will guide you what to update if a PAS cluster needs to be moved to new IP addresses.

Please note that this has to be performed on all cluster nodes.

Prereqs

Make sure to have a proper backup of your solution before proceeding.

Make sure the PhenixID Service is stopped on all cluster nodes

cluster.xml

The file is located in <PAS INSTALLATION FOLDER>/classes

Make sure to update the IP addresses.

192.168.0.xxx represent the current node IP address

192.168.0.yyy represent the remote node(s) IP address

<network>
        <public-address>192.168.0.xxx</public-address>
        <port auto-increment="false" port-count="1">5701</port>
        <outbound-ports>
            <ports>0</ports>
        </outbound-ports>
        <join>
            <multicast enabled="false"></multicast>
            <tcp-ip enabled="true">
                <interface>192.168.0.xxx</interface>
                <member-list>
                    <member>192.168.0.yyy</member>
                </member-list>
            </tcp-ip>
            <aws enabled="false"></aws>
        </join>
        <interfaces enabled="true">
            <interface>192.168.0.xxx</interface>
        </interfaces>
    </network>
Click to copy

orientdb-server-config.xml

The file is located in <PAS INSTALLATION FOLDER>/config

Make sure to update the IP addresses.

192.168.0.xxx represent the current node IP address

<listeners>
			<listener ip-address="127.0.0.1" port-range="2424" protocol="binary" socket="default"></listener>
			<listener ip-address="192.168.0.xxx" port-range="2424" protocol="binary" socket="default"></listener>
		</listeners>
Click to copy

hazelcast.xml

This file does not exist in newer PAS installations.

The file is located in <PAS INSTALLATION FOLDER>/classes/orientdb

Make sure to update the IP addresses.

192.168.0.xxx represent the current node IP address

192.168.0.yyy represent the remote node(s) IP address

<network>
        <public-address>192.168.0.xxx</public-address>
        <port auto-increment="false" port-count="1">5701</port>
        <outbound-ports>
            <ports>0</ports>
        </outbound-ports>
        <join>
            <multicast enabled="false"></multicast>
            <tcp-ip enabled="true">
                <interface>192.168.0.xxx</interface>
                <member-list>
                    <member>192.168.0.yyy</member>
                </member-list>
            </tcp-ip>
            <aws enabled="false"></aws>
        </join>
        <interfaces enabled="true">
            <interface>192.168.0.xxx</interface>
        </interfaces>
    </network>
Click to copy

Start script - Windows

Update the registry setting for the windows service by editing

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\phenixid\ImagePath

Make sure -cluster-host represent the new local IP address

Start script - Linux

Make sure to use the new local IP address when starting the server, ex:

<p>sudo ./start-PhenixID.sh -cluster -cluster-host <ip_address_of_local_machine> -cluster-port 47000</ip_address_of_local_machine></p>
Click to copy