【分析过程】
LVS部署完成后,验证轮询异常,执行如下命令判断iptables是否正常
iptables -t mangle –list
如下所示,iptables配置没有生效

查看/etc/rc.d/rc.local文件中的配置项信息,缺少网卡的相关设置信息,有iptables的信息但是没有生效,
修复方法
LVS安装完成后 手动在lvs主备添加iptables启动项,cn和lvs节点手动添加网卡配置项
ethtool -K bond0 gro off lro off gso off tso off
ethtool -K bond1 gro off lro off gso off tso off
ethtool -K enp131s0 gro off lro off gso off tso off
ethtool -K enp132s0 gro off lro off gso off tso off
ethtool -K enp135s0f0 gro off lro off gso off tso off
ethtool -K enp135s0f1 gro off lro off gso off tso off
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/tech/bigdata/316589.html