11gr2 rac改IP系列之四:修改私網IP為其它IP
--------------------------
修改私有ip為其它網段IP。
-----------------修改前:
192.168.58.1 bys1-priv.bys.com bys1-priv
192.168.58.2 bys2-priv.bys.com bys2-priv
-----------------修改後:
192.168.59.1 bys1-priv.bys.com bys1-priv
192.168.59.2 bys2-priv.bys.com bys2-priv
參考MOS文件:How to Modify Private Network Information in Oracle Clusterware (文件 ID 283684.1)
從11.2 Grid Infrastructure開始,私有網路配置儲存在OCR和gpnp配置檔案中。 如果專用網路不可用或其定義不正確,CRSD程式將不會啟動,並且後續不能對OCR進行更改。 注意,不支援手動修改gpnp配置檔案。
--------目錄
1.備份gpnp配置檔案
2.檢視當前叢集是執行狀態及OS層面網路卡資訊
3.檢視並修改私網配置資訊--單個節點進行
4.關閉CRS--兩個節點均進行
5.OS層面修改IP並修改/etc/hosts中記錄(兩個節點均修改)並測通
6.重新啟動叢集
7.刪除原有私網資訊並驗證
8.檢查叢集狀態
---------------------------
###########################
---------------------------
具體步驟:--僅顯示節點1,節點2同樣步驟。
1.備份gpnp配置檔案
2.檢視當前叢集是執行狀態及OS層面網路卡資訊
###############
3.檢視並修改私網配置資訊--單個節點進行
---
##############
4.關閉CRS--兩個節點均進行
[root@bys1 ~]# crsctl stop crs
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'bys1'
………………
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'bys1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
[root@bys1 ~]# crsctl disable crs
CRS-4621: Oracle High Availability Services autostart is disabled.
###############
5.OS層面修改IP並修改/etc/hosts中記錄(兩個節點均修改)並測通
-----------------修改前:
192.168.58.1 bys1-priv.bys.com bys1-priv
192.168.58.2 bys2-priv.bys.com bys2-priv
-----------------修改後:
192.168.59.1 bys1-priv.bys.com bys1-priv
192.168.59.2 bys2-priv.bys.com bys2-priv
[root@bys2 network-scripts]# ifconfig
eth1 Link encap:Ethernet HWaddr 08:00:27:4B:EE:4E
inet addr:192.168.59.2 Bcast:192.168.59.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe4b:ee4e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13462 errors:0 dropped:0 overruns:0 frame:0
TX packets:15323 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6890589 (6.5 MiB) TX bytes:11488864 (10.9 MiB)
[root@bys2 network-scripts]# ping bys1-priv
PING bys1-priv.bys.com (192.168.59.1) 56(84) bytes of data.
64 bytes from bys1-priv.bys.com (192.168.59.1): icmp_seq=1 ttl=64 time=2.85 ms
###############
6.重新啟動叢集
[root@bys2 ~]# crsctl enable crs
CRS-4622: Oracle High Availability Services autostart is enabled.
[root@bys2 ~]# crsctl start crs
CRS-4123: Oracle High Availability Services has been started.
###############
7.刪除原有私網資訊並驗證
###############
8.檢查叢集狀態
修改私有ip為其它網段IP。
-----------------修改前:
192.168.58.1 bys1-priv.bys.com bys1-priv
192.168.58.2 bys2-priv.bys.com bys2-priv
-----------------修改後:
192.168.59.1 bys1-priv.bys.com bys1-priv
192.168.59.2 bys2-priv.bys.com bys2-priv
參考MOS文件:How to Modify Private Network Information in Oracle Clusterware (文件 ID 283684.1)
從11.2 Grid Infrastructure開始,私有網路配置儲存在OCR和gpnp配置檔案中。 如果專用網路不可用或其定義不正確,CRSD程式將不會啟動,並且後續不能對OCR進行更改。 注意,不支援手動修改gpnp配置檔案。
--------目錄
1.備份gpnp配置檔案
2.檢視當前叢集是執行狀態及OS層面網路卡資訊
3.檢視並修改私網配置資訊--單個節點進行
4.關閉CRS--兩個節點均進行
5.OS層面修改IP並修改/etc/hosts中記錄(兩個節點均修改)並測通
6.重新啟動叢集
7.刪除原有私網資訊並驗證
8.檢查叢集狀態
---------------------------
###########################
---------------------------
具體步驟:--僅顯示節點1,節點2同樣步驟。
1.備份gpnp配置檔案
$ cd $GRID_HOME/gpnp/<hostname>/profiles/peer/
---
[grid@bys1 ~]$ cd /u01/11.2.0/grid/gpnp/bys1/profiles/peer/
[grid@bys1 peer]$ ls
pending.xml profile.old profile_orig.xml profile.xml
[grid@bys1 peer]$ cp profile.xml profile.xmlbak
[grid@bys2 ~]$ cd /u01/11.2.0/grid/gpnp/bys2/profiles/peer/
[grid@bys2 peer]$ cp profile.xml profile.xmlbak
2.檢視當前叢集是執行狀態及OS層面網路卡資訊
[grid@bys2 peer]$ crsctl stat res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE bys1
ONLINE ONLINE bys2
ora.LISTENER.lsnr
ONLINE ONLINE bys1
ONLINE ONLINE bys2
ora.asm
ONLINE ONLINE bys1 Started
ONLINE ONLINE bys2 Started
ora.gsd
OFFLINE OFFLINE bys1
OFFLINE OFFLINE bys2
ora.net1.network
ONLINE ONLINE bys1
ONLINE ONLINE bys2
ora.ons
ONLINE ONLINE bys1
ONLINE ONLINE bys2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE bys1
ora.bys1.vip
1 ONLINE ONLINE bys1
ora.bys2.vip
1 ONLINE ONLINE bys2
ora.bysrac.db
1 ONLINE ONLINE bys1 Open
2 OFFLINE OFFLINE Instance Shutdown
ora.cvu
1 ONLINE ONLINE bys2
ora.oc4j
1 ONLINE ONLINE bys2
ora.scan1.vip
1 ONLINE ONLINE bys1
###############
3.檢視並修改私網配置資訊--單個節點進行
---
[grid@bys1 peer]$ oifcfg getif
eth0 192.168.57.0 global public
eth1 192.168.58.0 global cluster_interconnect
[grid@bys1 peer]$ oifcfg iflist
eth0 192.168.57.0
eth1 192.168.58.0
eth1 169.254.0.0
[grid@bys1 peer]$ oifcfg setif -global eth1/192.168.59.0:cluster_interconnect
[grid@bys1 peer]$ oifcfg getif
eth0 192.168.57.0 global public
eth1 192.168.58.0 global cluster_interconnect
eth1 192.168.59.0 global cluster_interconnect
##############
4.關閉CRS--兩個節點均進行
[root@bys1 ~]# crsctl stop crs
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'bys1'
………………
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'bys1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
[root@bys1 ~]# crsctl disable crs
CRS-4621: Oracle High Availability Services autostart is disabled.
###############
5.OS層面修改IP並修改/etc/hosts中記錄(兩個節點均修改)並測通
-----------------修改前:
192.168.58.1 bys1-priv.bys.com bys1-priv
192.168.58.2 bys2-priv.bys.com bys2-priv
-----------------修改後:
192.168.59.1 bys1-priv.bys.com bys1-priv
192.168.59.2 bys2-priv.bys.com bys2-priv
[root@bys2 network-scripts]# ifconfig
eth1 Link encap:Ethernet HWaddr 08:00:27:4B:EE:4E
inet addr:192.168.59.2 Bcast:192.168.59.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe4b:ee4e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13462 errors:0 dropped:0 overruns:0 frame:0
TX packets:15323 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6890589 (6.5 MiB) TX bytes:11488864 (10.9 MiB)
[root@bys2 network-scripts]# ping bys1-priv
PING bys1-priv.bys.com (192.168.59.1) 56(84) bytes of data.
64 bytes from bys1-priv.bys.com (192.168.59.1): icmp_seq=1 ttl=64 time=2.85 ms
###############
6.重新啟動叢集
[root@bys2 ~]# crsctl enable crs
CRS-4622: Oracle High Availability Services autostart is enabled.
[root@bys2 ~]# crsctl start crs
CRS-4123: Oracle High Availability Services has been started.
###############
7.刪除原有私網資訊並驗證
[grid@bys1 ~]$ oifcfg getif
eth0 192.168.57.0 global public
eth1 192.168.58.0 global cluster_interconnect
eth1 192.168.59.0 global cluster_interconnect
[grid@bys1 ~]$ oifcfg delif -global eth1/192.168.58.0:cluster_interconnect
[grid@bys1 ~]$ oifcfg getif
eth0 192.168.57.0 global public
eth1 192.168.59.0 global cluster_interconnect
###############
8.檢查叢集狀態
[grid@bys1 ~]$ gpnptool get
Warning: some command line parameters were defaulted. Resulting command line:
/u01/11.2.0/grid/bin/gpnptool.bin get -o-
<?xml version="1.0" encoding="UTF-8"?><gpnp:GPnP-Profile Version="1.0" xmlns="http://www.grid-pnp.org/2005/11/gpnp-profile" xmlns:gpnp="http://www.grid-pnp.org/2005/11/gpnp-profile" xmlns:orcl="http://www.oracle.com/gpnp/2005/11/gpnp-profile" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.grid-pnp.org/2005/11/gpnp-profile gpnp-profile.xsd" ProfileSequence="8" ClusterUId="405460e2b8c24fd8bf9acebf33654b8b" ClusterName="bysrac" PALocation=""><gpnp:Network-Profile><gpnp:HostNetwork id="gen" HostName="*"><gpnp:Network id="net1" IP="192.168.57.0" Adapter="eth0" Use="public"/><gpnp:Network id="net4" Adapter="eth1" IP="192.168.59.0" Use="cluster_interconnect"/></gpnp:HostNetwork></gpnp:Network-Profile><orcl:CSS-Profile id="css" DiscoveryString="+asm" LeaseDuration="400"/><orcl:ASM-Profile id="asm" DiscoveryString="/dev/asm*" SPFile="+DATA/bysrac/asmparameterfile/registry.253.927488691"/><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><ds:Reference URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"> <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="gpnp orcl xsi"/></ds:Transform></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>TQTgFHyy0z8ROUI6tfleTxsQwdY=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>F3N8CS7gBNJXMfMHZuP/FckLtynkybtNFq3TbHuU9yrZEuDuzMA1EtMmId7W7YPDS1wBZ6Qrh4hKMDuXfWTSR6xHZQ9iFM6mC6vHTa13+7AGYopoat5iXnGd050jj/w/VMhiYUQuP5g5O28SUu6lHRlhzpnPZLUkyhKvmhRdpIM=</ds:SignatureValue></ds:Signature></gpnp:GPnP-Profile>
Success.
[grid@bys1 ~]$ ifconfig
eth1 Link encap:Ethernet HWaddr 08:00:27:64:B0:1C
inet addr:192.168.59.1 Bcast:192.168.59.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe64:b01c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:21137 errors:0 dropped:0 overruns:0 frame:0
TX packets:18486 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14069238 (13.4 MiB) TX bytes:11326935 (10.8 MiB)
eth1:1 Link encap:Ethernet HWaddr 08:00:27:64:B0:1C
inet addr:169.254.167.252 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
相關文章
- RAC修改IP地址
- Oracle RAC修改Scan IP,Public IP的方法Oracle
- 11g RAC 修改PUBLIC-IP、VIP、PRIV-IP、SCAN-IP
- Oracle RAC修改public, VIP, SCAN IPOracle
- Oracle 12.2 RAC修改public ip address或public ip(subnet (netmask) or interface)Oracle
- 【RAC】如何修改SCAN IP的IP地址、名稱、埠等資訊
- win10怎麼修改ip_WIN10如何改ip地址Win10
- RAC 增加SCAN IP
- 【RAC】Oracle rac修改IP地址及埠號命令參考Oracle
- Oracle 11gr2修改RAC叢集的scan ip,並處理ORA-12514問題Oracle
- Centos 7 檢視本機IP 編輯IP 修改ipCentOS
- 內網IP/外網IP/NAT之間的關係-VeCloud內網Cloud
- 更改rac scanIP IP的地址
- Linux修改IP永久生效Linux
- 彈性公網IP(Elastic IP,EIP)AST
- gitlab伺服器IP調整後修改domian或ipGitlab伺服器
- 系列之TCP/IP協議-概述(001)TCP協議
- 系列TCP/IP協議-靜態IP選路(007)TCP協議
- 修改IP地址選擇高質量IP波段選用技巧!
- w10怎麼改ip地址_win10系統如何改IP地址Win10
- ubuntu系統 IP地址修改Ubuntu
- ubuntu22.04修改IP地址Ubuntu
- CentOS8修改IP地址CentOS
- rac 新增第二public ip 和 vip
- (轉)芝麻代理趣解:什麼是動態ip、內網IP、以及外網ip內網
- IP地址的概念及IP子網劃分
- IP核之ROM
- IP協議&&IP首部協議
- 【TCP/IP】IP地址分類和特殊IP地址TCP
- 網路和IP
- 修改不同IP的方法介紹!
- 如何修改 Rancher Server 的 IP 地址Server
- 什麼是公網IP、內網IP和NAT轉換?內網
- 解釋下內網IP和公網IP是什麼?內網
- 【linux】修改ip後hadoop只有四個節點的問題LinuxHadoop
- 爬蟲為什麼要用IP代理更換IP地址爬蟲
- TCP/IP、UDP/IP協議TCPUDP協議
- 面試之TCP/IP面試TCP
- win10如何修改虛擬網路卡ip_win10虛擬網路卡怎麼設定ip地址Win10