Private IP on any node can be changed just by stopping and starting clusterware on that node when there is no change in the network interface,subnet and netmask .
- Get the current
configuration details using oifcfg command .
[root@rac1 bin]# ./oifcfg getif
eth1 192.168.56.0
global public
eth2 192.168.10.0
global cluster_interconnect,asm
- We can view the network
interfaces known to OS using the oifcfg clusterware command or ifconfig OS
command .
[root@rac1 bin]# ./oifcfg iflist -p
-n -hdr
INTERFACE_NAME SUBNET TYPE NETMASK
eth1 192.168.56.0 PRIVATE 255.255.255.0
eth2 192.168.10.0 PRIVATE 255.255.255.0
eth2 169.254.0.0 UNKNOWN 255.255.0.0
ifconfig –a
eth2 Link encap:Ethernet HWaddr 08:00:27:DC:F8:FA
inet addr:192.168.10.101 Bcast:192.168.10.255 Mask:255.255.255.0
inet6 addr:
fe80::a00:27ff:fedc:f8fa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:18123 errors:0 dropped:0
overruns:0 frame:0
TX packets:13716 errors:0 dropped:0
overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:18826256 (17.9 MiB) TX bytes:11631496 (11.0 MiB)
eth2:1 Link encap:Ethernet HWaddr 08:00:27:DC:F8:FA
inet addr:169.254.93.115 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
- Private IP hostname is no where
saved in OCR or Profiles.xml file from 11gr2 . Only Private IP subnet is
stored in cluster configuration .
#hosts
private
192.168.10.101
rac1-priv.localdomain rac1-priv
192.168.10.102
rac2-priv.localdomain rac2-priv
- Stop Cluster on Node where
Private IP has to be changed without change in subnet , network interface or
netmask .
[root@rac1 bin]# ./crsctl stop crs
CRS-2791: Starting shutdown
of Oracle High Availability Services-managed resources on 'rac1'
CRS-2673: Attempting to stop
'ora.crsd' on 'rac1'
CRS-2790: Starting shutdown of
Cluster Ready Services-managed resources on server 'rac1'
CRS-2673: Attempting to stop
'ora.cdbrac.db' on 'rac1'
CRS-2673: Attempting to stop
'ora.qosmserver' on 'rac1'
CRS-2673: Attempting to stop
'ora.chad' on 'rac1'
CRS-2673: Attempting to stop
'ora.chad' on 'rac2'
CRS-2677: Stop of 'ora.cdbrac.db'
on 'rac1' succeeded
CRS-2673: Attempting to stop
'ora.FRA.dg' on 'rac1'
CRS-2673: Attempting to stop
'ora.DATA.dg' on 'rac1'
CRS-2673: Attempting to stop
'ora.LISTENER.lsnr' on 'rac1'
<truncated output >
- Network interface eth2 on
node1 is private interface with IP 192.168.10.101 with netmask
255.255.255.0
ifconfig –a
eth2 Link encap:Ethernet HWaddr 08:00:27:DC:F8:FA
inet addr:192.168.10.101 Bcast:192.168.10.255 Mask:255.255.255.0
inet6 addr:
fe80::a00:27ff:fedc:f8fa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:18123 errors:0 dropped:0
overruns:0 frame:0
TX packets:13716 errors:0 dropped:0
overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:18826256 (17.9 MiB) TX bytes:11631496 (11.0 MiB)
[root@rac1 bin]# ./oifcfg getif
eth1 192.168.56.0
global public
eth2 192.168.10.0
global cluster_interconnect,asm
- Lets change the IP of eth2
interface from 192.168.10.101 to
192.168.10.103, to make the changes effect restart the network service on
the node and use the ifconfig command to check whether the change is
reflecting .
[root@rac1 bin]# service network
restart
Shutting down loopback
interface:
[ OK ]
Bringing up loopback
interface:
[ OK ]
Bringing up interface
Auto_eth1: Active connection state:
activated
Active connection path:
/org/freedesktop/NetworkManager/ActiveConnection/12
[ OK ]
Bringing up interface
Auto_eth2: Active connection state:
activated
Active connection path:
/org/freedesktop/NetworkManager/ActiveConnection/13
[ OK ]
Bringing up interface
Auto_eth3: Active connection state:
activated
Active connection path:
/org/freedesktop/NetworkManager/ActiveConnection/14
[ OK ]
- I can see the IP of eth2
interface has been changed to 192.168.10.103
Ifconfig -a
eth2 Link encap:Ethernet HWaddr 08:00:27:DC:F8:FA
inet addr:192.168.10.103 Bcast:192.168.10.255 Mask:255.255.255.0
inet6 addr:
fe80::a00:27ff:fedc:f8fa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:103566 errors:0 dropped:0
overruns:0 frame:0
TX packets:69055 errors:0 dropped:0
overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:96636057 (92.1 MiB) TX bytes:43827320 (41.7 MiB)
- Update the Private IP in
/etc/hosts on all the nodes .
Cat /etc/hosts
#hosts private
192.168.10.103
rac1-priv.localdomain rac1-priv
192.168.10.102 rac2-priv.localdomain
rac2-priv
- Start CRS on node .
[root@rac1 bin]# ./crsctl start crs
CRS-4123: Oracle High Availability
Services has been started.
[root@rac1 bin]#
- From the below output i can
see the HAIP has been linked locally on the private IP .
eth2 Link encap:Ethernet HWaddr 08:00:27:DC:F8:FA
inet addr:192.168.10.103 Bcast:192.168.10.255 Mask:255.255.255.0
inet6 addr:
fe80::a00:27ff:fedc:f8fa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:106706 errors:0 dropped:0
overruns:0 frame:0
TX packets:73184 errors:0 dropped:0
overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:98982320 (94.3 MiB) TX bytes:48121146 (45.8 MiB)
eth2:1 Link encap:Ethernet HWaddr 08:00:27:DC:F8:FA
inet addr:169.254.93.115 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
[root@rac1 bin]# ./oifcfg getif
eth1 192.168.56.0
global public
eth2 192.168.10.0
global cluster_interconnect,asm
[root@rac1 bin]#
[root@rac1 bin]# ps -ef|grep smon
root 20196
1 7 00:32 ? 00:00:13
/u01/app/12.2.0.1/grid/bin/osysmond.bin
oracle 21481
1 0 00:33 ? 00:00:00 asm_smon_+ASM1
oracle 22127
1 0 00:34 ? 00:00:00 ora_smon_cdbrac1
root 22308
5396 0 00:34 pts/0 00:00:00 grep smon
[root@rac1 bin]#
PLEASE NOTE : We
have not made any changes to the cluster configuration other than stopping and starting
the CRS . When there is no change to the
network interface or subnet or netmask ,stop and start of crs will do the
needful .
No comments:
Post a Comment