前提背景:

生产环境上,服务器网络突然断链,ssh连接失败。

问题初步定位:

查找内核日志,得到网卡异常信息

Jan 24 11:52:43 localhost kernel: ixgbe 0000:84:00.0: eth0: RXDCTL.ENABLE on Rx queue 14 not cleared within the polling period

Jan 24 11:52:43 localhost kernel: ixgbe 0000:84:00.0: eth0: RXDCTL.ENABLE on Rx queue 15 not cleared within the polling period

Jan 24 11:52:43 localhost kernel: bonding: bond5: link status definitely down for interface eth0, disabling it

Jan 24 11:52:43 localhost kernel: ixgbe 0000:84:00.0: eth0: detected SFP+: 5

Jan 24 11:52:43 localhost kernel: ixgbe 0000:84:00.0: eth0: NIC Link is Up 10 Gbps, Flow Control: RX/TX

Jan 24 11:52:43 localhost kernel: bond5: link status definitely up for interface eth0, 10000 Mbps full duplex.

Jan 24 11:52:47 localhost kernel: ixgbe 0000:84:00.0: eth0: Detected Tx Unit Hang

Jan 24 11:52:47 localhost kernel: ixgbe 0000:84:00.0: eth0: tx_buffer_info[next_to_clean]

Jan 24 11:52:47 localhost kernel: ixgbe 0000:84:00.0: eth0: tx hang 448 detected on queue 6, resetting adapter

Jan 24 11:52:47 localhost kernel: ixgbe 0000:84:00.0: eth0: Reset adapter

Jan 24 11:52:47 localhost kernel: ixgbe 0000:84:00.0: eth0: RXDCTL.ENABLE on Rx queue 0 not cleared within the polling period

Jan 24 11:52:47 localhost kernel: ixgbe 0000:84:00.0: eth0: RXDCTL.ENABLE on Rx queue 1 not cleared within the polling period

Jan 24 11:52:47 localhost kernel: ixgbe 0000:84:00.0: eth0: RXDCTL.ENABLE on Rx queue 2 not cleared within the polling period

Jan 24 11:52:47 localhost kernel: ixgbe 0000:84:00.0: eth0: RXDCTL.ENABLE on Rx queue 3 not cleared within the polling period

网卡PCI信息:

# lspci -vvv -s 84:00.0
84:00.0 Ethernet controller: Intel Corporation 82599EB 10-Gigabit SFI/SFP+ Network Connection (rev 01)
        Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at f7e20000 (64-bit, non-prefetchable) [disabled] [size=128K]
        Region 2: I/O ports at f020 [disabled] [size=32]
        Region 4: Memory at f7e44000 (64-bit, non-prefetchable) [disabled] [size=16K]
        Capabilities: [40] Power Management version 3
                Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=1 PME-
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable+ 64bit+
                Address: 0000000000000000  Data: 0000
                Masking: 00000000  Pending: 00000000
        Capabilities: [70] MSI-X: Enable- Count=64 Masked-
                Vector table: BAR=4 offset=00000000
                PBA: BAR=4 offset=00002000
        Capabilities: [a0] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s <512ns, L1 <64us
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset+
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+ FLReset-
                        MaxPayload 128 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr+ UncorrErr+ FatalErr- UnsuppReq+ AuxPwr- TransPend-
                LnkCap: Port #4, Speed 5GT/s, Width x8, ASPM L0s, Latency L0 <2us, L1 <32us
                        ClockPM- Surprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 5GT/s, Width x8, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Range ABCD, TimeoutDis+
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
                LnkCtl2: Target Link Speed: 5GT/s, EnterCompliance- SpeedDis-, Selectable De-emphasis: -6dB
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
                         Compliance De-emphasis: -6dB
                LnkSta2: Current De-emphasis Level: -6dB
        Capabilities: [e0] Vital Product Data
                Unknown small resource type 06, will not decode more.
        Capabilities: [100] Advanced Error Reporting
                UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq+ ACSViol-
                UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UESvrt: DLP+ SDES- TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
                CESta:  RxErr+ BadTLP+ BadDLLP+ Rollover+ Timeout+ NonFatalErr+
                CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
                AERCap: First Error Pointer: 14, GenCap+ CGenEn- ChkCap+ ChkEn-
        Capabilities: [140] Device Serial Number 98-f5-37-ff-ff-e3-64-73
        Capabilities: [150] Alternative Routing-ID Interpretation (ARI)
                ARICap: MFVC- ACS-, Next Function: 1
                ARICtl: MFVC- ACS-, Function Group: 0
        Capabilities: [160] Single Root I/O Virtualization (SR-IOV)
                IOVCap: Migration-, Interrupt Message Number: 000
                IOVCtl: Enable- Migration- Interrupt- MSE- ARIHierarchy-
                IOVSta: Migration-
                Initial VFs: 64, Total VFs: 64, Number of VFs: 0, Function Dependency Link: 00
                VF offset: 384, stride: 2, Device ID: 10ed
                Supported Page Size: 00000553, System Page Size: 00000001
                Region 0: Memory at 0000000000000000 (64-bit, prefetchable)
                Region 3: Memory at 0000000000000000 (64-bit, prefetchable)
                VF Migration: offset: 00000000, BIR: 0
        Kernel driver in use: ixgbe
        Kernel modules: ixgbe

