Issue
Using multiple NICs for the Storage Network / Bonding mode
Resolve
If you select multiple NICs to use for the Storage Network on a Hypervisor they will be bonded using mode 0, also known as balance-rr
Bonding Mode: load balancing (round-robin)
You can check the status of the bond with the following command when logged into the Hypervisor:
cat /etc/modprobe.d/onappstorebond
Comments
1 comment
Please be aware that this bonding mode requires additional switch configuration if both ports are going to the same switch or you will run into issues.
If you are using multiple switches for redundancy, it's best to use active-backup bonding instead. This custom code will change the onappstorebond interface to active-backup:
#change bonding mode to active-backup
ifdown onappstorebond
ip link set `cat /proc/net/bonding/onappstorebond | grep 'Slave Interface' | cut -d : -f 2 | head -n 1 | tr -d '\n'` down
ip link set `cat /proc/net/bonding/onappstorebond | grep 'Slave Interface' | cut -d : -f 2 | tail -n 1 | tr -d '\n'` down
cat /etc/modprobe.d/onappstorebond | grep -v options > /tmp/onappstorebond
mv /tmp/onappstorebond /etc/modprobe.d/onappstorebond
echo 'BONDING_OPTS="mode=1 miimon=100"' >> /etc/sysconfig/network-scripts/ifcfg-onappstorebond
ifup onappstorebond
Please sign in to leave a comment.