RAC添加私有网卡

当前环境:
在这里插入图片描述
RAC环境已存在,原环境每个节点两张网卡,现在每个节点各新增一张网卡作为私网网卡加入rac集群环境

查看当前集群网卡情况:

[grid@orcl2 ~]$  oifcfg getif
eth0  172.16.104.0  global  public
eth1  172.16.108.0  global  cluster_interconnect,asm

[grid@orcl1 ~]$  oifcfg getif
eth0  172.16.104.0  global  public
eth1  172.16.108.0  global  cluster_interconnect,asm 

添加新网卡:

[grid@orcl1 ~]$ oifcfg setif -global eth2/172.16.109.0:cluster_interconnect,asm
[grid@orcl2 ~]$ oifcfg setif -global eth2/172.16.109.0:cluster_interconnect,asm

删除网卡:

[grid@orcl1 ~]$ oifcfg delif -global eth2/172.16.109.0
[grid@orcl2 ~]$ oifcfg delif -global eth2/172.16.109.0

重新查看:

[grid@orcl1 ~]$  oifcfg getif
eth0  172.16.104.0  global  public
eth1  172.16.108.0  global  cluster_interconnect,asm
eth2  172.16.109.0  global  cluster_interconnect

[grid@orcl2 ~]$  oifcfg getif
eth0  172.16.104.0  global  public
eth1  172.16.108.0  global  cluster_interconnect,asm
eth2  172.16.109.0  global  cluster_interconnect

重启集群:

[root@orcl1 ~]# /u01/app/grid_home/bin/crsctl stop has
[root@orcl2 ~]# /u01/app/grid_home/bin/crsctl stop has
....
[root@orcl1 ~]# /u01/app/grid_home/bin/crsctl start has
[root@orcl2 ~]# /u01/app/grid_home/bin/crsctl start has 

查看系统网卡情况:
在这里插入图片描述
网卡eth2已经成功绑定haip

私网的高可用

测试私网的高可用,手动关闭节点1的eth2后再次查看系统网卡情况

[root@orcl1 ~]# ifconfig eth2 down

在这里插入图片描述
发现haip自动漂移到eth1,节点2虽然网卡没有down但是haip也会发生自动漂移

将网卡重新启动,再次查看,haip自动恢复,说明集群管理软件在私网网卡出现问题的时候还是会继续监控这块网卡,以便在网卡恢复正常的时候能够将haip重新恢复到原有的网卡上,从而保证haip能恢复负载均衡。

[root@orcl1 ~]# ifconfig eth2 up

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值