<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 1 15:38:58 2013<br>Last change: Thu Aug 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> Clone Set: ClusterIP-clone [ClusterIP] (unique)<br> ClusterIP:0 (ocf::heartbeat:IPaddr2): Started aa-node1<br>
ClusterIP:1 (ocf::heartbeat:IPaddr2): Started aa-node2<br> Clone Set: WebSite-clone [WebSite]<br> 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> ip: 10.0.0.210<br> cidr_netmask: 32<br> clusterip_hash: sourceip<br> notify: true<br> interleave: true<br> 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: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000<br> link/ether 52:54:00:50:a3:d1 brd ff:ff:ff:ff:ff:ff<br> inet 10.0.0.243/24 brd 10.0.0.255 scope global eth0<br> inet 10.0.0.210/32 brd 10.0.0.210 scope global eth0<br> inet6 fe80::5054:ff:fe50:a3d1/64 scope link <br> 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: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000<br> link/ether 52:54:00:f2:a0:76 brd ff:ff:ff:ff:ff:ff<br> inet 10.0.0.213/24 brd 10.0.0.255 scope global eth0<br> inet 10.0.0.210/32 brd 10.0.0.210 scope global eth0<br> inet6 fe80::5054:ff:fef2:a076/64 scope link <br> 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 prot opt
source destination <br>CLUSTERIP all -- anywhere 10.0.0.210 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>