Intel 网卡驱动问题,特别是 e1000e

查看日志得到错误信息:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
April 11 16:57:03 pve kernel: e1000e 0000:00:1f.6 eno1: Detected Hardware Unit Hang:
TDH <5a>
TDT <73>
next_to_use <73>
next_to_clean <59>
buffer_info[next_to_clean]:
time_stamp <100fc80e1>
next_to_watch <5a>
jiffies <101081840>
next_to_watch.status <0>
MAC Status <80083>
PHY Status <796d>
PHY 1000BASE-T Status <3c00>
PHY Extended Status <3000>
PCI Status <10>

这种情况在重网络负载时如大文件传输时容易发生

解决方案

apt install -y ethtool 安装以太网工具

/sbin/ethtool -K 主网卡名 tx off rx off 临时关闭网卡加速功能,

如需彻底解决:

vim /etc/network/interfaces

比如vmbr0桥接的主网卡,主网卡没有设置自启动,但vmbr0设置了,那就配置在vmbr0下面也是可以的:

1
2
3
4
5
6
7
iface vmbr0 inet static
address 192.168.1.xxx/24
gateway 192.168.1.1
bridge-ports eno1
bridge-stp off
bridge-fd 0
post-up /sbin/ethtool -K eno1 tx off rx off

重启通过命令 ethtool -k 主网卡 | grep ' on' 查看是否生效:

确定rx-checksumming和tx-checksumming都是off