主板: 微星MSI 迫击炮 B550
网卡: Intel Corporation Ethernet Connection (7) I219-V (rev 10)
内核版本: Linux 5.11.22-1-pve #1 SMP PVE 5.11.22-2
PVE版本: pve-manager/7.0-8/b1dbf562
问题现象: 每隔1-3分钟, 网卡会掉线15-30秒, 期间ping丢包100%, ip丢包100%. 系统日志提示如下:
Aug 15 18:48:46 proxmox kernel: e1000e 0000:00:1f.6 eno1: Detected Hardware Unit Hang:
TDH <39>
TDT <7b>
next_to_use <7b>
next_to_clean <38>
buffer_info[next_to_clean]:
time_stamp <1015769ac>
next_to_watch <39>
jiffies <101576ae0>
next_to_watch.status <0>
MAC Status <40080083>
PHY Status <796d>
PHY 1000BASE-T Status <3800>
PHY Extended Status <3000>
PCI Status <10>
Aug 15 18:48:48 proxmox kernel: e1000e 0000:00:1f.6 eno1: Detected Hardware Unit Hang:
TDH <39>
TDT <7b>
next_to_use <7b>
next_to_clean <38>
buffer_info[next_to_clean]:
time_stamp <1015769ac>
next_to_watch <39>
jiffies <101576cd0>
next_to_watch.status <0>
MAC Status <40080083>
PHY Status <796d>
PHY 1000BASE-T Status <3800>
PHY Extended Status <3000>
PCI Status <10>
Aug 15 18:48:50 proxmox kernel: e1000e 0000:00:1f.6 eno1: Detected Hardware Unit Hang:
TDH <39>
TDT <7b>
next_to_use <7b>
next_to_clean <38>
buffer_info[next_to_clean]:
time_stamp <1015769ac>
next_to_watch <39>
jiffies <101576ec8>
next_to_watch.status <0>
MAC Status <40080083>
PHY Status <796d>
PHY 1000BASE-T Status <3800>
PHY Extended Status <3000>
PCI Status <10>
Aug 15 18:48:52 proxmox kernel: e1000e 0000:00:1f.6 eno1: Detected Hardware Unit Hang:
TDH <39>
TDT <7b>
next_to_use <7b>
next_to_clean <38>
buffer_info[next_to_clean]:
time_stamp <1015769ac>
next_to_watch <39>
jiffies <1015770b8>
next_to_watch.status <0>
MAC Status <40080083>
PHY Status <796d>
PHY 1000BASE-T Status <3800>
PHY Extended Status <3000>
PCI Status <10>
Aug 15 18:48:54 proxmox kernel: e1000e 0000:00:1f.6 eno1: Detected Hardware Unit Hang:
TDH <39>
TDT <7b>
next_to_use <7b>
next_to_clean <38>
buffer_info[next_to_clean]:
time_stamp <1015769ac>
next_to_watch <39>
jiffies <1015772b0>
next_to_watch.status <0>
MAC Status <40080083>
PHY Status <796d>
PHY 1000BASE-T Status <3800>
PHY Extended Status <3000>
PCI Status <10>
Aug 15 18:48:54 proxmox kernel: e1000e 0000:00:1f.6 eno1: Reset adapter unexpectedly
解决方法: 驱动问题, 需要关闭网卡的一些属性.
ethtool -K eno1 gso off gro off tso off tx off rx off rxvlan off txvlan off sg off
使用apt install -y ethtool
以安装以太网工具.
此改动仅限本次开机期间, 重启后会失效. 持久化保存需要修改 /etc/network/interfaces
在对应的网卡配置下, 与address
同级添加配置:
offload-gso off
offload-gro off
offload-tso off
offload-rx off
offload-tx off
offload-rxvlan off
offload-txvlan off
offload-sg off
offload-ufo off
offload-lro off
参考
e1000 driver hang | Proxmox Support Forum
e1000 driver hang | Page 8 | Proxmox Support Forum
e1000e eno1: Detected Hardware Unit Hang: | Proxmox Support Forum