Here are the steps I followed from my last attempt:
Before starting, the 8 port Unifi aggregation switch ports (#3 & 4) were working at 10Gbps and the TrueNAS Scale server was assigned with two static /24 addresses (10.0.0.3/24 & 10.0.0.4/24). These IPs are set to fixed in the Unifi UDM GUI for the client. They are configured the same way as the ports for my Proxmox server that is working with two bonded 10Gbps ports.
Last attempt:
- Configured the 8 port Unifi aggregation switch operation to "Aggregate" and assigned the aggregate ports for #3 & 4. The Link speed on the switch ports is manually set to 10Gbps FDX. As expected I would lose the connection to the switch so I would use the IPMI connection to the Mini to configure the connection on the server.
- On the TrueNAS server I would select "Configure network interfaces", then create a new network interface with the following settings:
type: Link_Aggregation
name: bond0
description: empty string
ipv4_dhcp: No
ipv6_auto: No
aliases: empty list
lag_protocol: LACP
lag_ports: eno1, eno2
xmit_hash_policy: None
lacpdu_rate: Slow
mtu: default
I ran the connection test but it was unreachable and would return to the previous state after 60 seconds.
I don't know if this is helpful, but I was configuring two 1G ports against my switch (although not a Ubiquiti switch) in LACP mode, and I found I had to set the LACPDU rate to fast for the switch to like it. Also in the config above, "aliases" is "empty list". Looks like there is no IP address set, because that would show under aliases (unless it was DHCP, but that's "no" too).
In testing, I found there was no real gain, because each flow would use only one interface, not both simultaneously. You could have multiple clients using the LAG simultaneously, but only a single interface per flow. I can saturate a 1G, but not a 10G with my traffic, so I just moved to a single 10G. Sounds like you need the LAGged 10Gs though.