论坛风格切换切换到宽版
  • 1043阅读
  • 2回复

[问题求助][CentOS] 网卡模式转换问题 [复制链接]

上一主题 下一主题
离线re58.
 
发帖
2020
C币
-235673
威望
358
贡献值
1
银元
-1
铜钱
4480
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
服务器今天奇怪断网:

日志:
Dec 28 12:47:22 localhost auditd[2753]: Audi.t. daemon rotating log files             电子
Dec 29. 13:36:36 localhost auditd[2753]: Audit daemon rotating log files..
Dec 31 10.:36:34 localhost kernel: bnx2: eth0 NIC Copper Lin.k is Down虚拟主机
De.c 31 10:36:36 localhost. kernel: bnx2: eth0 NIC Copper Link is Up, 100 Mbp.s full duplex.
Dec. 31 10:37:03 localhost kernel: bnx2: eth0 NIC Copper L.ink is Down             汽车
Dec 3.1 10:37:05 localhost kernel: bnx2: eth0 NIC Co.pper Li.nk is Up, 100 Mbps full duplex电影
Dec 31.. 10:37:33 localhost kernel: bnx2: eth0 NIC Copper Link is Down.
Dec 31 10:37:49 l.o.calhost kernel: bnx2: eth0 NIC Copper Link. is Up, 10 Mbps full duplex.
Dec 31 10:37:.49 localhost kernel: bnx2: eth.0 NIC Copper Link is Down.
Dec 31 10:37:.51 l.ocalhost kernel: bnx2: eth0 NIC Copper Link is Up, 10 Mbps ful.l duplex.
De.c 31 10:37:51 localhost kernel: bnx2: et.h0 NIC Copper Link is Down
D.ec 31 10:.37:53 localhost kernel: bnx2: eth0 NIC Copper Link i.s Up, 10 Mbps full duplex虚拟主机
Dec 31 10:38.:30 l.ocalhost kernel: bnx2: eth0 NIC Copper Link is Down电脑
D.ec 31 10:38:34 localhost kernel: bnx2: eth0 NIC Coppe.r Link is Up, 100 Mbps. full duplex.
De.c 31 10:39:18 localhost kernel: b.nx2: eth0 NIC Copper Link is Down.
Dec .31 10:39:20 loca.lhost kernel: bnx2: eth0 NIC Cop.per Link is Up, 100 Mbps full duplex[成人用品]
Dec 31 10:39:48 localhost kernel: bnx2: eth0 NIC Copper Link is D.ow.n.
De.c 31 10:40:04 localhost kernel: bnx.2: eth0 NIC Copper Link i.s Up, 10 Mbps full duplex.
Dec 31 10:40:04 localhost k.ernel:. bnx2: eth0 NIC Copper Link is Down    健康
Dec 31 10:40.:06 localhos.t kernel: bnx2: eth0 NIC Copper Link is Up, 10 M.bps full duplex.
De.c 31 10:40:06 localhost kernel: bnx2: eth0 NIC Copper Link. is Down(广告)
Dec 31 10:40:08 loc.alhost k.ernel: bnx2: eth0 NIC Copper Link is Up, 10 Mbps f.ull duplex           鲜花


网卡怎么会不停的重启,而且还.转换到10M模式电影

怎么样设定为只用100M模式

这根驱动有关没有

系统C.entos5.4 服务器IBM X55.04 M2投资

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
发帖
2167
C币
-139064
威望
396
贡献值
1
银元
-2
铜钱
4806
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
Re:[CentOS]
ifconfig    ethX   meida 100baseT

or

ethtool   -s   ethX speed 100
复制代码

离线阿切.
发帖
2001
C币
-132461
威望
350
贡献值
1
银元
-1
铜钱
4409
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
Re:[CentOS]
恐怕不是固定网卡工作模式那么简单。

曾经也遇到过类似问题。Broadcom网卡。频频“闪断”。也有曾一次“闪断”后,千兆链路降速为百兆。试过了各种方法:换网线,换交换机口,升级网卡驱动、网卡微码,关闭自适应 。。。都未能奏效---半年中发生过三次严重的,引发了 HA 切换。

在CU上也查到过同类案例。有人分析了网卡驱动源码,发现是 watchdog timeout 所致。于是修改源码、禁掉了“watchdog“后问题消除。那是e1000网卡驱动,我们是 bnx2。但我想原理应该是差不多的:当网卡发现链路起着、但通讯不了时,就会通过主动重启,来重建链路、消除可能的“挂起”故障。

最近又见有文章在分析源码后指出了引起watchdog timeout的主要原因:1、缓冲区不够大,前面的没发完后面的又跟的来了。2、内核的内存分配出现问题,此情况比较少发生。3、卡的质量(在IO时的吞吐量)。4、bpf过滤过于复杂引起。

可惜现在暂时没法再调试了,上月底客户硬逼我们先更换主板(ibm x3650)---因为是7x24生产系统。观察时许再说吧。
快速回复
限100 字节
批量上传需要先选择文件,再选择上传
 
上一个 下一个