两张相同的网卡,一张无人认领

两张相同的网卡,一张无人认领

我的服务器中有两个相同的网卡,我在其上运行 Proxmox VE。其中一个运行良好unclaimed,另一个运行良好。有人能帮忙吗?据我所知,这unclaimed通常是司机失踪的暗示。但为什么第二张卡有效呢?这可能是硬件故障吗?

感谢您的任何答复!

lshw -class network输出:

root@pve:~# lshw -class network
  *-network:0 UNCLAIMED     
       description: Ethernet controller
       product: NetXtreme BCM5720 Gigabit Ethernet PCIe
       vendor: Broadcom Inc. and subsidiaries
       physical id: 0
       bus info: pci@0000:04:00.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pm vpd msi msix pciexpress cap_list
       configuration: latency=0
       resources: memory:91930000-9193ffff memory:91940000-9194ffff memory:91950000-9195ffff memory:91d40000-91d407ff
  *-network:1
       description: Ethernet interface
       product: NetXtreme BCM5720 Gigabit Ethernet PCIe
       vendor: Broadcom Inc. and subsidiaries
       physical id: 0.1
       bus info: pci@0000:04:00.1
       logical name: eno2
       version: 00
       serial: 2c:ea:7f:e0:4a:59
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm vpd msi msix pciexpress bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=6.2.16-3-pve duplex=full firmware=FFV21.60.8 bc 5720-v1.39 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s

整个dmesg输出可用作要点但我认为相关部分 ( dmesg | grep tg3) 在这里:

[    1.076509] tg3 0000:04:00.0: phy probe failed, err -19
[    1.094731] tg3 0000:04:00.0: Problem fetching invariants of chip, aborting
[    1.117495] tg3 0000:04:00.1 eth0: Tigon3 [partno(BCM95720) rev 5720000] (PCI Express) MAC address 2c:ea:7f:e0:4a:59
[    1.117499] tg3 0000:04:00.1 eth0: attached PHY is 5720C (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
[    1.117500] tg3 0000:04:00.1 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] TSOcap[1]
[    1.117502] tg3 0000:04:00.1 eth0: dma_rwctrl[00000001] dma_mask[64-bit]
[    1.125569] tg3 0000:04:00.1 eno2: renamed from eth0
[    8.677752] tg3 0000:04:00.1 eno2: Link is up at 1000 Mbps, full duplex
[    8.677755] tg3 0000:04:00.1 eno2: Flow control is off for TX and off for RX
[    8.677756] tg3 0000:04:00.1 eno2: EEE is disabled
[ 1190.696920]  dm_thin_pool dm_persistent_data dm_bio_prison dm_bufio libcrc32c hid_generic usbmouse usbhid hid xhci_pci xhci_pci_renesas intel_lpss_pci crc32_pclmul ahci spi_intel_pci i2c_i801 intel_lpss mpt3sas raid_class spi_intel i2c_smbus idma64 tg3 libahci xhci_hcd scsi_transport_sas video pinctrl_cannonlake wmi

内核在启动时识别此消息

Linux version 6.2.16-3-pve (tom@sbuild) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC PVE 6.2.16-3 (2023-06-17T05:58Z) ()

lspci | grep net输出:

root@pve:~# lspci | grep net
04:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5720 Gigabit Ethernet PCIe
04:00.1 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5720 Gigabit Ethernet PCIe

答案1

看起来一个是控制器,另一个是接口。第二个接口根本没有列出。

根据 AskUbuntu 上的相关回答,Broadcom BCM5720 无法在 Ubuntu 20.04 服务器中工作,这是由驱动程序不匹配触发的,系统错误地使用tg3(Tigon) 驱动程序。

答案提出的解决方案是安装linux-modules-extra软件包并使用bnx2模块而不是tg3.

一旦您拥有bnx2它,它可能会优先于tg3自动加载,或者我们可能必须tg3bnx2.目前,由于没有可用于测试的卡,我无法判断。

答案2

所以我们最终把它修好了。事实证明,在硬重置和断电后,硬件以某种方式自行修复。tg3实际上是正确的驱动程序,所以它现在可以工作了。感谢@roaima的支持!

相关内容