更改VIP
1、关掉服务或本地监听
srvctl stop service -d prod -s prod -n node1
srvctl stop listener -n node1
2、查看VIP信息
srvctl config vip -n node1
3、停止VIP资源进程
srvctl stop vip -n node1
查看是否已停止
ifconfig -a
4、更改VIP地址
srvctl modify nodeapps -n mynode -A 192.168.6.202/255.255.255.0/eth0
修改/etc/hosts文件
5、开启VIP资源进程
srvctl start vip -n node1
6、开启本地监听
srvctl start listener -n node1
7、检查网络配置情况
cluvfy comp nodecon -n all -verbose
8、修改asm实例和database实例的local_listener初始化参数信息
SQL> alter system set local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.6.202)(PORT=1521))))' scope = both;
System altered.
同网段更改私有IP或IP
更改IP的话 只需要关闭crs,修改/etc/hosts文件和/etc/sysconfig/network-scripts/if-eth*文件,然后开启crs即可
不同网段更改私有IP或IP
1、查看集群各节点是否正常
olsnodes -s
2、在所有节点查看需要接替的网卡是否被正确配置
$ /sbin/ifconfig
3、配置IP
oifcfg setif -global eth2/ 10.220.52.0:cluster_interconnect
或者
oifcfg setif -global eth0/10.220.16.0:public
4、删除之前的网段IP
$ oifcfg delif -global eth1/10.10.10.0
5、查看网络配置
$ oifcfg getif
eth2 10.220.52.0 global cluster_interconnect
eth0 10.220.16.0 global public
6、关闭CRS
crsctl stop crs
7、从操作系统级别关闭之前网卡
ifconfig down
1、关掉服务或本地监听
srvctl stop service -d prod -s prod -n node1
srvctl stop listener -n node1
2、查看VIP信息
srvctl config vip -n node1
3、停止VIP资源进程
srvctl stop vip -n node1
查看是否已停止
ifconfig -a
4、更改VIP地址
srvctl modify nodeapps -n mynode -A 192.168.6.202/255.255.255.0/eth0
修改/etc/hosts文件
5、开启VIP资源进程
srvctl start vip -n node1
6、开启本地监听
srvctl start listener -n node1
7、检查网络配置情况
cluvfy comp nodecon -n all -verbose
8、修改asm实例和database实例的local_listener初始化参数信息
SQL> alter system set local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.6.202)(PORT=1521))))' scope = both;
System altered.
同网段更改私有IP或IP
更改IP的话 只需要关闭crs,修改/etc/hosts文件和/etc/sysconfig/network-scripts/if-eth*文件,然后开启crs即可
不同网段更改私有IP或IP
1、查看集群各节点是否正常
olsnodes -s
2、在所有节点查看需要接替的网卡是否被正确配置
$ /sbin/ifconfig
3、配置IP
oifcfg setif -global eth2/ 10.220.52.0:cluster_interconnect
或者
oifcfg setif -global eth0/10.220.16.0:public
4、删除之前的网段IP
$ oifcfg delif -global eth1/10.10.10.0
5、查看网络配置
$ oifcfg getif
eth2 10.220.52.0 global cluster_interconnect
eth0 10.220.16.0 global public
6、关闭CRS
crsctl stop crs
7、从操作系统级别关闭之前网卡
ifconfig down
8、启动CRS
crsctl start crs
crsctl start crs
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29802484/viewspace-2099881/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29802484/viewspace-2099881/