Wednesday, July 22, 2009

Interface type 1 configured from OCR for use as a cluster interconnect

Just my curious when i startup asm/database on rac and see some messages in alert log.
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Interface type 1 eth1 192.168.1.0 configured from OCR for use as a cluster interconnect
Interface type 1 eth0 10.10.10.0 configured from OCR for use as a public interface

that shows oracle rac configured interface subnet at OCR, and asm/database used them...

Name:
oifcfg - Oracle Interface Configuration Tool.

Usage: oifcfg iflist [-p [-n]]
oifcfg setif {-node < nodename > | -global} { < if_name > / < subnet > :< if_type >}...
oifcfg getif [-node < nodename > | -global] [ -if < if_name > [/ < subnet >] [-type < if_type >] ]
oifcfg delif [-node < nodename > | -global] [ < if_name > [/ < subnet > ]]
oifcfg [-help]

< nodename > - name of the host, as known to a communications network
< if_name > - name by which the interface is configured in the system
< subnet > - subnet address of the interface
< if_type > - type of the interface { cluster_interconnect | public | storage }

$ oifcfg getif
eth0 10.10.10.0 global public
eth1 192.168.1.0 global cluster_interconnect
if use "oifcfg getif", and Nothing! ... that means no configured and no see above message in alert log.

by the way, if nothing to show "oifcfg getif" we should set them... because It may make asm/database confuse ;) if uses private ip on both Public Interface and Private Interface.

$ netstat -rn

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1

$ oifcfg setif -global eth0/10.10.10.0:public

$ oifcfg setif -global eth1/192.168.1.0:cluster_interconnect

$ oifcfg getif

eth0 10.10.10.0 global public
eth1 192.168.1.0 global cluster_interconnect

If we have to change IPs on Interface (public or private), and it differences from old networks, don't forget to change... "oifcfg delif", "oifcfg setif" ;)

...Check...

- View the available interface names
$ oifcfg iflist

eth0 10.10.10.0
eth1 192.168.1.0
- View the currently configured interfaces
$ oifcfg getif

eth0 10.10.10.0 global public

eth1 192.168.1.0 global cluster_interconnect

if "the available interface names" differ "the currently configured interfaces", we'll see warning in alert log.
Interface type 1 eth1 192.168.11.0 configured from OCR for use as a cluster interconnect
WARNING 192.168.11.0 could not be translated to a network address error 1
So, don't forget to check your alert log file.

;)

No comments: