You are on page 1of 3

6/15/2019 Document 1003630.

1
Copyright (c) 2019, Oracle. All rights reserved. Oracle Confidential.

Solaris Cluster 3.x and 4.x Changing Public IP Addresses or Logical Host IP in Cluster (Doc ID
1003630.1)

APPLIES TO:

Solaris Cluster - Version 3.0 to 4.3 [Release 3.0 to 4.3]


Oracle Solaris on SPARC (64-bit)
Oracle Solaris on SPARC (32-bit)
Oracle Solaris on x86-64 (64-bit)
Oracle Solaris on x86 (32-bit)

GOAL

This document covers some aspects of how to change public IP addresses in a Oracle Solaris Cluster environment.

The following steps assume only local IP resolution through /etc/hosts. Name services like NIS or DNS will not be
discussed.

SOLUTION

Changing public IP of physical Solaris Cluster node:

Before you start, you need to find out if the IP address you'd like to change is an IP resource used as a logical host or if
the IP address is not configured and not being used by the cluster.

If the IP address is not used by any resource group you may update /etc/hosts for permanent change and reconfigure the
NIC (network interface card) manually using ifconfig command.

Below is an example:

# ifconfig -a
lo0: flags=1000849< UP,LOOPBACK,RUNNING,MULTICAST,IPv4 > mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
hme0: flags=1000843< UP,BROADCAST,RUNNING,MULTICAST,IPv4 > mtu 1500 index 2
inet 129.156.50.95 netmask ffffff00 broadcast 129.156.50.255
ether X:X:XX:XX:XX:XX

# ifconfig hme0 down

# ifconfig hme0 129.156.60.34 netmask + broadcast + up

However, changing an IP resource in the cluster needs the following additional steps to be considered.

1. Which resource group is hosting the IP resource?


2. Are there any dependencies set up?
3. Do I need another IPMP group due to a different subnet?

Changing public IP of logical host IP of Solaris Cluster node:

1. Determine resource group, resource, and IP address you wish to change.

2. Bring the resource group offline and disable the resource.

3. Verify the NIC is down and the new IP address is not used otherwise.

4. Update /etc/hosts on all cluster nodes and clients.

5. Switch the resource group online.

6. Verify ifconfig and cluster status.


https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=4wtdtlhwc_4&id=1003630.1 1/3
6/15/2019 Document 1003630.1

Example:

Determining the resource group, resource, and IP address you wish to change (in this case showing resource group
oracle-rg, resource oracle-rs and IP of 10.16.4.125).

From the (SC 3.1) scstat -g output:

Resource: oracle-rs node1 Online Online - LogicalHostname online.


Resource: oracle-rs node2 Offline Offline

For SC3.2 and later:

# clrg status
# clrs status

From the scrgadm -pvv output:

(oracle-rg:oracle-rs:HostnameList) Res property value: oracle-rs

For SC3.2 and later:

# clrg show -v <RG_name>


# clrs show -v <LH_rs_name>

From the Internet host table /etc/hosts:

10.16.4.125 oracle

From the ifconfig -a output:

hme3:1: flags=1040843< UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4 > mtu 1500 index 3


inet 10.16.4.125 netmask ffffff00 broadcast 10.16.4.255

Switch resourcegroup offline (SC 3.1)

# scswitch -F -g oracle-rg

SC 3.2 or later:

# clrg offline oracle-rg

Disable the Resource (SC 3.1)

# scswitch -n -j oracle-rs

SC 3.2 or later:

# clrs disable oracle-rs

Now you may update /etc/hosts on all cluster nodes and clients

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=4wtdtlhwc_4&id=1003630.1 2/3
6/15/2019 Document 1003630.1

Bring the RG back online. (SC 3.1)

# scswitch -Z -g oracle-rg

SC 3.2 or later:

# clrg online -eM oracle-rg

Check status using scstat (clrs status) and ifconfig -a to verify everything is back up as expected.

Note: If the IP address you'd like to change is within a different subnet, you will need to add an additional IPMP group
as well if it does not already exist.

Still have questions, consider posting to the Solaris Cluster Community.

Didn't find what you are looking for?

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=4wtdtlhwc_4&id=1003630.1 3/3

You might also like