更改VIP、IP

更改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
8、启动CRS
crsctl start crs

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29802484/viewspace-2099881/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29802484/viewspace-2099881/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值