<div dir="ltr"><div>I'm not sure this would fix your problem but you should enable virtual IPs on your nodes in the first place.. The following is to be done on both nodes:</div>
<div> </div>
<div>=================================================================</div>
<div># vim /etc/sysctl.conf /* Add the line below to enable a shared / virtual IP */</div>
<div>net.ipv4.ip_nonlocal_bind=1<br><br># sysctl -p /* to update the your system with the new configuration */</div>
<div> </div>
<div># ping <the virtual IP> /* this should give you a response */</div>
<div>=================================================================</div>
<div> </div>
<div>I got this from:</div>
<div><a href="http://howtoforge.net/comment/reply/2739">http://howtoforge.net/comment/reply/2739</a></div>
<div> </div>
<div>I hope it helps</div>
<div> </div>
<div class="gmail_quote">On Sat, Nov 21, 2009 at 4:36 AM, Tim Serong <span dir="ltr"><<a href="mailto:tserong@novell.com">tserong@novell.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div></div>
<div class="h5">On 11/21/2009 at 06:25 AM, Shravan Mishra <<a href="mailto:shravan.mishra@gmail.com">shravan.mishra@gmail.com</a>> wrote:<br>> This is my exact output:<br>><br>> ============<br>> Last updated: Fri Nov 20 18:20:51 2009<br>
> Stack: openais<br>> Current DC: <a href="http://node1.itactics.com/" target="_blank">node1.itactics.com</a> - partition with quorum<br>> Version: 1.0.5-9e9faaab40f3f97e3c0d623e4a4c47ed83fa1601<br>> 2 Nodes configured, 2 expected votes<br>
> 4 Resources configured.<br>> ============<br>><br>> Online: [ <a href="http://node1.itactics.com/" target="_blank">node1.itactics.com</a> <a href="http://node2.itactics.com/" target="_blank">node2.itactics.com</a> ]<br>
><br>> Master/Slave Set: ms-drbd<br>> Masters: [ <a href="http://node1.itactics.com/" target="_blank">node1.itactics.com</a> ]<br>> Slaves: [ <a href="http://node2.itactics.com/" target="_blank">node2.itactics.com</a> ]<br>
> node1.itactics.com-stonith (stonith:external/safe/ipmi):<br>> Started <a href="http://node2.itactics.com/" target="_blank">node2.itactics.com</a><br>> node2.itactics.com-stonith (stonith:external/safe/ipmi):<br>
> Started <a href="http://node1.itactics.com/" target="_blank">node1.itactics.com</a><br>> Resource Group: svcs_grp<br>> fs0 (ocf::heartbeat:Filesystem): Started <a href="http://node1.itactics.com/" target="_blank">node1.itactics.com</a><br>
> safe_svcs (ocf::itactics:safe): Started <a href="http://node1.itactics.com/" target="_blank">node1.itactics.com</a><br>> vip (ocf::heartbeat:IPaddr2): Stopped<br>><br>> Failed actions:<br>> vip_monitor_0 (node=<a href="http://node1.itactics.com/" target="_blank">node1.itactics.com</a>, call=7, rc=2,<br>
> status=complete): invalid parameter<br>> vip_monitor_0 (node=<a href="http://node2.itactics.com/" target="_blank">node2.itactics.com</a>, call=7, rc=2,<br>> status=complete): invalid parameter<br>><br>><br>
> The config this time I tried was<br>><br>><br>> <primitive id="vip" class="ocf" type="IPaddr2" provider="heartbeat"><br>> <operations><br>
> <op id="op-vip-1" name="monitor" timeout="30s" interval="10s"/><br>> </operations><br>> <instance_attributes id="ia-vip"><br>
> <nvpair id="vip-addr" name="ip" value="172.30.0.17 "/><br>> <nvpair id="vip-intf" name="nic" value="eth1"/><br>> <nvpair id="vip-bcast" name="broadcast" value="172.30.255.255"/><br>
> <nvpair id="vip-cidr_netmask" name="cidr_netmask" value="16"/><br>> </instance_attributes><br>> </primitive><br>><br>><br>><br>
> Can somebody help me what's the problem here.<br><br></div></div>You're probably suffering from <a href="https://bugzilla.novell.com/show_bug.cgi?id=553753" target="_blank">https://bugzilla.novell.com/show_bug.cgi?id=553753</a> which is fixed by <a href="http://hg.linux-ha.org/agents/rev/5d341d5dc96a" target="_blank">http://hg.linux-ha.org/agents/rev/5d341d5dc96a</a><br>
<br>Try explicitly adding the parameter clusterip_hash="sourceip-sourceport" to the IP address. This will add something like the following to the instance_attributes:<br><br> <nvpair id="vip-clusterip_hash" name="clusterip_hash" value="sourceip-sourceport"/><br>
<br>Regards,<br><br>Tim<br><font color="#888888"><br><br>--<br>Tim Serong <<a href="mailto:tserong@novell.com">tserong@novell.com</a>><br>Senior Clustering Engineer, Novell Inc.<br></font>
<div>
<div></div>
<div class="h5"><br><br><br><br>_______________________________________________<br>Pacemaker mailing list<br><a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br><a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>All the best,<br>Angie<br></div>