如果看完博客文章有问题的同鞋可以在这边留言哦!

Comments

  • wenjiapeng on

    redis_sentinel利用脚本改变vip的过程中发现了一个错误,
    DEBUG echo “/sbin/ip addr add ${VIP}/${MASK} dev ${IFACE}”
    sudo /sbin/ip addr add ${VIP}/${MASK} dev ${IFACE}
    DEBUG echo $?
    DEBUG echo “IP Arp cleaning: /usr/sbin/arping -q -f -c 1 -A ${VIP} -I ${IFACE}”
    sudo /usr/sbin/arping -q -f -c 1 -A ${VIP} -I ${IFACE}
    DEBUG echo $?
    DEBUG echo “IP Failover finished!”

    Master: 10.10.81.24 My IP: 10.10.81.24
    /sbin/ip addr add 10.10.80.129/16 dev eth5
    1
    IP Arp cleaning: /usr/sbin/arping -q -f -c 1 -A 10.10.80.129 -I eth5
    1
    IP Failover finished!
    执行ip 命令时返回了1,导致vip并没有设置成功,删除也同样不会成功

    reply

Leave a Reply

Your email address will not be published. Name and email are required