LACP Rate - Fast
DHall
2 Posts
March 2, 2020, 7:36 pmQuote from DHall on March 2, 2020, 7:36 pmI 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"
],
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"
],
Last edited on March 2, 2020, 8:06 pm by DHall · #1
DividedByPi
32 Posts
DHall
2 Posts
October 21, 2020, 6:25 pmQuote from DHall on October 21, 2020, 6:25 pmI 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
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
admin
2,930 Posts
October 21, 2020, 7:00 pmQuote from admin on October 21, 2020, 7:00 pmYou 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
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
Last edited on October 21, 2020, 7:00 pm by admin · #4
LACP Rate - Fast
DHall
2 Posts
Quote from DHall on March 2, 2020, 7:36 pmI 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"
],
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"
],
DividedByPi
32 Posts
DHall
2 Posts
Quote from DHall on October 21, 2020, 6:25 pmI 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.confroot@hostname:~# cat /proc/net/bonding/bond* | grep LACP
LACP rate: fast
LACP rate: fast
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
admin
2,930 Posts
Quote from admin on October 21, 2020, 7:00 pmYou can add any custom configuration in the script :
/opt/petasan/scripts/custom/post_start_network.shit 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
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