Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1150843
  • 博文数量: 178
  • 博客积分: 2776
  • 博客等级: 少校
  • 技术积分: 2809
  • 用 户 组: 普通用户
  • 注册时间: 2012-03-22 15:36
文章分类

全部博文(178)

文章存档

2014年(3)

2013年(66)

2012年(109)

分类: Oracle

2013-08-08 16:17:49

修改网卡设置文件,修改为如下内容(2个节点都需要为如下内容):

[root@rac1 devices]# pwd

/etc/sysconfig/networking/devices

[root@rac1 devices]#

[root@rac1 devices]# cat ifcfg-eth1

# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]

DEVICE=eth1

USERCTL=no

ONBOOT=yes

MASTER=bond0

SLAVE=yes

BOOTPROTO=none

TYPE=ethernet

[root@rac1 devices]# cat ifcfg-eth2

# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]

DEVICE=eth2

USERCTL=no

ONBOOT=yes

MASTER=bond0

SLAVE=yes

BOOTPROTO=none

TYPE=ethernet

 

----bond0 信息加入到/etc/modprobe.conf文件中(2个节点都需要添加)

 本文转自cuug网站

[root@rac1 devices]# cat /etc/modprobe.conf

alias scsi_hostadapter mptbase

alias scsi_hostadapter1 mptspi

alias scsi_hostadapter2 ata_piix

alias snd-card-0 snd-ens1371

options snd-card-0 index=0

options snd-ens1371 index=0

remove snd-ens1371 { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-ens1371

# Added by VMware Tools

install pciehp /sbin/modprobe -q --ignore-install acpiphp; /bin/true

install pcnet32 (/sbin/modprobe -q --ignore-install vmxnet || /sbin/modprobe -q --ignore-install pcnet32 $CMDLINE_OPTS);/bin/true

alias eth0 vmxnet

alias eth1 vmxnet

 

###add by Roger

alias bond0 bonding

options bond0 mode=1 miimon=100 downdelay=200 primary=eth1 primary_reselect=1

[root@rac1 devices]#

这里说明一下,网卡绑定后的工作模式有2种,0描述双活即active/active,也就是负载均衡模式,相当于是2个网卡同时使用。
mode属性值为1描述active/standby模式,即主备模式,换句话讲,eth1网卡故障后,eth2可以立即替换上,几乎不会影响rac。oracle培训


阅读(5038) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~