用srvctl modify nodeapps命令更改vip地址
Modify the VIP or VIP Hostname for a 10g Oracle Clusterware,有時候我們可能需要修改vip地址或對應的vip
主機名,而我這次在安裝rac過程中,執行vipca時,把私有IP當成VIP來使用,導致在啟動vip服務時啟動不了
hosts裡面內容如下:
[oracle@RAC1 ~]$ more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost
138.30.0.101 rac1
138.30.0.102 rac2
138.30.0.201 rac1-vip
138.30.0.202 rac2-vip
100.100.1.1 rac1-priv
100.100.1.2 rac2-priv
在vipca安裝過程中日誌提示
2009-05-31 14:33:44.212: [ RACG][3067446976] [2411][3067446976][ora.rac1.vip]: IP:100.100.1.1 is already up in the network (host=RAC1)
[oracle@RAC1 ~]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE OFFLINE
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip application ONLINE OFFLINE
可以看到vip服務資源offline
從metalink上找到一篇文章,可以用srvctl工具來修改vip地址的,下面是具體測試過程
Changing VIP Addresses
Use the following procedure to change a VIP address:
1. Stop all database and ASM instances.
2. Stop the Listeners, and node applications using the srvctl stop nodeapps
command.
3. Run the following command to verify node connectivity between all of the nodes
for which your cluster is configured. This command discovers all of the network
interfaces available on the cluster nodes and verifies the connectivity between all
of the nodes by way of the discovered interfaces. This command also lists all of the
interfaces available on the nodes which are suitable for use as VIPs.
cluvfy comp nodecon -n all [-verbose]
4. Run the srvctl modify nodeapps command with the -A option as described
in Appendix E. Use the crs_stat command to identify all active node
applications.
5. Restart all of the instances and node applications that you stopped in Step 1 and 2.
[oracle@RAC1 ~]$ srvctl stop nodeapps -n rac1
[oracle@RAC1 ~]$ srvctl stop nodeapps -n rac2
[root@RAC1 bin]# ./srvctl modify nodeapps -n rac1 -A 138.30.0.201/255.255.255.0/eth0
[root@RAC1 bin]# ./srvctl modify nodeapps -n rac2 -A 138.30.0.202/255.255.255.0/eth0
[root@RAC1 bin]# su - oracle
[oracle@RAC1 ~]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.rac1.gsd application OFFLINE OFFLINE
ora.rac1.ons application OFFLINE OFFLINE
ora.rac1.vip application OFFLINE OFFLINE
ora.rac2.gsd application OFFLINE OFFLINE
ora.rac2.ons application OFFLINE OFFLINE
ora.rac2.vip application OFFLINE OFFLINE
[oracle@RAC1 ~]$ srvctl start nodeapps -n rac1
[oracle@RAC1 ~]$ srvctl start nodeapps -n rac2
[oracle@RAC1 ~]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip application ONLINE ONLINE rac2
[root@RAC1 db_1]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:59:C5:40
inet addr:138.30.0.101 Bcast:138.30.0.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe59:c540/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:367945 errors:0 dropped:0 overruns:0 frame.:0
TX packets:1788789 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:25845604 (24.6 MiB) TX bytes:2599705197 (2.4 GiB)
Interrupt:185 Base address:0x1480
eth0:1 Link encap:Ethernet HWaddr 00:0C:29:59:C5:40
inet addr:138.30.0.201 Bcast:138.30.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:185 Base address:0x1480
eth1 Link encap:Ethernet HWaddr 00:0C:29:59:C5:4A
inet addr:100.100.1.1 Bcast:100.100.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe59:c54a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:32104 errors:0 dropped:0 overruns:0 frame.:0
TX packets:34955 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11024742 (10.5 MiB) TX bytes:17588443 (16.7 MiB)
Interrupt:193 Base address:0x1800
可以看到vip地址已經修改成功。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-604545/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 更改IP地址難嗎?
- 更改rac scanIP IP的地址
- !!! 個人部落格地址更改
- Linux中如何更改MAC地址LinuxMac
- 如何在 Linux 中更改 MAC 地址LinuxMac
- Git更改遠端程式碼倉地址Git
- IDEA更改遠端git倉庫地址IdeaGit
- Git命令(撤銷更改)Git
- 檢視ip地址的cmd命令 cmd查詢ip地址命令
- 4.5.1.2 srvctl add databaseDatabase
- 4.5.1.3 srvctl add listener
- 4.5.1.4 srvctl add ons
- 4.5.1.1 srvctl add asmASM
- Oracle:srvctl 簡介Oracle
- 4.5.1.5 srvctl 新增服務
- 電腦ip地址怎麼改win10_win10電腦如何更改ip地址Win10
- 【RAC】Oracle RAC12c+ srvctl操作命令變化(引數更嚴謹了)Oracle
- cmd命令如何查詢ip地址
- 4.2.2 準備執行SRVCTL
- ubuntu 命令列更改innodb_buffer_pool_sizeUbuntu命令列
- win10怎麼修改自己電腦mac地址_win10如何更改電腦mac地址Win10Mac
- 5 個用於在 Linux 終端中查詢域名 IP 地址的命令Linux
- 4.5 通過SRVCTL 呼叫Oracle RestartOracleREST
- 4.2.3 獲取SRVCTL 的幫助
- RAC 管理(crs_stat、crsctl、srvctl)
- mysql alter modify 和 change的區別MySql
- Vmware CentOS7 克隆後更改網路為靜態 ip 地址CentOS
- CIPHER命令用於顯示或更改NTFS分割槽上目錄[檔案]的加密加密
- 網路安全之IPSG防止DHCP動態主機私自更改IP地址
- 3.1.1.4 使用 SRVCTL 啟動資料庫資料庫
- ulimit: core file size: cannot modify limit: Operation not permittedMIT
- CentOS 7.5 modify the sshd port with SElinux and Firewalld Service runningCentOSLinux
- VIP影片解析
- win10 mobile怎麼改dns_win10 mobile如何更改dns地址Win10DNS
- parameter hj8828vip installed Oracle h518vip onOracleH5
- 4.2.11 使用 SRVCTL 建立資料庫服務資料庫
- 資料庫中modify和change的區別資料庫
- win10怎麼改ipv4地址 win10如何更改首選ipv4地址Win10
- 檢視Linux網路卡UUID和MAC地址---Linux命令LinuxUIMac