当前环境:
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