203 master 服务器
May 24 15:47:38 xxt01 Keepalived_vrrp[14242]: Configuration is using : 63545 Bytes
May 24 15:47:38 xxt01 Keepalived_vrrp[14242]: Using LinkWatch kernel netlink reflector...
May 24 15:47:38 xxt01 Keepalived_vrrp[14242]: VRRP sockpool: [ifindex(2), proto(112), unicast(0), fd(10,11)]
May 24 15:47:38 xxt01 Keepalived_healthcheckers[14241]: Using LinkWatch kernel netlink reflector...
May 24 15:47:38 xxt01 Keepalived_healthcheckers[14241]: Activating healthchecker for service [10.6.0.203]:3306
May 24 15:47:39 xxt01 Keepalived_vrrp[14242]: VRRP_Instance(VI_1) Transition to MASTER STATE
May 24 15:47:40 xxt01 Keepalived_vrrp[14242]: VRRP_Instance(VI_1) Entering MASTER STATE
May 24 15:47:40 xxt01 Keepalived_vrrp[14242]: VRRP_Instance(VI_1) setting protocol VIPs.
May 24 15:47:40 xxt01 Keepalived_healthcheckers[14241]: Netlink reflector reports IP 10.6.0.205 added
May 24 15:47:40 xxt01 Keepalived_vrrp[14242]: VRRP_Instance(VI_1) Sending gratuitous ARPs on eth0 for 10.6.0.205
May 24 15:47:45 xxt01 Keepalived_vrrp[14242]: VRRP_Instance(VI_1) Sending gratuitous ARPs on eth0 for 10.6.0.205
May 24 15:56:27 xxt01 Keepalived_vrrp[14242]: VRRP_Instance(VI_1) Received higher prio advert
May 24 15:56:27 xxt01 Keepalived_vrrp[14242]: VRRP_Instance(VI_1) Entering BACKUP STATE
May 24 15:56:27 xxt01 Keepalived_vrrp[14242]: VRRP_Instance(VI_1) removing protocol VIPs.
May 24 15:56:27 xxt01 Keepalived_healthcheckers[14241]: Netlink reflector reports IP 10.6.0.205 removed
May 24 16:01:28 xxt01 Keepalived_vrrp[14242]: VRRP_Instance(VI_1) Transition to MASTER STATE
May 24 16:01:29 xxt01 Keepalived_vrrp[14242]: VRRP_Instance(VI_1) Entering MASTER STATE
May 24 16:01:29 xxt01 Keepalived_vrrp[14242]: VRRP_Instance(VI_1) setting protocol VIPs.
May 24 16:01:29 xxt01 Keepalived_vrrp[14242]: VRRP_Instance(VI_1) Sending gratuitous ARPs on eth0 for 10.6.0.205
May 24 16:01:29 xxt01 Keepalived_healthcheckers[14241]: Netlink reflector reports IP 10.6.0.205 added
May 24 16:01:34 xxt01 Keepalived_vrrp[14242]: VRRP_Instance(VI_1) Sending gratuitous ARPs on eth0 for 10.6.0.205
May 24 16:08:36 xxt01 Keepalived_vrrp[14242]: VRRP_Instance(VI_1) Received higher prio advert
May 24 16:08:36 xxt01 Keepalived_vrrp[14242]: VRRP_Instance(VI_1) Entering BACKUP STATE
May 24 16:08:36 xxt01 Keepalived_vrrp[14242]: VRRP_Instance(VI_1) removing protocol VIPs.
May 24 16:08:36 xxt01 Keepalived_healthcheckers[14241]: Netlink reflector reports IP 10.6.0.205 removed
204 slave 服务器
May 24 16:08:36 xxt02 Keepalived[15014]: Starting Keepalived v1.2.15 (05/24,2016)
May 24 16:08:36 xxt02 Keepalived[15015]: Starting Healthcheck child process, pid=15016
May 24 16:08:36 xxt02 Keepalived[15015]: Starting VRRP child process, pid=15017
May 24 16:08:36 xxt02 Keepalived_healthcheckers[15016]: Netlink reflector reports IP 10.6.0.204 added
May 24 16:08:36 xxt02 Keepalived_healthcheckers[15016]: Netlink reflector reports IP fe80::20c:29ff:fe06:5661 added
May 24 16:08:36 xxt02 Keepalived_healthcheckers[15016]: Registering Kernel netlink reflector
May 24 16:08:36 xxt02 Keepalived_healthcheckers[15016]: Registering Kernel netlink command channel
May 24 16:08:36 xxt02 Keepalived_vrrp[15017]: Netlink reflector reports IP 10.6.0.204 added
May 24 16:08:36 xxt02 Keepalived_vrrp[15017]: Netlink reflector reports IP fe80::20c:29ff:fe06:5661 added
May 24 16:08:36 xxt02 Keepalived_vrrp[15017]: Registering Kernel netlink reflector
May 24 16:08:36 xxt02 Keepalived_healthcheckers[15016]: Opening file '/etc/keepalived/keepalived.conf'.
May 24 16:08:36 xxt02 Keepalived_vrrp[15017]: Registering Kernel netlink command channel
May 24 16:08:36 xxt02 Keepalived_healthcheckers[15016]: Configuration is using : 11978 Bytes
May 24 16:08:36 xxt02 Keepalived_vrrp[15017]: Registering gratuitous ARP shared channel
May 24 16:08:36 xxt02 Keepalived_vrrp[15017]: Opening file '/etc/keepalived/keepalived.conf'.
May 24 16:08:36 xxt02 Keepalived_vrrp[15017]: Configuration is using : 63545 Bytes
May 24 16:08:36 xxt02 Keepalived_vrrp[15017]: Using LinkWatch kernel netlink reflector...
May 24 16:08:36 xxt02 Keepalived_healthcheckers[15016]: Using LinkWatch kernel netlink reflector...
May 24 16:08:36 xxt02 Keepalived_healthcheckers[15016]: Activating healthchecker for service [10.6.0.204]:3306
May 24 16:08:36 xxt02 Keepalived_vrrp[15017]: VRRP sockpool: [ifindex(2), proto(112), unicast(0), fd(10,11)]
May 24 16:08:36 xxt02 Keepalived_vrrp[15017]: VRRP_Instance(VI_1) Transition to MASTER STATE
May 24 16:08:36 xxt02 Keepalived_vrrp[15017]: VRRP_Instance(VI_1) Received lower prio advert, forcing new election
May 24 16:08:37 xxt02 Keepalived_vrrp[15017]: VRRP_Instance(VI_1) Entering MASTER STATE
May 24 16:08:37 xxt02 Keepalived_vrrp[15017]: VRRP_Instance(VI_1) setting protocol VIPs.
May 24 16:08:37 xxt02 Keepalived_healthcheckers[15016]: Netlink reflector reports IP 10.6.0.205 added
May 24 16:08:37 xxt02 Keepalived_vrrp[15017]: VRRP_Instance(VI_1) Sending gratuitous ARPs on eth0 for 10.6.0.205
May 24 16:08:42 xxt02 Keepalived_vrrp[15017]: VRRP_Instance(VI_1) Sending gratuitous ARPs on eth0 for 10.6.0.205
May 24 16:10:14 xxt02 yum[15023]: Installed: 2:nmap-5.51-3.el6.x86_64
[root@xxt01 mysql]# nmap 10.6.0.205
Starting Nmap 5.51 ( http://nmap.org ) at 2016-05-24 16:14 CST
mass_dns: warning: Unable to determine any DNS servers. Reverse DNS is disabled. Try using --system-dns or specify valid servers with --dns-servers
Nmap scan report for 10.6.0.205
Host is up (0.00029s latency).
Not shown: 998 closed ports
PORT STATE SERVICE
111/tcp open rpcbind
3306/tcp open mysql
MAC Address: 00:0C:29:06:56:61 (VMware)
Nmap done: 1 IP address (1 host up) scanned in 1.21 seconds
[root@xxt01 mysql]# nmap 10.6.0.203
Starting Nmap 5.51 ( http://nmap.org ) at 2016-05-24 16:15 CST
mass_dns: warning: Unable to determine any DNS servers. Reverse DNS is disabled. Try using --system-dns or specify valid servers with --dns-servers
Nmap scan report for 10.6.0.203
Host is up (0.0000050s latency).
Not shown: 998 closed ports
PORT STATE SERVICE
111/tcp open rpcbind
3306/tcp open mysql
Nmap done: 1 IP address (1 host up) scanned in 0.08 seconds
[root@xxt01 mysql]#
[root@xxt01 mysql]# nmap 10.6.0.205
Starting Nmap 5.51 ( http://nmap.org ) at 2016-05-24 16:14 CST
mass_dns: warning: Unable to determine any DNS servers. Reverse DNS is disabled. Try using --system-dns or specify valid servers with --dns-servers
Nmap scan report for 10.6.0.205
Host is up (0.00029s latency).
Not shown: 998 closed ports
PORT STATE SERVICE
111/tcp open rpcbind
3306/tcp open mysql
MAC Address: 00:0C:29:06:56:61 (VMware)
Nmap done: 1 IP address (1 host up) scanned in 1.21 seconds
[root@xxt01 mysql]# nmap 10.6.0.203
Starting Nmap 5.51 ( http://nmap.org ) at 2016-05-24 16:15 CST
mass_dns: warning: Unable to determine any DNS servers. Reverse DNS is disabled. Try using --system-dns or specify valid servers with --dns-servers
Nmap scan report for 10.6.0.203
Host is up (0.0000050s latency).
Not shown: 998 closed ports
PORT STATE SERVICE
111/tcp open rpcbind
3306/tcp open mysql
Nmap done: 1 IP address (1 host up) scanned in 0.08 seconds
[root@xxt01 mysql]#
看完了这篇文章,相信你对“Mysql5.6.22双向复制+KeepAlived如何配置mysql的高可用”有了一定的了解,如果想了解更多相关知识,欢迎关注天达云行业资讯频道,感谢各位的阅读!