您好,登錄后才能下訂單哦!
這篇文章主要介紹RAC如何改VIP和SCAN IP,文中介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們一定要看完!
集群改不了計算機名,但是可以改IP,但是改IP的話最好不要改網段,改網段涉及到網絡層的更改,網絡層的命令為oifcfg
查看VIP的信息:
srvctl config vip -n node1
srvctl config vip -n node2
srvctl config nodeapps -a
[root@node1 ~]# srvctl config vip -n node1
VIP exists: /node1-vip/192.168.92.22/192.168.92.0/255.255.255.0/eth0, hosting node node1
[root@node1 ~]# srvctl config vip -n node2
VIP exists: /node2-vip/192.168.92.24/192.168.92.0/255.255.255.0/eth0, hosting node node2
[root@node1 ~]# srvctl config nodeapps -a
Network exists: 1/192.168.92.0/255.255.255.0/eth0, type static
VIP exists: /node1-vip/192.168.92.22/192.168.92.0/255.255.255.0/eth0, hosting node node1
VIP exists: /node2-vip/192.168.92.24/192.168.92.0/255.255.255.0/eth0, hosting node node2
修改node2的vip:(由24改為26)
/u01/app/11.2.0/grid/bin/srvctl stop listener -n node2
/u01/app/11.2.0/grid/bin/srvctl stop vip -n node2
修改兩個節點的/etc/hosts,把node2的新的vip體現出來。
/u01/app/11.2.0/grid/bin/srvctl modify nodeapps -n node2 -A 192.168.92.26/255.255.255.0/eth0
/u01/app/11.2.0/grid/bin/srvctl start vip -n node2
/u01/app/11.2.0/grid/bin/srvctl start listener -n node2
查看SCAN IP的信息(node-scan是/etc/hosts中scan ip的別名)
srvctl config scan
srvctl status scan
[root@node1 ~]# srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node node1
[root@node1 ~]# srvctl config scan
SCAN name: node-scan, Network: 1/192.168.92.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /node-scan/192.168.92.30
修改SCAN VIP
/u01/app/11.2.0/grid/bin/srvctl stop scan_listener
/u01/app/11.2.0/grid/bin/srvctl stop scan
修改/etc/hosts里的scan vip的地址
/u01/app/11.2.0/grid/bin/srvctl modify scan -n node-scan
/u01/app/11.2.0/grid/bin/srvctl start scan
/u01/app/11.2.0/grid/bin/srvctl config scan
/u01/app/11.2.0/grid/bin/srvctl modify scan_listener -u
/u01/app/11.2.0/grid/bin/srvctl start scan_listener
以上是“RAC如何改VIP和SCAN IP”這篇文章的所有內容,感謝各位的閱讀!希望分享的內容對大家有幫助,更多相關知識,歡迎關注億速云行業資訊頻道!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。