10G_rac 中修改vip

一. 修改vip,关闭节点一修改 192.168.2.15-----192.168.2.12 

srvctl config nodeapps -n oradb2 -a

1.

srvctl stop instance -d racdb -i racdb2

srvctl stop asm -n oradb2

srvctl stop nodeapps -n oradb2

2.

su - root

vi /etc/hosts

修改 

192.168.2.12 oradb2-vip

3.

root 下bin

./srvctl modify nodeapps -n oradb2 -A 192.168.2.12/255.255.255.0/eth0t 

4

./srvctl start nodeapps -n oradb2

su - oracle

srvctl start asm -n oradb2

srvctl start  instance -d racdb -i racdb2

srvctl config nodeapps -n oradb2 -a 查看vip

-------------------------------------------------------------------------------------------------------------------------------------------------


二. 修改网段 

priv 不变

public: 192.168.2.10  oradb1                --> 192.168.5.10 oradb1

192.168.2.11  oradb2                --> 192.168.5.11 oradb2

vip 192.168.2.15  oradb1-vip        --> 192.168.5.15 oradb1-vip

192.168.2.12  oradb2-vip          --> 192.168.5.12 oradb2-vip


2、停止CRS等服务,更改主机IP,路由等,并重启服务。

 3、更改VIP地址 
利用oifcfg更改public/private ip

 查看当前使用 > oifcfg getif 
[oracle@rac1 ~]$ oifcfg getif 
eth0  192.168.2.0  global  public 
eth1  192.168.3.0  global  cluster_interconnect 
删除当前 
oifcfg delif -global eth0 

oifcfg delif -global eth1

 重新添加 
> oifcfg setif -global eth0/192.168.5.0:public 
> oifcfg setif -global eth1/192.168.3.0:cluster_interconnect 获取状态如下: 
[oracle@rac1 ~]$ oifcfg getif 
eth0  192.168.110.0  global  public 
eth1  10.10.10.0  global  cluster_interconnect  
4、更新注册到OCR中的vip配置(root 用户) 

crs_register -update ora.rac1.vip -o

 i=eth0,ov=192.168.110.21,on=255.255.255.0 

crs_register -update ora.rac2.vip -o 

i=eth0,ov=192.168.110.22,on=255.255.255.0

 或者使用(root 用户) 
[root@td1 ~]# srvctl modify nodeapps -n td1 -A 10.194.128.147/255.255.255.0/eth0 
[root@td1 ~]# srvctl modify nodeapps -n td2 -A 10.194.128.148/255.255.255.0/eth0 
如果你使用了ocfs,修改ocfs配置文件(/etc/ocfs/cluster.conf),验证修改后是否可用。 
 
5、修改监听listener 配置文件 

6、启动集群各节点资源并验证 验证后,正常使用。
















  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值