Proxmox VE 网卡Hang解决方法
家里的NAS安装了Proxmox VE,总是出现网卡Hang,导致NAS总是断线。
网卡为I217-V:系统日志报错信息如下:
Oct 20 00:00:07 pve kernel: e1000e 0000:00:19.0 enp0s25: Detected Hardware Unit Hang:
TDH <4a>
TDT <71>
next_to_use <71>
next_to_clean <49>
buffer_info[next_to_clean]:
time_stamp <123eee4c7>
next_to_watch <4a>
jiffies <13e43ccc0>
next_to_watch.status <0>
MAC Status <80083>
PHY Status <796d>
PHY 1000BASE-T Status <3800>
PHY Extended Status <3000>
PCI Status <10>
经过测试,发现关掉网卡的部分offload功能可以有效缓解该问题。
一次性执行命令(需要安装 ethtool):
ethtool -K enp0s25 tso off gso off
开机执行: 修改/etc/network/interfaces文件,在出事的网口下添加post-up命令:
iface enp0s25 inet manual
post-up ethtool -K $IFACE tso off gso off
确认是否关闭TSO和GSO:
ethtool -k enp0s25
确认一下2项为否为off
tcp-segmentation-offload: off
generic-segmentation-offload: off