<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi All,</div><div>I have a problem with creating active-active Apache cluster based on 2 VM guests inside one KVM physical host.<br></div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">My environment and configuration is:</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">1. VM1 : aa-node1 : 10.0.0.243 (eth0)<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color:
 transparent; font-style: normal;">2. VM2: aa-node2 : 10.0.0.213 (eth0)</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">3. VIP: 10.0.0.210<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">4. KVM Host: host: 10.0.0.1 (virbr1)<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">I followed by Cluster from scratch document and I think I did everything correctly. Please take a look:</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new
 york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"># crm_mon -1<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Last updated: Thu Aug&nbsp; 1 15:38:58 2013<br>Last change: Thu Aug&nbsp; 1 15:06:16 2013 via crm_attribute on aa-node1<br>Stack: classic openais (with plugin)<br>Current DC: aa-node1 - partition with quorum<br>Version: 1.1.8-7.el6-394e906<br>2 Nodes configured, 2 expected votes<br>4 Resources configured.<br><br><br>Online: [ aa-node1 aa-node2 ]<br><br>&nbsp;Clone Set: ClusterIP-clone [ClusterIP] (unique)<br>&nbsp;&nbsp;&nbsp;&nbsp; ClusterIP:0&nbsp;&nbsp;&nbsp; (ocf::heartbeat:IPaddr2):&nbsp;&nbsp;&nbsp; Started aa-node1<br>&nbsp;&nbsp;&nbsp;&nbsp;
 ClusterIP:1&nbsp;&nbsp;&nbsp; (ocf::heartbeat:IPaddr2):&nbsp;&nbsp;&nbsp; Started aa-node2<br>&nbsp;Clone Set: WebSite-clone [WebSite]<br>&nbsp;&nbsp;&nbsp;&nbsp; Started: [ aa-node1 aa-node2 ]</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">VIP is assigned across two KVM guests:</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"># pcs resource show ClusterIP<br>Resource: ClusterIP<br>&nbsp; ip: 10.0.0.210<br>&nbsp; cidr_netmask: 32<br>&nbsp; clusterip_hash: sourceip<br>&nbsp; notify: true<br>&nbsp; interleave: true<br>&nbsp; op monitor interval=30s<br><br></div><div style="color:
 rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"># ip a s on aa-node1:</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">2: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP qlen 1000<br>&nbsp;&nbsp;&nbsp; link/ether 52:54:00:50:a3:d1 brd ff:ff:ff:ff:ff:ff<br>&nbsp;&nbsp;&nbsp; inet 10.0.0.243/24 brd 10.0.0.255 scope global eth0<br>&nbsp;&nbsp;&nbsp; inet 10.0.0.210/32 brd 10.0.0.210 scope global eth0<br>&nbsp;&nbsp;&nbsp; inet6 fe80::5054:ff:fe50:a3d1/64 scope link <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; valid_lft forever preferred_lft forever<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"># ip a s on
 aa-node2:</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">2: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP qlen 1000<br>&nbsp;&nbsp;&nbsp; link/ether 52:54:00:f2:a0:76 brd ff:ff:ff:ff:ff:ff<br>&nbsp;&nbsp;&nbsp; inet 10.0.0.213/24 brd 10.0.0.255 scope global eth0<br>&nbsp;&nbsp;&nbsp; inet 10.0.0.210/32 brd 10.0.0.210 scope global eth0<br>&nbsp;&nbsp;&nbsp; inet6 fe80::5054:ff:fef2:a076/64 scope link <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; valid_lft forever preferred_lft forever<br><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">[root@aa-node1 and node2 ~]# iptables -L <br>Chain INPUT (policy ACCEPT)<br>target&nbsp;&nbsp;&nbsp;&nbsp; prot opt
 source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; destination&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>CLUSTERIP&nbsp; all&nbsp; --&nbsp; anywhere&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10.0.0.210&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CLUSTERIP hashmode=sourceip clustermac=2F:4F:C4:64:A1:8F total_nodes=2 local_node=2 hash_init=0<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Apache is running on both nodes.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div
 style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">When I run simple ping command from KVM host or another VM inside kvm host it's simple not working:</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">ping -c 1 10.0.0.210<br>PING 10.0.0.210 (10.0.0.210) 56(84) bytes of data.<br><br>--- 10.0.0.210 ping statistics ---<br>1 packets transmitted, 0 received, 100% packet loss, time 10000ms<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Probably it is bridge problem at KVM host side,
 something wrong with ARP. Do you agree with me? After the research I found, that when I run:</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">/usr/lib64/heartbeat/send_arp -i 200 -r 5 -p /var/run/heartbeat/rsctmp/send_arp-10.0.0.210 eth0 10.0.0.210 2f4fc464a18f not_used not_used<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">on one of the nodes, the VIP:10.0.0.210 is accessible, I can connect to the Apache, but
 only for a few seconds.<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">How to resolve the problem? Any hint? Thank you in advance.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
 times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br><br></div></div></body></html>