<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<pre>&gt;&gt;&gt;&gt;<i> Somanath Jeeva &lt;<a href="http://clusterlabs.org/mailman/listinfo/users">somanath.jeeva at ericsson.com</a>&gt; schrieb am 30.12.2015 um 11:34 in<o:p></o:p></i></pre>
<pre>&gt;Nachricht &lt;<a href="http://clusterlabs.org/mailman/listinfo/users">4F5E5141ED95FF45B3128F3C7B1B2A6721ABFE13 at eusaamb109.ericsson.se</a>&gt;:<o:p></o:p></pre>
<pre>&gt;&gt;<i> On 12/22/2015 08:09 AM, Somanath Jeeva wrote:<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Hi<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> I am trying to use ip loadbalancing using cloning feature in pacemaker. but <o:p></o:p></i></pre>
<pre>&gt;&gt;<i> After 15 min the virtual ip becomes unreachable. Below is the pacemaker <o:p></o:p></i></pre>
<pre>&gt;&gt;<i> cluster config<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt; <i><o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i>&nbsp; # pcs status<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Cluster name: DES<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Last updated: Tue Dec 22 08:57:55 2015<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Last change: Tue Dec 22 08:10:22 2015<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Stack: cman<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Current DC: node-01 - partition with quorum<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Version: 1.1.11-97629de<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> 2 Nodes configured<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> 2 Resources configured<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i><o:p>&nbsp;</o:p></i></pre>
<pre>&gt;&gt;&gt;<i><o:p>&nbsp;</o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Online: [ node-01 node-02 ]<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i><o:p>&nbsp;</o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Full list of resources:<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i><o:p>&nbsp;</o:p></i></pre>
<pre>&gt;&gt;&gt;<i>&nbsp; Clone Set: ClusterIP-clone [ClusterIP] (unique)<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ClusterIP:0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (ocf::heartbeat:IPaddr2):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Started node-01<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ClusterIP:1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (ocf::heartbeat:IPaddr2):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Started node-02<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i><o:p>&nbsp;</o:p></i></pre>
<pre>&gt;&gt;&gt;<i> #pcs config<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Cluster Name: DES<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Corosync Nodes:<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i>&nbsp;&nbsp; node-01 node-02<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Pacemaker Nodes:<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> node-01 node-02<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i><o:p>&nbsp;</o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Resources:<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i>&nbsp; Clone: ClusterIP-clone<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i>&nbsp;&nbsp; Meta Attrs: clone-max=2 clone-node-max=2 globally-unique=true<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i>&nbsp;&nbsp; Resource: ClusterIP (class=ocf provider=heartbeat type=IPaddr2)<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i>&nbsp;&nbsp;&nbsp; Attributes: ip=10.61.150.55 cidr_netmask=23 clusterip_hash=sourceip<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i>&nbsp;&nbsp;&nbsp; Operations: start interval=0s timeout=20s (ClusterIP-start-timeout-20s)<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stop interval=0s timeout=20s (ClusterIP-stop-timeout-20s)<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; monitor interval=5s (ClusterIP-monitor-interval-5s)<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i><o:p>&nbsp;</o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Stonith Devices:<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Fencing Levels:<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i><o:p>&nbsp;</o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Location Constraints:<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Ordering Constraints:<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Colocation Constraints:<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i><o:p>&nbsp;</o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Cluster Properties:<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i>&nbsp; cluster-infrastructure: cman<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i>&nbsp; cluster-recheck-interval: 0<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i>&nbsp; dc-version: 1.1.11-97629de<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i>&nbsp; stonith-enabled: false<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Pacemaker and Corosync version:<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Pacemaker - 1.1.12-4<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Corosync&nbsp; - 1.4.7<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<o:p>&nbsp;</o:p></pre>
<pre>&gt;&gt;&gt;<o:p>&nbsp;</o:p></pre>
<pre>&gt;&gt;&gt;<i> Is the issue due to configuration error or firewall issue.<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<o:p>&nbsp;</o:p></pre>
<pre>&gt;&gt;&gt;<o:p>&nbsp;</o:p></pre>
<pre>&gt;&gt;&gt;<i> With Regards<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Somanath Thilak J<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> <o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> Hi Somanath,<o:p></o:p></i></pre>
<pre>&gt;&gt;&gt;<i> <o:p></o:p></i></pre>
<pre>&gt;&gt;<i> The configuration looks fine (aside from fencing not being configured),<o:p></o:p></i></pre>
<pre>&gt;&gt;<i> so I'd suspect a network issue.<o:p></o:p></i></pre>
<pre>&gt;&gt;<i><o:p>&nbsp;</o:p></i></pre>
<pre>&gt;&gt;<i> The IPaddr2 cloning relies on multicast MAC addresses (at the Ethernet<o:p></o:p></i></pre>
<pre>&gt;&gt;<i> level, not multicast IP), and many switches have issues with that. Make<o:p></o:p></i></pre>
<pre>&gt;&gt;<i> sure your switch supports multicast MAC (and if necessary, has it<o:p></o:p></i></pre>
<pre>&gt;&gt;<i> enabled on the relevant ports).<o:p></o:p></i></pre>
<pre>&gt;&gt;<i><o:p>&nbsp;</o:p></i></pre>
<pre>&gt;&gt;<i> Some people have found it necessary to add a static ARP entry for the<o:p></o:p></i></pre>
<pre>&gt;&gt;<i> cluster IP/MAC in their firewall and/or switch.<o:p></o:p></i></pre>
<pre>&gt;<i> <o:p></o:p></i></pre>
<pre>&gt;&gt;<i> Hi ,<o:p></o:p></i></pre>
<pre>&gt;&gt;<i> <o:p></o:p></i></pre>
<pre>&gt;&gt;<i> It seems that the switches have multicast support enabled. Any idea on how <o:p></o:p></i></pre>
<pre>&gt;&gt;<i> to trouble shoot the issue. I also tried adding the Multicast MAC to the ip <o:p></o:p></i></pre>
<pre>&gt;&gt;<i> neigh tables. Still the Virtual IP goes down in 15 min or so.<o:p></o:p></i></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&gt;Did you try a &quot;watch arp -vn&quot; on your nodes to watch for changes (if you only have a few connections)?<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>I could not see my virtual ip in the arp &#8211;vn command output. Only if ass the static arp entry I can see the Virtual IP in the command o/p. I see the virtual ip and MAC only in iptables,ip addr,ip maddr commands<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre># service iptables status<o:p></o:p></pre>
<pre>Table: filter<o:p></o:p></pre>
<pre>Chain INPUT (policy ACCEPT)<o:p></o:p></pre>
<pre>num&nbsp; 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; <o:p></o:p></pre>
<pre>1&nbsp;&nbsp;&nbsp; CLUSTERIP&nbsp; all&nbsp; --&nbsp; 0.0.0.0/0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10.61.150.55&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CLUSTERIP hashmode=sourceip clustermac=51:33:83:16:0A:BF total_nodes=2 local_node=2 hash_init=0<o:p></o:p></pre>
<pre>2&nbsp;&nbsp;&nbsp; ACCEPT&nbsp;&nbsp;&nbsp;&nbsp; all&nbsp; --&nbsp; 0.0.0.0/0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.0.0.0/0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Chain FORWARD (policy ACCEPT)<o:p></o:p></pre>
<pre>num&nbsp; 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; <o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Chain OUTPUT (policy ACCEPT)<o:p></o:p></pre>
<pre>num&nbsp; 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; <o:p></o:p></pre>
<pre>1&nbsp;&nbsp;&nbsp; ACCEPT&nbsp;&nbsp;&nbsp;&nbsp; all&nbsp; --&nbsp; 0.0.0.0/0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.0.0.0/0&nbsp; <o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre># ip addr show bond0<o:p></o:p></pre>
<pre>6: bond0: &lt;BROADCAST,MULTICAST,MASTER,UP,LOWER_UP&gt; mtu 1500 qdisc noqueue state UP <o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;link/ether 00:0c:29:32:8d:b9 brd ff:ff:ff:ff:ff:ff<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp; inet 10.61.150.212/23 brd 10.61.151.255 scope global bond0<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp; inet 10.61.150.55/23 brd 10.61.151.255 scope global secondary bond0<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp; inet6 fe80::20c:29ff:fe32:8db9/64 scope link tentative dadfailed <o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;valid_lft forever preferred_lft forever<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre># ip maddr show bond0<o:p></o:p></pre>
<pre>6:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bond0<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; link&nbsp; 51:33:83:16:0a:bf<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; link&nbsp; 01:00:5e:01:01:02<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; link&nbsp; 33:33:ff:32:8d:b9<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; link&nbsp; 33:33:00:00:00:01<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; link&nbsp; 33:33:00:00:02:02<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; link&nbsp; 33:33:00:75:00:75<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; link&nbsp; 01:00:5e:00:00:01<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet&nbsp; 224.1.1.2<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet&nbsp; 224.0.0.1<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet6 ff02::1:ff32:8db9<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet6 ff0e::75:75<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet6 ff02::202<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet6 ff02::1<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&gt;&gt;<i> <o:p></o:p></i></pre>
<pre>&gt;&gt;<i> <o:p></o:p></i></pre>
<pre>&gt;&gt;<i> Regards<o:p></o:p></i></pre>
<pre>&gt;&gt;<i> Somanath Thilak J<o:p></o:p></i></pre>
<pre><o:p>&nbsp;</o:p></pre>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>