Oracle Clusterware: Modify Interconnect Subnet with oifcfg
Understanding oifcfg for Changing Oracle Cluster Interconnect Subnet
The oifcfg Oracle Clusterware commands presented involve modifying the Oracle Clusterware private interconnect subnet.What follows is a breakdown of their purpose, usage, and key points:
Make a note of the interface name (eth1 in the following example), then aun the following:
Sample SQL Command
1oifcfg delif -global eth1
2
3oifcfg setif -global eth1/<your new subnet>:cluster_interconnect
Command Overview
While not directly an Oracle Database SQL command, the oifcfg commands presented involve modifying the Oracle Clusterware private interconnect subnet. Here's a breakdown of their purpose, usage, and key points:
Purpose:
These commands work together to modify the subnet used by the private interconnect within an Oracle Clusterware environment. This process requires careful execution to avoid disrupting cluster communication.
Breakdown:
- Note the interface name: This is crucial for identifying the correct interface currently used for the interconnect. Look for an interface with an IP address in the private subnet range (e.g., 10.0.0.0/8 or 192.168.0.0/16).
oifcfg delif -global eth1: This command removes the specified interface (e.g.,eth1) from the global cluster configuration.oifcfg setif -global eth1/<your new subnet>:cluster_interconnect: This command adds the same interface back to the global configuration but with a new IP address and subnet (replace<your new subnet>with the desired subnet and ensure it's compatible with your cluster configuration).
Key points:
- Changing the private interconnect subnet requires meticulous planning, testing, and downtime management.
- Ensure compatibility between the chosen subnet and other cluster components.
- Always back up your configuration before making changes.
- Run these commands as
rootdue to their system-wide impact. - Verify cluster functionality and communication after applying the changes.
Insights and explanations:
- Deleting the interface (
oifcfg delif) temporarily disconnects the cluster from the old subnet, so proper planning and coordination with other administrators are crucial. - The new subnet specified in
oifcfg setifshould match the configuration of other cluster nodes and any dependent resources. - Consider testing these changes in a non-production environment before applying them to critical systems.
- Consult the official Oracle documentation for detailed information on managing private interconnects and using
oifcfg.
Additional notes:
- Remember that these commands represent just part of the subnet change process. Additional configuration steps might be necessary depending on your specific setup.
- Always document the entire change process and rollback procedures for future reference.
Posts in this series
- Managing Oracle Clusterware CRS
- Oracle Clusterware: Manage Node Apps with srvctl
- Oracle Clusterware: srvctl start asm and srvctl stop asm
- Oracle srvctl Start and Stop Database in Clusterware
- Starting and Stopping Oracle Database Instances with SRVCTL
- Oracle srvctl config nodeapps Command in Clusterware
- Oracle Clusterware: Modify VIP Address and Network Interface
- Oracle Clusterware: Modify Interconnect Subnet with oifcfg
- Oracle oifcfg getif: Identify Cluster Interconnect Subnet
- Oracle srvctl disable database: Prevent Auto Startup
- Oracle Clusterware ocrcheck: Verify OCR Health
- Oracle crsctl query css votedisk Command Explained