Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LibreQoS 1.4] - lqosd not running #427

Open
reinaldosaraiva opened this issue Nov 27, 2023 · 1 comment
Open

[LibreQoS 1.4] - lqosd not running #427

reinaldosaraiva opened this issue Nov 27, 2023 · 1 comment

Comments

@reinaldosaraiva
Copy link

reinaldosaraiva commented Nov 27, 2023

I'm trying to install and configure libreqos 1.4 on Ubuntu 22.04, but I'm not succeeding. It shows the following error:
Nov 27 18:03:59 CNE1A-SRV-0051 lqosd[1182783]: [2023-11-27T18:03:59Z INFO lqosd] LibreQoS Daemon Starting
Nov 27 18:03:59 lqosd[1182783]: [2023-11-27T18:03:59Z INFO lqos_sys::lqos_kernel] Unloading XDP/TC
Nov 27 18:03:59 lqosd[1182783]: [2023-11-27T18:03:59Z WARN lqos_sys::lqos_kernel] Attached in SKB compatibility mode. (Not so fast)
Nov 27 18:03:59 lqosd[1182783]: [2023-11-27T18:03:59Z INFO lqos_sys::cpu_map] xps_setup
Nov 27 18:03:59 lqosd[1182783]: [2023-11-27T18:03:59Z INFO lqos_sys::lqos_kernel] Unloading XDP/TC
Nov 27 18:03:59 lqosd[1182783]: [2023-11-27T18:03:59Z INFO lqos_sys::lqos_kernel] Unloading XDP/TC
Nov 27 18:03:59 lqosd[1182783]: Error: No such file or directory (os error 2)
Nov 27 18:03:59 systemd[1]: lqosd.service: Main process exited, code=exited, status=1/FAILURE
Nov 27 18:03:59 systemd[1]: lqosd.service: Failed with result 'exit-code'.
Nov 27 18:03:59 systemd[1]: lqosd.service: Scheduled restart job, restart counter is at 5.
Nov 27 18:03:59 systemd[1]: Stopped lqosd.service.
Nov 27 18:03:59 systemd[1]: lqosd.service: Start request repeated too quickly.
Nov 27 18:03:59 systemd[1]: lqosd.service: Failed with result 'exit-code'.
Nov 27 18:03:59 systemd[1]: Failed to start lqosd.service.

cat /etc/netplan/50-cloud-init.yaml
network:
bonds:
bond0:
interfaces:
- eno3
- eno4
macaddress: 38:68:dd:66:b5:2a
mtu: 9000
parameters:
down-delay: 0
lacp-rate: fast
mii-monitor-interval: 100
mode: 802.3ad
transmit-hash-policy: layer3+4
up-delay: 0
bond1:
interfaces:
- ens2f0np0
- ens2f1np1
#macaddress:
mtu: 9216
parameters:
down-delay: 0
lacp-rate: fast
mii-monitor-interval: 100
mode: 802.3ad
transmit-hash-policy: layer3+4
up-delay: 0
bond2:
interfaces:
- ens3f0np0
- ens3f1np1
#macaddress:
mtu: 9216
parameters:
down-delay: 0
lacp-rate: fast
mii-monitor-interval: 100
mode: 802.3ad
transmit-hash-policy: layer3+4
up-delay: 0
bridges:
br-ir254:
addresses:
- 10.XX.YY.7/26
interfaces:
- bond0.254
macaddress: 38:68:dd:66:b5:2a
mtu: 9000
parameters:
forward-delay: 15
stp: false
routes:
- to: 10.XX.0.0/16
via: 10.XX.YY.1

    br-irbr255:
        addresses:
        - 10.XX.YY.7/26
        interfaces:
        - bond0.255
        macaddress: 38:68:dd:66:b5:2a
        mtu: 9000
        parameters:
            forward-delay: 15
            stp: false
        routes:
          - to: 10.XX.YY.0/22
            via: 10.XX.YY.1
    br-maas:
        interfaces:
        - bond0
        macaddress: 38:68:dd:66:b5:2a
        mtu: 9000
        parameters:
            forward-delay: 15
            stp: false
ethernets:
    eno1:
        match:
            macaddress: 38:68:dd:66:b5:28
        mtu: 9000
        set-name: eno1
    eno2:
        match:
            macaddress: 38:68:dd:66:b5:29
        mtu: 9000
        set-name: eno2
    eno3:
        match:
            macaddress: 38:68:dd:66:b5:2a
        mtu: 9000
        set-name: eno3
    eno4:
        match:
            macaddress: 38:68:dd:66:b5:2b
        mtu: 9000
        set-name: eno4
    ens2f0np0:
        match:
            macaddress: 10:70:fd:a9:25:54
        mtu: 9216
        set-name: ens2f0np0
    ens2f1np1:
        match:
            macaddress: 10:70:fd:a9:25:55
        mtu: 9216
          #optional: true
        set-name: ens2f1np1
    ens3f0np0:
        match:
            macaddress: 10:70:fd:a9:27:64
        mtu: 9216
        set-name: ens3f0np0
    ens3f1np1:
        match:
            macaddress: 10:70:fd:a9:27:65
        mtu: 9216
        set-name: ens3f1np1
version: 2
vlans:
    bond0.254:
        id: 254
        link: bond0
        mtu: 9000
    bond0.255:
        id: 255
        link: bond0
        mtu: 9000
    bond1.708:
        id: 708
        link: bond1
        mtu: 9216
    bond2.709:
        id: 709
        link: bond2
        mtu: 9216

End of File

cat /etc/lqos.conf
lqos_directory = '/opt/libreqos/src'
queue_check_period_ms = 1000
node_id = "28f6305d-577e-4556-8e85-88d2f0e365b3"

[tuning]
stop_irq_balance = true
netdev_budget_usecs = 8000
netdev_budget_packets = 300
rx_usecs = 8
tx_usecs = 8
disable_rxvlan = true
disable_txvlan = true
disable_offload = [ "gso", "tso", "lro", "sg", "gro" ]

[bridge]
use_xdp_bridge = true
interface_mapping = [
{ name = "bond2.709", redirect_to = "bond1.708", scan_vlans = false },
{ name = "bond1.708", redirect_to = "bond2.709", scan_vlans = false }
]
vlan_mapping = []

[usage_stats]
send_anonymous = false
anonymous_server = "stats.libreqos.io:9125"

@interduo
Copy link
Collaborator

interduo commented Dec 4, 2023

XDP doesn't work on bond devices as I remember.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants