重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3082|回复: 0
打印 上一主题 下一主题

[原创] 使用haip方式往rac中新增一个私网网卡

[复制链接]
跳转到指定楼层
楼主
发表于 2016-7-11 09:12:24 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
关于haip的概念,请大家参照百度
我这里场景
rac01,
rac02

私网:
rac01 eth1 180.180.0.1
rac02 eth1 180.180.0.2

现在增加一个新的网卡:
rac01 eth2 180.180.1.1
rac02 eth2 180.180.1.2
和以前的网卡不在一个网络

办法:
1.新增加物理网卡,并设置ip
   该操作可以通过os完成.
2.在集群中增加该网卡
   # /u01/app/11.2.0/grid/bin/oifcfg setif -global eth2/180.180.1.0:cluster_interconnect
3.增加后,必须关闭两个节点的crs
   crsctl stop crs
4.重起两个节点的crs
   随便哪个先起都可以
5.检查ip

[root@rac01 ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 9C:8E:99:20:9D:34  
          inet addr:192.168.10.201  Bcast:192.168.10.255  Mask:255.255.255.0
          inet6 addr: fe80::9e8e:99ff:fe20:9d34/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:169679 errors:0 dropped:0 overruns:0 frame:0
          TX packets:161306 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:40407183 (38.5 MiB)  TX bytes:106788696 (101.8 MiB)
          Interrupt:178
eth0:2    Link encap:Ethernet  HWaddr 9C:8E:99:20:9D:34  
          inet addr:192.168.10.100  Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:178
eth0:3    Link encap:Ethernet  HWaddr 9C:8E:99:20:9D:34  
          inet addr:192.168.10.101  Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:178
eth1      Link encap:Ethernet  HWaddr 9C:8E:99:20:9D:35  
          inet addr:180.180.0.1  Bcast:180.180.0.255  Mask:255.255.255.0
          inet6 addr: fe80::9e8e:99ff:fe20:9d35/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2654013 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2525436 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3031256170 (2.8 GiB)  TX bytes:2818309669 (2.6 GiB)
          Interrupt:210
eth1:1    Link encap:Ethernet  HWaddr 9C:8E:99:20:9D:35  
          inet addr:169.254.101.194  Bcast:169.254.127.255  Mask:255.255.128.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:210
eth2      Link encap:Ethernet  HWaddr 9C:8E:99:20:9D:36  
          inet addr:180.180.1.1  Bcast:180.180.1.255  Mask:255.255.255.0
          inet6 addr: fe80::9e8e:99ff:fe20:9d36/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1779680 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2340639 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1943087116 (1.8 GiB)  TX bytes:2706691817 (2.5 GiB)
          Interrupt:51
eth2:1    Link encap:Ethernet  HWaddr 9C:8E:99:20:9D:36  
          inet addr:169.254.215.30  Bcast:169.254.255.255  Mask:255.255.128.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:51
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:716349 errors:0 dropped:0 overruns:0 frame:0
          TX packets:716349 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:176826698 (168.6 MiB)  TX bytes:176826698 (168.6 MiB)

   发现已经有了 169.254.215.30  

同时,在
1*  select * from gv$cluster_interconnects
   INST_ID NAME            IP_ADDRESS       IS_ SOURCE
---------- --------------- ---------------- --- -------------------------------
         1 eth1:1          169.254.101.194  NO
         1 eth2:1          169.254.215.30   NO
         2 eth1:1          169.254.123.21   NO
         2 eth2:1          169.254.187.97   NO

在报警文件中,也看到
SMCO started with pid=71, OS id=24187
  Sun Jul 10 20:41:44 2016
SKGXP: ospid 22757: network interface with IP address 169.254.101.194 no longer running (check cable)
SKGXP: ospid 22757: network interface with IP address 169.254.215.30 no longer running (check cable)
Sun Jul 10 20:42:46 2016
SKGXP: ospid 22757: network interface with IP address 169.254.101.194 is now running
SKGXP: ospid 22757: network interface with IP address 169.254.215.30 is now running

在$CRS_HOME/agent/ohasd/orarootagent/orarootagent.log
中,也将看到类似的信息.


关于测试,在此掠过.

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-5-3 11:28 , Processed in 0.093609 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表