<div>Thank you very very much for the giving the configuration.... and yea the start and stop time out should be specified else it is throwing warnings as default time out is not with in the range of advised minimum!!!!!</div>


<div> </div>
<div><br>-- <br>Regards,<br><br>Jayakrishnan. L<br><br>Visit: </div>
<div><a href="http://www.foralllinux.blogspot.com/">www.foralllinux.blogspot.com</a></div>
<div><a href="http://www.jayakrishnan.bravehost.com/">www.jayakrishnan.bravehost.com</a><br></div>
<div class="gmail_quote">On Thu, Apr 8, 2010 at 4:13 PM, <span dir="ltr">&lt;<a href="mailto:geek@lenux.mine.nu">geek@lenux.mine.nu</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">On Thu, 8 Apr 2010 09:26:57 +0530, Jayakrishnan<br>&lt;<a href="mailto:jayakrishnanlll@gmail.com">jayakrishnanlll@gmail.com</a>&gt;<br>

wrote:<br>
<div class="im">&gt; Hello Geek,<br>&gt;<br>&gt; I just stared the same project in el5 itself yesterday. I wonder if we<br>&gt; could<br>&gt; go on as explained in Andrew&#39;s &#39;Cluster from scratch&#39;, it will give you<br>

an<br>&gt; active/active cluster. Wouldn&#39;t it gives you loadbalancing.<br>&gt;<br>&gt; Pardon me if this is a stupid suggestion!!<br><br></div>Ok I got it :)<br><br>First thing, there is a bug in<br>/usr/lib/ocf/resource.d/heartbeat/ldirectord (package from the clusterlabs<br>

redhat repo)<br>I have modified  at line 51 and 52 like this:<br><br>$&gt; vi /usr/lib/ocf/resource.d/heartbeat/ldirectord<br><br>from<br>LDIRCONF=${OCF_RESKEY_configfile:-/usr/sbin/ldirectord/<a href="http://ldirectord.cf/" target="_blank">ldirectord.cf</a>}<br>

LDIRECTORD=${OCF_RESKEY_ldirectord:-/etc/ldirectord}<br><br>to<br>LDIRCONF=${OCF_RESKEY_configfile:-/etc/<a href="http://ldirectord.cf/" target="_blank">ldirectord.cf</a>}<br>LDIRECTORD=${OCF_RESKEY_ldirectord:-/usr/sbin/ldirectord}<br>

<br>I will store the ldirectord configfile at /etc, the binary is located at<br>/usr/sbin/ldirectord<br><br>After that modification I was able to add an virtual ip and the ldirectord<br>resource to pacemaker like this:<br>

<br>$&gt; crm<br>crm(live)# configure<br>crm(live)configure# primitive ldirectord ocf:heartbeat:ldirectord \<br>&gt; params configfile=&quot;/etc/<a href="http://ldirectord.cf/" target="_blank">ldirectord.cf</a>&quot; \<br>

&gt; op monitor interval=&quot;2m&quot; timeout=&quot;20s&quot; \<br>&gt; op start timeout=&quot;90s&quot; op stop timeout=&quot;100s&quot;<br>crm(live)configure# primitive vip1 ocf:heartbeat:IPaddr2 \<br>&gt; params lvs_support=&quot;true&quot; ip=&quot;192.168.33.215&quot; cidr_netmask=&quot;24&quot;<br>

broadcast=&quot;192.168.33.255&quot; \<br>&gt; op monitor interval=&quot;2m&quot; timeout=&quot;20s&quot; \<br>&gt; op start timeout=&quot;90s&quot; op stop timeout=&quot;100s&quot;<br>crm(live)configure# save<br>crm(live)configure# verify<br>

crm(live)configure# end<br>crm(live)# status<br>============<br>Last updated: Thu Apr  8 12:37:43 2010<br>Stack: openais<br>Current DC: pacemaker1.lenux.local - partition WITHOUT quorum<br>Version: 1.0.8-9881a7350d6182bae9e8e557cf20a3cc5dac3ee7<br>

1 Nodes configured, 2 expected votes<br>2 Resources configured.<br>============<br><br>Online: [ pacemaker1.office.local ]<br><br> ldirectord     (ocf::heartbeat:ldirectord):    Started<br>pacemaker1.lenux.local<br> vip1   (ocf::heartbeat:IPaddr2):       Started pacemaker1.lenux.local<br>

<br>Here my complete config file:<br>crm(live)# configure show<br>node pacemaker1.office.local<br>primitive ldirectord ocf:heartbeat:ldirectord \<br>       params configfile=&quot;/etc/<a href="http://ldirectord.cf/" target="_blank">ldirectord.cf</a>&quot; \<br>

       op monitor interval=&quot;2m&quot; timeout=&quot;20s&quot; \<br>       op start interval=&quot;0&quot; timeout=&quot;90s&quot; \<br>       op stop interval=&quot;0&quot; timeout=&quot;100s&quot; \<br>       meta target-role=&quot;Started&quot;<br>

primitive vip1 ocf:heartbeat:IPaddr2 \<br>       params lvs_support=&quot;true&quot; ip=&quot;192.168.33.215&quot; cidr_netmask=&quot;24&quot;<br>broadcast=&quot;192.168.33.255&quot; \<br>       op monitor interval=&quot;2m&quot; timeout=&quot;20s&quot; \<br>

       op start interval=&quot;0&quot; timeout=&quot;90s&quot; \<br>       op stop interval=&quot;0&quot; timeout=&quot;100s&quot;<br>property $id=&quot;cib-bootstrap-options&quot; \<br>       dc-version=&quot;1.0.8-9881a7350d6182bae9e8e557cf20a3cc5dac3ee7&quot; \<br>

       cluster-infrastructure=&quot;openais&quot; \<br>       expected-quorum-votes=&quot;2&quot; \<br>       no-quorum-policy=&quot;ignore&quot; \<br>       stonith-enabled=&quot;false&quot;<br><br><br>I have add no-quorum-policy=&quot;ignore&quot; stonith-enabled=&quot;false&quot; because at<br>

the moment I have only 1 node (have some multicast problems on cisco<br>switch) and I don&#39;t configure the stonith option. Of course ldirectord<br>should be installed.<br>
<div>
<div></div>
<div class="h5"><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>