免费注册 查看新帖 |

Chinaunix

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

设置网卡MTU值大于1500引起系统无法进入 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-08-17 17:51 |只看该作者 |倒序浏览
以下是基本信息:
操作系统:
[root@node1 ~]# cat /etc/redhat-release
CentOS release 5.8 (Final)

内核:2.6.18-308.11.1.el5 #1 SMP Tue Jul 10 08:48:43 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux

网卡:
[root@node1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth4
# Broadcom Corporation NetXtreme II BCM57711 10-Gigabit PCIe

网卡驱动信息:
[root@node1 ~]# modinfo bnx2
filename:       /lib/modules/2.6.18-308.11.1.el5/updates/bnx2.ko
version:        2.2.1j
license:        GPL
description:    Broadcom NetXtreme II BCM5706/5708/5709/5716 Driver
author:         Michael Chan <mchan@broadcom.com>
srcversion:     92BB1824D1695C4AE860E5F
alias:          pci:v000014E4d0000163Csv*sd*bc*sc*i*
alias:          pci:v000014E4d0000163Bsv*sd*bc*sc*i*
alias:          pci:v000014E4d0000163Asv*sd*bc*sc*i*
alias:          pci:v000014E4d00001639sv*sd*bc*sc*i*
alias:          pci:v000014E4d000016ACsv*sd*bc*sc*i*
alias:          pci:v000014E4d000016AAsv*sd*bc*sc*i*
alias:          pci:v000014E4d000016AAsv0000103Csd00003102bc*sc*i*
alias:          pci:v000014E4d0000164Csv*sd*bc*sc*i*
alias:          pci:v000014E4d0000164Asv*sd*bc*sc*i*
alias:          pci:v000014E4d0000164Asv0000103Csd00003106bc*sc*i*
alias:          pci:v000014E4d0000164Asv0000103Csd00003101bc*sc*i*
depends:        
vermagic:       2.6.18-308.11.1.el5 SMP mod_unload gcc-4.1
parm:           disable_msiisable Message Signaled Interrupt (MSI) (int)
parm:           stop_on_tx_timeout:For debugging purposes, prevent a chip  reset when a tx timeout occurs (int)

[root@node1 ~]# modinfo bnx2x
filename:       /lib/modules/2.6.18-308.11.1.el5/updates/bnx2x.ko
version:        1.72.18
license:        GPL
description:    Broadcom NetXtreme II BCM57710/57711/57711E/57712/57712_MF/57800/57800_MF/57810/57810_MF/57840/57840_MF Driver
author:         Eliezer Tamir
srcversion:     F84292F58B1A38007566C38
alias:          pci:v000014E4d000016ABsv*sd*bc*sc*i*
alias:          pci:v000014E4d0000168Dsv*sd*bc*sc*i*
alias:          pci:v000014E4d000016AEsv*sd*bc*sc*i*
alias:          pci:v000014E4d0000168Esv*sd*bc*sc*i*
alias:          pci:v000014E4d000016A5sv*sd*bc*sc*i*
alias:          pci:v000014E4d0000168Asv*sd*bc*sc*i*
alias:          pci:v000014E4d00001663sv*sd*bc*sc*i*
alias:          pci:v000014E4d00001662sv*sd*bc*sc*i*
alias:          pci:v000014E4d00001650sv*sd*bc*sc*i*
alias:          pci:v000014E4d0000164Fsv*sd*bc*sc*i*
alias:          pci:v000014E4d0000164Esv*sd*bc*sc*i*
depends:        8021q
vermagic:       2.6.18-308.11.1.el5 SMP mod_unload gcc-4.1
parm:           pri_map: Priority to HW queue mapping (uint)
parm:           num_queues: Set number of queues (default is as a number of CPUs) (uint)
parm:           disable_iscsi_ooo: Disable iSCSI OOO support (uint)
parm:           disable_tpa: Disable the TPA (LRO) feature (uint)
parm:           int_mode: Force interrupt mode other than MSI-X (1 INT#x; 2 MSI) (uint)
parm:           dropless_fc: Pause on exhausted host ring (uint)
parm:           poll: Use polling (for debug) (uint)
parm:           mrrs: Force Max Read Req Size (0..3) (for debug) (uint)
parm:           debug: Default debug msglevel (uint)
parm:           autogreeen: Set autoGrEEEn (0:HW default; 1:force on; 2:force off) (uint)
parm:           tx_switching: Enable tx-switching (uint)

该网卡所使用的驱动:
[root@node1 ~]# ethtool -i eth4
driver: bnx2x
version: 1.72.18
firmware-version: 5.0.12 bc 5.0.13 phy aa0.406
bus-info: 0000:06:00.0

系统启动提示信息:(摘出关于该网卡连接iscsi的部分)
Aug 17 05:02:48 node1 kernel: iscsi: registered transport (cxgb3i)
Aug 17 05:02:48 node1 kernel: cnic: Broadcom NetXtreme II CNIC Driver cnic v2.5.9d (Mar 07, 2012)
Aug 17 05:02:48 node1 kernel: bnx2x 0000:06:00.0: eth4: Added CNIC device
Aug 17 05:02:48 node1 kernel: bnx2x 0000:06:00.1: eth5: Added CNIC device
Aug 17 05:02:48 node1 kernel: Broadcom NetXtreme II iSCSI Driver bnx2i v2.7.2.1k (Mar 06, 2012)
Aug 17 05:02:48 node1 kernel: iscsi: registered transport (bnx2i)
Aug 17 05:02:48 node1 kernel: scsi6 : Broadcom Offload iSCSI Initiator
Aug 17 05:02:48 node1 kernel: scsi7 : Broadcom Offload iSCSI Initiator
Aug 17 05:02:48 node1 kernel: iscsi: registered transport (tcp)
Aug 17 05:02:48 node1 kernel: iscsi: registered transport (iser)
Aug 17 05:02:48 node1 kernel: iscsi: registered transport (be2iscsi)
Aug 17 05:02:48 node1 kernel: NET: Registered protocol family 10
Aug 17 05:02:48 node1 kernel: lo: Disabled Privacy Extensions
Aug 17 05:02:48 node1 kernel: IPv6 over IPv4 tunneling driver
Aug 17 05:02:48 node1 kernel: sit0: Disabled Privacy Extensions
Aug 17 05:02:48 node1 kernel: 8021q: adding VLAN 0 to HW filter on device eth0
Aug 17 05:02:48 node1 kernel: ADDRCONF(NETDEV_UP): eth0: link is not ready
Aug 17 05:02:48 node1 kernel: igb: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
Aug 17 05:02:48 node1 kernel: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Aug 17 05:02:48 node1 kernel: bnx2x 0000:06:00.0: eth4: using MSI-X  IRQs: sp 123  fp[0] 139 ... fp[14] 60
Aug 17 05:02:48 node1 kernel: bnx2i [06:00.00]: ISCSI_INIT passed
Aug 17 05:02:48 node1 kernel: ADDRCONF(NETDEV_UP): eth4: link is not ready
Aug 17 05:02:48 node1 kernel: bnx2x 0000:06:00.0: eth4: NIC Link is Up, 10000 Mbps full duplex, Flow control: none
Aug 17 05:02:48 node1 kernel: ADDRCONF(NETDEV_CHANGE): eth4: link becomes ready
Aug 17 05:02:51 node1 iscsid: connect to 192.168.3.253:3260 failed (No route to host)
Aug 17 05:03:04 node1 kernel: scsi8 : iSCSI Initiator over TCP/IP
Aug 17 05:03:04 node1 kernel:   Vendor: SCST_BIO  Model: 9RontQmniY7bZy4d  Rev:  210
Aug 17 05:03:04 node1 kernel:   Type:   Direct-Access                      ANSI SCSI revision: 05
Aug 17 05:03:04 node1 kernel: sdb : very big device. try to use READ CAPACITY(16).
Aug 17 05:03:04 node1 kernel: SCSI device sdb: 14035845120 512-byte hdwr sectors (7186353 MB)
Aug 17 05:03:04 node1 kernel: sdb: Write Protect is off
Aug 17 05:03:04 node1 kernel: SCSI device sdb: drive cache: write back
Aug 17 05:03:04 node1 kernel: sdb : very big device. try to use READ CAPACITY(16).
Aug 17 05:03:04 node1 kernel: SCSI device sdb: 14035845120 512-byte hdwr sectors (7186353 MB)
Aug 17 05:03:04 node1 kernel: sdb: Write Protect is off
Aug 17 05:03:04 node1 kernel: SCSI device sdb: drive cache: write back
Aug 17 05:03:04 node1 iscsid: Connection1:0 to [target: iqn.2012-09:dss.target0, portal: 192.168.3.253,3260] through [iface:
default] is operational now
Aug 17 05:03:07 node1 udevd-event[5208]: wait_for_sysfs: waiting for '/sys/devices/platform/host8/session1/target8:0:0/8:0:0:
0/ioerr_cnt' failed
Aug 17 05:03:14 node1 kernel:  sdb:<3> connection1:0: ping timeout of 5 secs expired, recv timeout 5, last rx 4294739679, las
t ping 4294744679, now 4294749679
Aug 17 05:03:14 node1 kernel:  connection1:0: detected conn error (1011)
Aug 17 05:03:15 node1 iscsid: Kernel reported iSCSI connection 1:0 error (1011) state (3)
Aug 17 05:03:15 node1 iscsid: Could not online LUN 0 err 2.
Aug 17 05:03:15 node1 iscsid: connection1:0 is operational after recovery (1 attempts)
Aug 17 05:03:25 node1 kernel:  connection1:0: ping timeout of 5 secs expired, recv timeout 5, last rx 4294750501, last ping 4
294755501, now 4294760501
Aug 17 05:03:25 node1 kernel:  connection1:0: detected conn error (1011)
Aug 17 05:03:25 node1 iscsid: Kernel reported iSCSI connection 1:0 error (1011) state (3)
Aug 17 05:03:26 node1 iscsid: Could not online LUN 0 err 2.
Aug 17 05:03:26 node1 iscsid: connection1:0 is operational after recovery (1 attempts)
Aug 17 05:03:36 node1 kernel:  connection1:0: ping timeout of 5 secs expired, recv timeout 5, last rx 4294761316, last ping 4
294766316, now 4294771316

Aug 17 05:03:36 node1 kernel:  connection1:0: detected conn error (1011)
Aug 17 05:03:36 node1 iscsid: Kernel reported iSCSI connection 1:0 error (1011) state (3)
Aug 17 05:03:37 node1 iscsid: Could not online LUN 0 err 2.
Aug 17 05:03:37 node1 iscsid: connection1:0 is operational after recovery (1 attempts)
Aug 17 05:03:46 node1 kernel:  connection1:0: ping timeout of 5 secs expired, recv timeout 5, last rx 4294772137, last ping 4
294777137, now 4294782137

这部分信息将无限重复,无法进入系统。

交换机环境:万兆博通的,开启巨型帧,存储也开启,并同时设置为mtu=9216,畅通。


部署需要:两台服务器需要开启巨型帧,默认1500完全OK,但是为了性能考虑设置9000.9216后无法进入系统,但是存储服务器使用的open-e设置值为9216完全OK,交换机也是9216.在Windows下测试没有问题,以上所安装的驱动已经是更新后的官方最新版本。特此寻找有经验的兄弟帮忙看看是什么问题导致的。

个人想到以下问题:内核原因,iscsi服务,或者使用的协议不对。具体还要看各位大神有什么好的办法没有。小弟在此谢过。

论坛徽章:
0
2 [报告]
发表于 2012-08-17 20:07 |只看该作者
这么多人看就是没有人回,焦急的等待

论坛徽章:
0
3 [报告]
发表于 2012-08-19 10:30 |只看该作者
这个估计是大家都不是很熟悉,所以没人回答,当然现在网络版也确实不是很兴旺。

论坛徽章:
7
荣誉版主
日期:2011-11-23 16:44:17子鼠
日期:2014-07-24 15:38:07狮子座
日期:2014-07-24 11:00:54巨蟹座
日期:2014-07-21 19:03:10双子座
日期:2014-05-22 12:00:09卯兔
日期:2014-05-08 19:43:17卯兔
日期:2014-08-22 13:39:09
4 [报告]
发表于 2012-08-19 12:47 |只看该作者
-scofield- 发表于 2012-08-17 17:51
但是为了性能考虑设置9000.9216后无法进入系统,

这句话没整明白

论坛徽章:
0
5 [报告]
发表于 2012-08-20 17:08 |只看该作者
回复 4# r2007

就是设置该网卡的MTU=9000或者=9216


   

论坛徽章:
3
天秤座
日期:2014-10-29 11:37:572015元宵节徽章
日期:2015-03-06 15:50:39NBA常规赛纪念章
日期:2015-05-04 22:32:03
6 [报告]
发表于 2013-02-01 17:40 |只看该作者
撸主是通过iscsi存储的吗
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP