Never mind. I am good now. I have figured out the syntax for fence_vmware and it works beautifully now. <div><br></div><div>Here it is, just in case someone breaks his head to get this done in future .. <div><br></div><div>
...</div><div><div><font class="Apple-style-span" face="'courier new', monospace">        <clusternodes></font></div><div><font class="Apple-style-span" face="'courier new', monospace">                <clusternode name="node1.localdomain" nodeid="1" votes="1"></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">                        <fence></font></div><div><font class="Apple-style-span" face="'courier new', monospace">                                <method name="fence_vmware"></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">                                        <device name="vmware" port="node1.localdomain"/></font></div><div><font class="Apple-style-span" face="'courier new', monospace">                                </method></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">                        </fence></font></div><div><font class="Apple-style-span" face="'courier new', monospace">                </clusternode></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">                <clusternode name="node2.localdomain" nodeid="2" votes="1"></font></div><div><font class="Apple-style-span" face="'courier new', monospace">                        <fence></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">                                <method name="fence_vmware"></font></div><div><font class="Apple-style-span" face="'courier new', monospace">                                        <device name="vmware" port="node2.localdomain"/></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">                                </method></font></div><div><font class="Apple-style-span" face="'courier new', monospace">                        </fence></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">                </clusternode></font></div><div><font class="Apple-style-span" face="'courier new', monospace">..</font></div><div>
<div><font class="Apple-style-span" face="'courier new', monospace">        <fencedevices></font></div><div><font class="Apple-style-span" face="'courier new', monospace">                <fencedevice agent="fence_vmware" ipaddr="a.b.c.d" login="xxx" name="vmware" passwd="xxx"/></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">        </fencedevices></font></div></div><div>...</div><div><br></div><div>I will be doing some series of fail-over scenarios ( node and service failures have worked very well so far) and will get back with the results if there are any concerns. Thanks for helping me thus far. I really appreciate.</div>
<div><br></div><div>Param</div><div><br></div><br><div class="gmail_quote">On Thu, Aug 30, 2012 at 1:37 PM, PARAM KRISH <span dir="ltr"><<a href="mailto:mkparam@gmail.com" target="_blank">mkparam@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><b>Background : </b></div><div>I am using two VM's hosted in my internal lab that has two interfaces one configured with a valid IP and other being down. I have kept the VIP also in the same network. My intention is to have a Apache configured as cluster service in these two nodes and do a fail-over when the node or the interface goes down. I try to use fence_vmware as fencing device. These two VM's are now part of a ESX 4.1 host and the GuestOS in my VM's are RHEL6.0 32-bit.</div>

<div><br></div><div><br></div><div>I am seeing the following problems in my setup now ... </div><div><br></div><div>1. When starting a apache service from LUCI, it starts fine in a node. But, if i kill httpd process from that node manually, it does not detect the service is down to restart or to relocate</div>

<div>2. -same- case if i do "ip adds del <VIP>" ; it just detects the node is down but does not do a restart or relocate of the service</div><div>3. Whenever i reboot the nodes, it comes online and the service properly starts fine in either of the node and both nodes perfectly in Quorum but the fail-over never happens if i stop that active node.</div>

<div>4. I am not sure what format of fence that i must put in the cluster.conf, since there is no way i can test that out if at all it works fine.</div><div><br></div><div>Manual tests :</div><div>1. I manually run something like this </div>

<div>"fence_vmware --action=status --ip=10.72.145.145 --username=<login> --password=<password> --plug=<vm-name>" which works fine on both the nodes.</div><div>2. Apache starts/stops just particularly fine from both nodes when i do </div>

<div>"rg_test test /etc/cluster/cluster.conf start service WEB"</div><div><br></div><div>Cluster.conf is attached herewith.</div><div>rgmanager.log is attached herewith.</div><div><br></div><div>Please let me know any specific debug commands that i can run manually to find out the issues going on here, more particularly the "relocation" of service and the "fencing"; both consistently fails. </div>

<div><br></div><div>Please help. I have been spending more than 10 days now to set this up in my internal lab to show it as Proof of Concept to my business heads to buy RHEL cluster indeed works for our production requirement. </div>
<span class="HOEnZb"><font color="#888888">
<div><br></div><div>-Param</div>
</font></span></blockquote></div><br></div></div>