网卡寄存器信息:

# ethtool -d  eth0
0x042A4: LINKS (Link Status register)                 0xFFFFFFFF
       Link Status:                                   up
       Link Speed:                                    10G
0x05080: FCTRL (Filter Control register)              0xFFFFFFFF
       Receive Flow Control Packets:                  enabled
       Receive Priority Flow Control Packets:         enabled
       Discard Pause Frames:                          enabled
       Pass MAC Control Frames:                       enabled
       Broadcast Accept:                              enabled
       Unicast Promiscuous:                           enabled
       Multicast Promiscuous:                         enabled
       Store Bad Packets:                             enabled
0x05088: VLNCTRL (VLAN Control register)              0xFFFFFFFF
       VLAN Mode:                                     enabled
       VLAN Filter:                                   enabled
0x02100: SRRCTL0 (Split and Replic Rx Control 0)      0xFFFFFFFF
       Receive Buffer Size:                           16KB
0x03D00: RMCS (Receive Music Control register)        0xFFFFFFFF
       Transmit Flow Control:                         enabled
       Priority Flow Control:                         enabled
0x04250: HLREG0 (Highlander Control 0 register)       0xFFFFFFFF
       Transmit CRC:                                  enabled
       Receive CRC Strip:                             enabled
       Jumbo Frames:                                  enabled
       Pad Short Frames:                              enabled
       Loopback:                                      enabled
0x00000: CTRL        (Device Control)                 0xFFFFFFFF
0x00008: STATUS      (Device Status)                  0xFFFFFFFF
0x00018: CTRL_EXT    (Extended Device Control)        0xFFFFFFFF
0x00020: ESDP        (Extended SDP Control)           0xFFFFFFFF
0x00028: EODSDP      (Extended OD SDP Control)        0xFFFFFFFF
0x00200: LEDCTL      (LED Control)                    0xFFFFFFFF

........

0x01010: RDH00       (Receive Descriptor Head 00)     0xFFFFFFFF
0x01050: RDH01       (Receive Descriptor Head 01)     0xFFFFFFFF
0x01090: RDH02       (Receive Descriptor Head 02)     0xFFFFFFFF
0x010D0: RDH03       (Receive Descriptor Head 03)     0xFFFFFFFF
0x01110: RDH04       (Receive Descriptor Head 04)     0xFFFFFFFF

..........

0x01028: RXDCTL00    (Receive Descriptor Control 00)  0xFFFFFFFF
0x01068: RXDCTL01    (Receive Descriptor Control 01)  0xFFFFFFFF
0x010A8: RXDCTL02    (Receive Descriptor Control 02)  0xFFFFFFFF

........

0x06010: TDH00       (Transmit Descriptor Head 00)    0xFFFFFFFF
0x06050: TDH01       (Transmit Descriptor Head 01)    0xFFFFFFFF
0x06090: TDH02       (Transmit Descriptor Head 02)    0xFFFFFFFF
0x060D0: TDH03       (Transmit Descriptor Head 03)    0xFFFFFFFF
0x06110: TDH04       (Transmit Descriptor Head 04)    0xFFFFFFFF
0x06150: TDH05       (Transmit Descriptor Head 05)    0xFFFFFFFF

问题可能原因:

Bar0地址看起来没有问题,但寄存器全是0xffffffff了; 82599寄存器开始是正常的, 跑了一段时间(10小时)就 变成FFFF了;

可能pcie 接口接触问题。

转载于:https://www.cnblogs.com/smith9527/p/10348953.html

