Metlink:How to Modify Public Network Information including VIP in Crs
Applies to:
Oracle Server - Enterprise Edition - Version 10.1.0.2 to 11.2.0.0 [Release 10.1 to 11.2]Information in this document applies to any platform.
Purpose
The purpose of this note is to illustrate how to change a public hostname, public IP, a Virtual IP Address (VIP), VIP hostname or other VIP attributes in an Oracle Clusterware/Grid Infrastructure environment.
Scope
Oracle Database 10g and 11g use VIPs (Virtual IP) in clustered environments for clients to connect to the database. These VIPs are static IP addresses associated with (virtual) hostnames and resolved through DNS (except when using 11gR2 GNS).
During the installation of the Oracle Clusterware users are prompted to enter a Virtual IP and Virtual hostname for each of the node in the cluster. These are stored within the OCR (Oracle Cluster Registry) and different components within the HA framework depend on these VIPs. If for some reason the need arises to change either the VIP, the VIP hostname, or the subnet, netmask etc, this procedure should be followed.
Details
Case I. Changing public hostname
Public hostname is recorded in OCR, it is entered during installation phase. It can not be modified after the installation. The only way to modify public hostname is by deleting the node, then add the node back with a new hostname, or reinstall the clusterware.
Case II. Changing public IP only without changing interface, subnet or netmask
If the change is only public IP address and the new ones are still in the same subnet, nothing needs to be done on clusterware layer, all changes need to be done at OS layer to reflect the change.
1. Shutdown Oracle Clustereware stack
2. Modify the IP address at network layer, DNS and /etc/hosts file to reflect the change
3. Restart Oracle Clusterware stack
Case III. Changing public network interface, subnet or netmask
If the change involves different subnet(netmask) or interface, delete the existing interface information from OCR and add it back with the correct information is required. In the example here, the subnet is changed from 10.2.156.0 to 10.2.166.0 via two separate commands - first a 'delif' followed by a 'setif':
% $CRS_HOME/bin/oifcfg/oifcfg setif -global
For example:
% $CRS_HOME/bin/oifcfg delif -global eth0/10.2.156.0
% $CRS_HOME/bin/oifcfg setif -global eth0/10.2.166.0:public
Make the change at OS layer and restart Oracle Clusterware.
Once public network is changed, its associated VIP and SCAN VIP are also required to change, refer to CASE IV and CASE V.
Case IV. Changing VIPs associated with public network change
Planning for VIP changes
In general, a complete outage is only required for pre-10.2.0.3 release. From 10.2.0.3 onwards, the ASM/database instance dependency on the VIP resource is removed, so the VIP could be modified without having to take down the ASM/database instance, only client connections to the database will be affected when VIP is down. If the modification is a node specific, then only connection to that node will be affected during the time of change.
Please follow Case III to ensure public network changes are made first.
Gathering Current VIP Configuration
1. Gather the existing setup
for 10g and 11gR1, as Oracle Clusterware owner:
eg:
$ srvctl config nodeapps -n racnode1 -a
VIP exists.: /racnode1-vip/101.17.80.184/255.255.254.0/eth1
for 11gR2, as Grid Infrastructure owner:
eg:
$ srvctl config nodeapps -a
Network exists: 1/101.17.80.0/255.255.254.0/eth1, type static
VIP exists: /racnode1-vip/101.17.80.184/101.17.80.0/255.255.254.0/eth1, hosting node racnode1
VIP exists: /racnode2-vip/101.17.80.186/101.17.80.0/255.255.254.0/eth1, hosting node racnode2
2. Verify VIP status
$ crs_stat -t
11.2:
$ crsctl stat res -t
- it should show VIPs are ONLINE
$ ifconfig -a
(netstat -in for HP and ipconfig /all for Windows)
- VIP logical interface is bound to the public network interface
Stopping Resources
3. Stop the nodeapps resources (and all dependent resources ASM/DB only if required):
10g and 11gR1, as Oracle Clusterware owner:
$ srvctl stop asm -n
$ srvctl stop nodeapps -n
eg,
$ srvctl stop instance -d RACDB -i RACDB1
$ srvctl stop asm -n racnode1
$ srvctl stop nodeapps -n racnode1
11gR2, as Grid Infrastructure owner:
$ srvctl stop vip -n
eg,
$ srvctl stop instance -d RACDB -n racnode1
$ srvctl stop vip -n racnode1 -f
PRCR-1014 : Failed to stop resource ora.racnode1.vip
PRCR-1065 : Failed to stop resource ora.racnode1.vip
CRS-2529: Unable to act on 'ora.racnode1.vip' because that would require stopping or relocating 'ora.LISTENER.lsnr', but the force option was not specified
...
4. Verify VIP is now OFFLINE and the interface is no longer bound to the public network interface
$ ifconfig -a
(netstat -in for HP and ipconfig /all for windows)
Modifying VIP and Its Associated Attributes
5. Determine the new VIP IP/subnet/netmask or VIP hostname, make the network change on OS first, ensure the new VIP is registered in DNS or modified in /etc/hosts (for Unix/Linux) and \WINDOWS\System32\drivers\etc\hosts file (for Windows). If the network interface is changed, ensure the new interface is available on the server before proceeding with the modification.
New VIP is: 110.11.70.11 racnode1-nvip
new subnet is 110.11.70.0
new netmask is 255.255.255.0
new interface is eth2
6. Modify the VIP resource, as root user:
eg:
# srvctl modify nodeapps -n racnode1 -A racnode1-nvip/255.255.255.0/eth2
* A special case for 11gR2 modifying the VIP hostname only without changing the IP address.
If IP address is not changed, above modify command will not change the USR_ORA_VIP value in 'crsctl stat res ora.racnode1.vip -p' output. To workaround:
1. modify VIP to use another valid hostname, for example node2 VIP host:
# srvctl modify nodeapps -n racnode1 -A racnode2-vip/255.255.255.0/eth2
2. modify VIP again to use the new VIP hostname
# srvctl modify nodeapps -n racnode1 -A racnode1-nvip/255.255.255.0/eth2
3. Verify the changes for USR_ORA_VIP field:
# crsctl stat res ora.racnode1.vip -p
As administrator user or software install user:
> srvctl modify nodeapps -n racnode1 -A 110.11.70.11/255.255.255.0/"Local Area Connection 1"
Note 2: Starting with 11.2, the VIP depends on network resource (ora.net1.network), the OCR only records the VIP hostname or the IP address associated with the VIP resource. The network attributes (subnet/netmask) is recorded with the network resource.
From 11.2.0.2 onwards, if only subnet/netmask change is required, network resource can be modified directly via srvctl modify network command.
as root user:
# srvctl modify network -k
eg:
# srvctl modify network -k 1 -S 110.11.70.0/255.255.255.0/eth2
There is no need to modify VIP or SCAN if other attributes are not changed.
7. Verify the change
$ srvctl config nodeapps -a (11gR2)
eg:
$ srvctl config nodeapps -n racnode1 -a
VIP exists.: /racnode1-nvip/110.11.70.11/255.255.255.0/eth2
Restarting Resources
8. Start the nodeapps and the other resources
10g and 11gR1, as Oracle Clusterware owner:
$ srvctl start asm -n
$ srvctl start instance -d
eg:
$ srvctl start nodeapps -n racnode1
$ srvctl start asm -n racnode1
$ srvctl start instance -d RACDB -i RACDB1
11gR2, as Grid Infrastructure owner:
$ srvctl start instance -d
eg,
$ srvctl start vip -n racnode1
$ srvctl start instance -d RACDB -n racnode1
9. Verify the new VIP is ONLINE and bind to the public network interface
$ ifconfig -a
(netstat -in for HP or ipconfig /all for windows)
10. Repeat the same steps for the rest nodes in the cluster only if the similar change is required.
Others
11. Modify listener.ora, tnsnames.ora and LOCAL_LISTENER/REMOTE_LISTENER parameter to reflect the VIP change if necessary.
Case V. Change SCAN VIP associated with public network change
With Grid Infrastructure 11gR2, SCAN and SCAN VIP are introduced for client connections. To modify the SCAN VIP, please refer to
Note 952903.1 How to update the IP address of the SCAN VIP resources (ora.scan
Note 972500.1 How to Modify SCAN Setting or SCAN Listener Port after Installation
References
NOTE:283684.1 - How to Modify Private Network Information in Oracle ClusterwareNOTE:952903.1 - How to update the IP address of the SCAN VIP resources (ora.scan.vip)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/13750068/viewspace-753056/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle RAC修改public, VIP, SCAN IPOracle
- How to Dump Redo Log File Information --metalinkORM
- rac 新增第二public ip 和 vip
- Warning: Cannot modify header information - headers already sent by (output started at file_path:line)HeaderORM
- 論文閱讀 Exploring Temporal Information for Dynamic Network EmbeddingORM
- How to link multiple docker-compose services via networkDocker
- Oracle 12. 2 RAC public IP與vip 互換方法Oracle
- 論文解讀(LINE)《LINE: Large-scale Information Network Embedding》ORM
- [論文閱讀筆記] Adversarial Mutual Information Learning for Network Embedding筆記ORM
- 論文閱讀筆記:LINE: Large-scale Information Network Embedding筆記ORM
- 11g RAC 修改PUBLIC-IP、VIP、PRIV-IP、SCAN-IP
- QSAN A Quantum-probability based Signed Attention Network for Explainable False Information Detection(CIKM20)AIFalseORM
- CRS-0019 CRS-0014 LFI-00142
- Check the existence of public synonyms Remove the public synonymsREM
- CRS-4124: Oracle High Availability Services startup failed. CRS-4000OracleAI
- The Information Network:2021年全球汽車半導體儲存器市場 美光份額高達55%ORM
- TestFlight Public Link
- Navigating Kubernetes Certification: CKAD vs. CKA vs. CKS, Including KCNA and KCSA
- mysql alter modify 和 change的區別MySql
- Tree – Information TheoryORM
- public interface View介面和public interface ViewResolver介面介紹View
- solaris下清除crs的方法
- 11.2.0.1.0 RAC啟動使用root使用者啟動crs報錯CRS-4535
- How to ssh
- 2.2.4.4 Grants to PUBLIC in a CDB
- public-image-mirror
- ulimit: core file size: cannot modify limit: Operation not permittedMIT
- CentOS 7.5 modify the sshd port with SElinux and Firewalld Service runningCentOSLinux
- [Information Security] What is WEPORM
- Oracle 12.2 RAC修改public ip address或public ip(subnet (netmask) or interface)Oracle
- RAC 管理(crs_stat、crsctl、srvctl)
- VIP影片解析
- parameter hj8828vip installed Oracle h518vip onOracleH5
- 資料庫中modify和change的區別資料庫
- How to find dependency
- [20190507]crs_stat與crsctl.txt
- System Volume Information是什麼檔案 System Volume Information可以刪除嗎ORM
- keepalived(二)vip漂移
- rac vip failback issueAI