xcp-ng / xcp

Entry point for issues and wiki. Also contains some scripts and sources.
https://xcp-ng.org
1.32k stars 74 forks source link

Driver Problem OCe1111000 / Driver loaded but "No Connection" #632

Open Test012345678949 opened 10 months ago

Test012345678949 commented 10 months ago

Hi,

it is known that Emulex OCe Driver are critical. XCP 8.2.1 recognized the card without problems


Jan 11 22:49:22 xenserver-2 kernel: [    8.029611] be2net 0000:09:00.0: created 4 TX queue(s)
Jan 11 22:49:22 xenserver-2 kernel: [    8.149593] be2net 0000:09:00.0: created 5 RX queue(s)
Jan 11 22:49:22 xenserver-2 kernel: [    8.202735] be2net 0000:09:00.0: FW version is 11.1.215.0
Jan 11 22:49:22 xenserver-2 kernel: [    8.203765] be2net 0000:09:00.0: HW Flow control - TX:1 RX:1
Jan 11 22:49:22 xenserver-2 kernel: [    8.208991] be2net 0000:09:00.0: Emulex OneConnect(be3): PF  port 0
Jan 11 22:49:22 xenserver-2 kernel: [    8.209019] be2net 0000:09:00.1: be2net version is 12.0.0.0
Jan 11 22:49:22 xenserver-2 kernel: [    8.209116] xen: registering gsi 34 triggering 0 polarity 1
Jan 11 22:49:22 xenserver-2 kernel: [    8.209165] xen: --> pirq=34 -> irq=34 (gsi=34)
Jan 11 22:49:22 xenserver-2 kernel: [    8.209645] be2net 0000:09:00.1: PCIe error reporting enabled
Jan 11 22:49:22 xenserver-2 kernel: [    8.413585] be2net 0000:09:00.1: adapter not in advanced mode
Jan 11 22:49:22 xenserver-2 kernel: [    8.461585] be2net 0000:09:00.1: FW config: function_mode=0x2003, function_caps=0xf
Jan 11 22:49:22 xenserver-2 kernel: [    8.605588] be2net 0000:09:00.1: Max: txqs 16, rxqs 5, rss 4, eqs 16, vfs 0
Jan 11 22:49:22 xenserver-2 kernel: [    8.605592] be2net 0000:09:00.1: Max: uc-macs 30, mc-macs 64, vlans 64
Jan 11 22:49:22 xenserver-2 kernel: [    8.605924] be2net 0000:09:00.1: enabled 4 MSI-x vector(s) for NIC
Jan 11 22:49:22 xenserver-2 kernel: [    8.917596] be2net 0000:09:00.1: created 4 TX queue(s)
Jan 11 22:49:22 xenserver-2 kernel: [    9.037583] be2net 0000:09:00.1: created 5 RX queue(s)
Jan 11 22:49:22 xenserver-2 kernel: [    9.090722] be2net 0000:09:00.1: FW version is 11.1.215.0
Jan 11 22:49:22 xenserver-2 kernel: [    9.091750] be2net 0000:09:00.1: HW Flow control - TX:1 RX:1
Jan 11 22:49:22 xenserver-2 kernel: [    9.096948] be2net 0000:09:00.1: Emulex OneConnect(be3): PF  port 1

But in the end the card shows "No Connection"

This is some issue i don't know, but the reason i write.

With this code the card is working:

nano /etc/rc.local

#!/bin/bash
# THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES
#
# It is highly advisable to create own systemd services or udev rules
# to run scripts during boot instead of using this file.
#
# In contrast to previous versions due to parallel execution during boot
# this script will NOT be run after all other services.
#
# Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure
# that this script will be executed during boot.

touch /var/lock/subsys/local
sleep 30
ethtool -t eth4 >> /var/log/kern.log
ethtool -t eth5 >> /var/log/kern.log

exit 0

chmod +x /etc/rc.local

Test012345678949 commented 10 months ago

Here additional the output after ethtool activities:

Jan 11 22:49:26 xenserver-2 kernel: [   19.336485] be2net 0000:09:00.0 eth4: renamed from side-395-eth4
Jan 11 22:49:26 xenserver-2 kernel: [   19.392488] be2net 0000:09:00.1 eth5: renamed from side-4369-eth5
Jan 11 22:49:27 xenserver-2 kernel: [   19.710675] 8021q: 802.1Q VLAN Support v1.8
Jan 11 22:49:27 xenserver-2 kernel: [   20.561495] openvswitch: Open vSwitch switching datapath
Jan 11 22:49:29 xenserver-2 kernel: [   22.034979] device ovs-system entered promiscuous mode
Jan 11 22:49:29 xenserver-2 kernel: [   22.113970] device xenbr4 entered promiscuous mode
Jan 11 22:49:29 xenserver-2 kernel: [   22.202468] be2net 0000:09:00.0 eth4: Link is Down
Jan 11 22:49:29 xenserver-2 kernel: [   22.202903] 8021q: adding VLAN 0 to HW filter on device eth4
Jan 11 22:49:29 xenserver-2 kernel: [   22.240341] device eth4 entered promiscuous mode
Jan 11 22:49:29 xenserver-2 kernel: [   22.244536] be2net 0000:09:00.0 eth4: Link is Down
Jan 11 22:49:29 xenserver-2 kernel: [   22.401744] device xapi0 entered promiscuous mode
Jan 11 22:49:29 xenserver-2 kernel: [   22.480579] device eth5 entered promiscuous mode
Jan 11 22:49:29 xenserver-2 kernel: [   22.482485] be2net 0000:09:00.1 eth5: Link is Down
Jan 11 22:49:29 xenserver-2 kernel: [   22.485195] device eth0 entered promiscuous mode
Jan 11 22:49:29 xenserver-2 kernel: [   22.534498] be2net 0000:09:00.1 eth5: Link is Down
Jan 11 22:49:29 xenserver-2 kernel: [   22.534866] 8021q: adding VLAN 0 to HW filter on device eth5
Jan 11 22:49:57 xenserver-2 kernel: [   **49.648665**] be2net 0000:09:00.0 eth4: Link is Up
The test result is PASS
The test extra info:
MAC Loopback test        0
PHY Loopback test        0
External Loopback test   0
DDR DMA test     0
Link test        0

Jan 11 22:50:02 xenserver-2 kernel: [   **55.509742**] be2net 0000:09:00.0 eth4: Link is Up
Jan 11 22:50:07 xenserver-2 kernel: [   **59.648547**] be2net 0000:09:00.1 eth5: Link is Up
The test result is PASS
The test extra info:
MAC Loopback test        0
PHY Loopback test        0
External Loopback test   0
DDR DMA test     0
Link test        0

Jan 11 22:50:12 xenserver-2 kernel: [   **65.559896**] be2net 0000:09:00.1 eth5: Link is Up