更改rac scanIP IP的地址

abin1703發表於2018-05-09
1、測試需求
將scan ip 135.148.xx.145改為135.148.xx.45
檢視當前scan ip狀態資訊 (需以root使用者執行)
#./srvctl config scan
SCAN name: gsdx-qdrac-scan3, Network: 1
Subnet IPv4: 135.148.12.0/255.255.255.0/bond0, static
Subnet IPv6: 
SCAN 1 IPv4 VIP: 135.148.12.145
SCAN VIP is enabled.
SCAN VIP is individually enabled on nodes: 
SCAN VIP is individually disabled on nodes: 
oracle@gsdx-qdrac07:/xtts>


2、以root使用者停止scan_listener,scan ip服務
[root@gsdx-qdrac07 bin]# ./srvctl stop scan_listener
[root@gsdx-qdrac07 bin]# ./srvctl stop scan
[root@gsdx-qdrac07 bin]# ./srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is not running
3、在所有節點/etc/hosts檔案中修改新scan ip地址
#135.148.xx.145  gsdx-qdrac-scan3
135.148.xx.45  gsdx-qdrac-scan3


4、以root使用者修改scan ip
[root@gsdx-qdrac07 bin]# ./srvctl modify scan -n 135.148.xx.45
8、修改後確認
[root@gsdx-qdrac07 bin]# ./srvctl config scan
SCAN name: 135.148.12.45, Network: 1
Subnet IPv4: 135.148.12.0/255.255.255.0/bond0, static
Subnet IPv6: 
SCAN 1 IPv4 VIP: 135.148.xx.45
SCAN VIP is enabled.
SCAN VIP is individually enabled on nodes: 
SCAN VIP is individually disabled on nodes:


5、啟動scan_listener,scan
[root@gsdx-qdrac07 bin]# ./srvctl start scan
[root@gsdx-qdrac07 bin]# ./srvctl start scan_listener
 
6、重啟整個叢集
./crsctl stop cluster -all
./crsctl start cluster -all




來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30345407/viewspace-2154219/,如需轉載,請註明出處,否則將追究法律責任。

相關文章