昨晚碰到一个由于网络延时,导致bond失败。
重启网络后,有10-15秒网络延时,出现PING不通的情况,15秒后PING正常。
问题:出现"Bringing up interface bond1: bonding device bond1 does not seem to be present, delaying initialization.
解决方法:
It turns out that in /sys/class/net/bonding_masters, you *need* to have bond1 listed. If not then a manual bond will fail (and of course so will an automatic bond).
So:
root@host# echo +bond1 > /sys/class/net/bonding_masters
root@host# ifconfig bond1
root@host# ifenslave bond1 eth1