免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 10246 | 回复: 12
打印 上一主题 下一主题

[网络管理] 还是网卡做bond的问题,这个问题有难度,喜欢挑战的进来看看 [复制链接]

论坛徽章:
1
巨蟹座
日期:2014-09-20 13:20:07
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-08-31 13:15 |只看该作者 |倒序浏览
问题背景:
1、一个项目里若干台dell2950服务器,若干台dell6850服务器,所有操作系统均为redhat as4 u5的版本
2、出于性能考虑网络链路准备采用冗余方式,即两台cisco3560交换机,服务器双网卡做bond,两块网卡分别接不通的交换机统一的端口,比如a机两个网口a1和a2分别接switch1和switch2的1口。

出现状况:
1、所有2950服务器用内置网口做的bond都出现了如下情况
[root@XTSER log]# grep bond1 /var/log/messages
Aug 30 13:38:00 XTSER kernel: bonding: bond1: released all slaves
Aug 30 13:38:00 XTSER kernel: ADDRCONF(NETDEV_UP): bond1: link is not ready
Aug 30 13:38:00 XTSER kernel: ADDRCONF(NETDEV_UP): bond1: link is not ready
Aug 30 13:38:04 XTSER kernel: bonding: bond1: enslaving eth2 as a backup interface with a down link.
Aug 30 13:38:05 XTSER kernel: bonding: bond1: enslaving eth3 as a backup interface with a down link.
Aug 30 13:38:07 XTSER kernel: bonding: bond1: link status definitely up for interface eth3.
Aug 30 13:38:07 XTSER kernel: bonding: bond1: making interface eth3 the new active one.
Aug 30 13:38:07 XTSER kernel: bonding: bond1: first active interface up!
Aug 30 13:38:07 XTSER kernel: bonding: bond1: link status definitely up for interface eth2.
Aug 30 13:38:08 XTSER kernel: ADDRCONF(NETDEV_CHANGE): bond1: link becomes ready
Aug 30 13:38:08 XTSER kernel: bond1: duplicate address detected!
Aug 30 13:40:53 XTSER kernel: bonding: bond1: released all slaves
Aug 30 13:40:53 XTSER kernel: ADDRCONF(NETDEV_UP): bond1: link is not ready
Aug 30 13:40:53 XTSER kernel: ADDRCONF(NETDEV_UP): bond1: link is not ready
Aug 30 13:40:57 XTSER kernel: bonding: bond1: enslaving eth2 as a backup interface with a down link.
Aug 30 13:40:57 XTSER kernel: bonding: bond1: enslaving eth3 as a backup interface with a down link.
Aug 30 13:40:59 XTSER kernel: bonding: bond1: link status definitely up for interface eth2.
Aug 30 13:40:59 XTSER kernel: bonding: bond1: link status definitely up for interface eth3.
Aug 30 13:40:59 XTSER kernel: bonding: bond1: making interface eth2 the new active one.
Aug 30 13:40:59 XTSER kernel: bonding: bond1: first active interface up!
Aug 30 13:41:00 XTSER kernel: ADDRCONF(NETDEV_CHANGE): bond1: link becomes ready
Aug 30 13:54:53 XTSER kernel: bonding: bond1: released all slaves
Aug 30 13:54:53 XTSER kernel: ADDRCONF(NETDEV_UP): bond1: link is not ready
Aug 30 13:54:53 XTSER kernel: ADDRCONF(NETDEV_UP): bond1: link is not ready

也就是bond会不定时的release网卡,有时候几个小时一次,有时候几天一次

而且用mii-tool命令查看bond
[root@XTSER ~]# mii-tool bond0
bond0: 10 Mbit, half duplex, link ok
显示的10兆半双工模式,要知道这个可是千兆网卡啊,交换机也是百兆自适应的。



