Forums

Home / Forums

You need to log in to create posts and topics. Login · Register

LACP Rate - Fast

I am using a bonded interface setup and would like to set the lacp rate to fast instead of the default slow. I tried guessing and putting values in the cluster_info.json file but didn't have any luck. Anyone able to provide insight on the PetaSAN supported way to enable this?

Here is a snippet from  /opt/petasan/config/cluster_info.json and the bold entries below were my guesses at how to configure.

"bonds": [
{
"interfaces": "eth1,eth2",
"is_jumbo_frames": true,
"mode": "802.3ad",
"lacp_rate": "fast",
"name": "bond0",
"primary_interface": ""
},
{
"interfaces": "eth3,eth4",
"is_jumbo_frames": true,
"mode": "802.3ad",
"lacp_rate": "1",
"name": "bond1",
"primary_interface": ""
}
],
"eth_count": 6,
"iscsi_1_eth_name": "bond0",
"iscsi_2_eth_name": "bond1",
"jumbo_frames": [
"eth1",
"eth2",
"eth3",
"eth4"
],

bump?

I didn't find a way in the petasan config so I did it in linux instead.

 

ifconfig bond0 down
echo "fast 1" > /sys/class/net/bond0/bonding/lacp_rate
ifconfig bond0 up
ifconfig bond1 down
echo "fast 1" > /sys/class/net/bond1/bonding/lacp_rate
ifconfig bond1 up
touch /etc/modprobe.d/bonding.conf
echo "options bonding lacp_rate=1 mode=4 miimon=100" > /etc/modprobe.d/bonding.conf

root@hostname:~# cat /proc/net/bonding/bond* | grep LACP
LACP rate: fast
LACP rate: fast

You can add any custom configuration in the script :
/opt/petasan/scripts/custom/post_start_network.sh

it is a stub/empty script called after PetaSAN does its own thing.

Example:

echo 200 > /sys/class/net/bond0/bonding/miimon
echo 400 > /sys/class/net/bond0/bonding/downdelay
echo 400 > /sys/class/net/bond0/bonding/updelay
echo layer3+4 > /sys/class/net/bond0/bonding/xmit_hash_policy

# Setting lacp rate requires putting the bond down first. so add:
ifconfig bond0 down
echo fast > /sys/class/net/bond0/bonding/lacp_rate
ifconfig bond0 up