Intel 82599网卡异常挂死原因相关推荐

  1. I2C 挂死原因分析及解决方案

    I2C几乎是嵌入系统中最为通用串行总线,MCU周边的各种器件只要对速度要求不高都可以使用.优点是兼容性好(几乎所有MCU都有I2C主机控制器,没有也可以用IO模拟),管脚占用少,芯片实现简单.I2C协 ...

  2. linux 网卡自动挂死,shell脚本自动检测网络掉线和自动重连

    在ppp移植成功后,有时会出现ppp掉线等情况.这篇文章写了一个自动检测连接网络的解决方法. 创建一个shell脚本,在里面添加一下内容.(记得给操作权限) #!/bin/sh //根据你自己的she ...

  3. DPDK — 网卡初始化流程(Intel 82599 ixgbe 网卡驱动示例)

    目录 文章目录 目录 总览 rte_eth_dev/rte_eth_dev_data 数据结构 rte_eth_dev_count 函数 rte_eth_dev_configure 函数 ixgbe_ ...

  4. 一次挂死(hang)的处理过程及经验

    前言: CPU占用率低,内存还有许多空余,但网站无法响应,这就是网站挂死,通常也叫做hang.这种情况对于我这样既是CEO,又是CTO,还兼职扫地洗碗的个人站长来说根本就是家常便饭.以下是一次处理ha ...

  5. i2c- sda挂死分析

    I2C是由Philips公司发明的一种串行数据通信协议,仅使用两根信号线:SerialClock(简称SCL)和SerialData(简称SDA).I2C是总线结构,1个Master,1个或多个Sla ...

  6. redis 清空缓存_「镜头回放」简直了!spring中清除redis缓存导致应用挂死

    异常场景 springWeb应用一直运行正常,同事最近反应,每次版本更新完毕,刷新缓存,就会导致应用挂死.只有重启redis应用才恢复正常. 项目概况 springWeb项目,常用配置表做了redis ...

  7. MySQL 连接挂死了!该如何排查?

    开发者(KaiFaX) 面向全栈工程师的开发者 专注于前端.Java/Python/Go/PHP的技术社区 一.背景 近期由测试反馈的问题有点多,其中关于系统可靠性测试提出的问题令人感到头疼,一来这类 ...

  8. MySQL 连接为什么挂死了?

    [摘要] 本次分享的是一次关于 MySQL 高可用问题的定位过程,其中曲折颇多但问题本身却比较有些代表性,遂将其记录以供参考. 一.背景 近期由测试反馈的问题有点多,其中关于系统可靠性测试提出的问题令 ...

  9. 一个Job运行失败导致数据库挂死

    今天上午10点多的时候,同事接到一个电话,某数据库任何连接都连不上数据库,登录主机后发现,该数据库已经挂死,sqlplus都无法登陆,在alertlog中发现大量的"PMON failed ...

最新文章

  1. Jquery系列:checkbox 获取值、选中、设置值、事件监听等操作
  2. 使用doctest单元测试方式培训讲解:Python函数基础
  3. java 将查询到的值 存下_MyBatis3.x 从入门到精通(六)查询
  4. SQL经典问题1——产品、颜色、数量
  5. [转] 用Diff和Patch工具维护源码
  6. Kinect深度图与摄像头RGB的标定与配准(转载文章)
  7. C#和java的语法区别
  8. linux应用程序原理,LINUX原理及应用:第15章 XWindow及Genie应用程序
  9. c语言表达式1 33的值是,2015年计算机二级C语言测试题及答案(1)
  10. .net winform 里控件的Dock属性(Dock的Z 顺序停靠)
  11. j2me 移植 android,J2me移植Android初步探索
  12. 抖音无水印解析API
  13. mac如何挂载移动硬盘、U盘
  14. wps如何只让他显示3级标题_wps怎么把标题显示出来
  15. Spring整合Quartz实现动态定时器
  16. 【Java前端】CSS(一)[字体,文本属性,调试工具]
  17. VUCA时代,3招让项目计划管理更科学有序!
  18. html 屏幕旋转,屏幕旋转与Transform
  19. 【地图】高德静态地图(页面展示和导出Word)
  20. 微信小程序 | canvas为你的天气预报添加雨雪效果

热门文章

  1. Android之仿win8的Metro界面
  2. 逍遥安卓多开器出现android,逍遥安卓模拟器使用常见问题
  3. 华为交换机路由器命名规则
  4. 计算机中正数负数表示什么意思,负数正数的概念是什么
  5. 网文快捕保存网页并导出chm(360浏览器)
  6. 7-1 解密英文藏头诗 (15 分)
  7. 深度学习相关的主要 GPU 初识
  8. Android Q 强制黑暗模式(ForceDark) | 原理 实践
  9. 5G时代即将来临 将会带来哪些好处?
  10. 软件测试从业者必备核心素质