请高手们分析一下出现以上问题的原因在什么地方。另外我发现2950内置网卡做的bond都出现了这种情况2950的内置网卡是博科5708

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
2 [报告]
发表于 2007-08-31 14:36 |只看该作者
首先要做绑定应该链接同一交换机,否则会出现包的乱序等问题。
其次绑定的网卡型号速率双工方式应该完全一致。
最后还需要配置好绑定方式是,也可以说具体的算法。

论坛徽章:
1
巨蟹座
日期:2014-09-20 13:20:07
3 [报告]
发表于 2007-08-31 14:56 |只看该作者
连同一台交换机那双链路还有什么意义啊?我用的是主备的模式,就是要解决网络单点故障才采用这种模式的,其次,网卡都是dell内置的博科5708,网卡都是缺省的自适应设置不存在网卡不一致的情况
bond设置参数如下
/etc/modprobe.conf
install bond0 /sbin/modprobe bonding -o bond0 miimon=100 mode=1
install bond1 /sbin/modprobe bonding -o bond1 miimon=100 mode=1


Ethernet Channel Bonding Driver: v2.6.3-rh (June 8, 2005)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth1
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:15:17:29:a8:b6

Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:15:17:29:a8:b7

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
4 [报告]
发表于 2007-08-31 15:03 |只看该作者
要不,你交换机和PC间都强制以下速率看看.

论坛徽章:
0
5 [报告]
发表于 2007-08-31 22:33 |只看该作者
bond1: duplicate address detected!
错误很明显了.好好看看bond文档.
HA Link Monitoring Selection for Multiple Switch Topology
----------------------------------------------------------------

        The choice of link monitoring ultimately depends upon your
switch.  If the switch can reliably fail ports in response to other
failures, then either the MII or ARP monitors should work.  For
example, in the above example, if the "port3" link fails at the remote
end, the MII monitor has no direct means to detect this.  The ARP
monitor could be configured with a target at the remote end of port3,
thus detecting that failure without switch support.

        In general, however, in a multiple switch topology, the ARP
monitor can provide a higher level of reliability in detecting end to
end connectivity failures (which may be caused by the failure of any
individual component to pass traffic for any reason).  Additionally,
the ARP monitor should be configured with multiple targets (at least
one for each switch in the network).  This will insure that,
regardless of which switch is active, the ARP monitor has a suitable
target to query.

[ 本帖最后由 wysilly 于 2007-8-31 22:49 编辑 ]

论坛徽章:
1
巨蟹座
日期:2014-09-20 13:20:07
6 [报告]
发表于 2007-09-03 15:07 |只看该作者
原帖由 wysilly 于 2007-8-31 22:33 发表
bond1: duplicate address detected!
错误很明显了.好好看看bond文档.
HA Link Monitoring Selection for Multiple Switch Topology
----------------------------------------------------------------

...

还请明示啊,现在我也在考虑是否是交换机上设置的有些什么问题。不过仍然没有找到问题的根本原因。

论坛徽章:
0
7 [报告]
发表于 2007-09-29 14:57 |只看该作者
关于这个问题,楼主有没有进展啊。

我们这边也遇到类似情况,不过我们是mode=0,想提升网卡速率。不过我们的是化为8500的交换机,发现华为不支持跨交换机做链路聚合。

问题是我这边千兆的网卡也出现mii-tool显示的是10m半双工啊,很奇怪

论坛徽章:
0
8 [报告]
发表于 2007-09-30 14:43 |只看该作者
找了网上一些资料,认为mii-tool报的速度是不准确的,可以不用理会!

论坛徽章:
0
9 [报告]
发表于 2013-07-29 22:40 |只看该作者
6年后,我也遇到了这个问题,不知道什么原因造成的。
所以我决定把这个帖子顶起来~~

论坛徽章:
0
10 [报告]
发表于 2013-07-31 13:54 |只看该作者
今天测试发现将绑定中的任意一块网卡down掉,网络保持正常。
貌似是bond有问题,但十几台服务器中只有一台出现了这个现象,并且他们的bond配置是一样的。不解
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP