- 论坛徽章:
- 0
|
大家好,请教一个问题,我的系统是CentOS6 配置好了keepalvied,虚拟IP也是可以正常使用,ip addr也能查看到虚拟IP,但是日志里面就是有很多报错,iptables关闭了也不行,重装也不行,暂时想不到其它原来了,谢谢大家了!如下
Keepavlied版本:Keepalived v1.2.13
系统版本:CentOS6.5 x86_64
#####################################- [root@localhost keepalived]# ip addr
- 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
- link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
- inet 127.0.0.1/8 scope host lo
- inet6 ::1/128 scope host
- valid_lft forever preferred_lft forever
- 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
- link/ether 00:0c:29:17:9e:1c brd ff:ff:ff:ff:ff:ff
- inet 192.168.4.102/24 brd 192.168.4.255 scope global eth0
- inet 192.168.4.201/32 scope global eth0
- inet 192.168.4.202/32 scope global eth0
- inet6 fe80::20c:29ff:fe17:9e1c/64 scope link
- valid_lft forever preferred_lft forever
- [root@localhost keepalived]#
复制代码 #####################################
keepalvied日志:
##########################################- Aug 5 11:00:01 localhost Keepalived_vrrp[1552]: Process [4548] didn't respond to SIGTERM
- Aug 5 11:00:03 localhost Keepalived_vrrp[1552]: Process [4557] didn't respond to SIGTERM
- Aug 5 11:00:05 localhost Keepalived_vrrp[1552]: Process [4566] didn't respond to SIGTERM
- Aug 5 11:00:11 localhost Keepalived_vrrp[1552]: Process [4593] didn't respond to SIGTERM
- Aug 5 11:00:13 localhost Keepalived_vrrp[1552]: Process [4602] didn't respond to SIGTERM
- Aug 5 11:00:15 localhost Keepalived_vrrp[1552]: Process [4611] didn't respond to SIGTERM
- Aug 5 11:00:17 localhost Keepalived_vrrp[1552]: Process [4620] didn't respond to SIGTERM
- Aug 5 11:00:23 localhost Keepalived_vrrp[1552]: Process [4647] didn't respond to SIGTERM
- Aug 5 11:00:25 localhost Keepalived_vrrp[1552]: Process [4656] didn't respond to SIGTERM
- [root@localhost keepalived]#
复制代码 ##########################################
keepalived.conf文件
##########################################- ! Configuration File for keepalived
- global_defs {
- notification_email {
- acassen@firewall.loc
- failover@firewall.loc
- sysadmin@firewall.loc
- }
- notification_email_from Alexandre.Cassen@firewall.loc
- smtp_server 192.168.200.1
- smtp_connect_timeout 30
- router_id LVS_DEVEL
- }
- vrrp_script chk_nginx {
- script "/etc/keepalived/check_nginx.sh"
- }
- vrrp_instance VI_1 {
- state BACKUP
- interface eth0
- virtual_router_id 51
- priority 99
- advert_int 1
- authentication {
- auth_type PASS
- auth_pass 1111
- }
- track_script {
- chk_nginx
- 192.168.4.201
- }
- notify_master "/etc/keepalived/clean_arp.sh 192.168.4.201"
- vrrp_instance VI_2 {
- state MASTER
- interface eth0
- virtual_router_id 52
- priority 100
- advert_int 1
- authentication {
- auth_type PASS
- auth_pass 1111
- }
- virtual_ipaddress {
- 192.168.4.202
- }
- notify_master "/etc/keepalived/clean_arp.sh 192.168.4.202"
复制代码 ########################################## |
|