I failed my apache myself for testing.<br><br>my problem is if the first resource in the group runs ok and the second resource in the group is failed, the whole group will not move to another host.<br><br>I want to realise that if any of the resource in a group is failed, then the whole group is failed.and the whole group will move to another host.&nbsp; <br>
<br><div class="gmail_quote">在 2010年5月18日 下午2:45,Andrew Beekhof <span dir="ltr">&lt;<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>&gt;</span>写道:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
&quot;crm_verify -L&quot; or &quot;crm_mon&quot; will point you in the right direction.<br>
looks like apache isn&#39;t happy on vm2<br>
<br>
2010/5/17 李森 &lt;<a href="mailto:lisen1001@gmail.com">lisen1001@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Thanks for you reply.<br>
&gt;<br>
&gt; 1.the version is 1.0.8 for heartbeat 3.0.2.<br>
&gt;<br>
&gt;<br>
&gt; 2.<br>
&gt; there are two nodes in my cluster : vm1 172.16.0.11 &nbsp;vm2 172.16.0.12<br>
&gt; the ip-aliase is 172.16.0.100<br>
&gt;<br>
&gt; i use the crm cli command to config:<br>
&gt; primitive ip-aliase ocf:heartbeat:IPaadr2 params ip=&quot;172.16.0.100&quot; op<br>
&gt; monitor interval=&quot;5s&quot;<br>
&gt; primitive web ocf:heartbeat:apache paramas<br>
&gt; configfile=&quot;/etc/apache2/apache2.conf&quot; op monitor interval=&quot;5s&quot;<br>
&gt; group &nbsp;group1 ip-aliase web<br>
&gt; location cons1 group1 100:vm2<br>
&gt; location cons2 group &nbsp;80: vm1<br>
&gt;<br>
&gt; 3.<br>
&gt; &nbsp;the cibamin &nbsp;output is in the attachment.<br>
&gt;<br>
&gt;<br>
&gt; 2010/5/17 Andrew Beekhof &lt;<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; version? actual config? cibadmin output?<br>
&gt;&gt;<br>
&gt;&gt; On Mon, May 17, 2010 at 9:14 AM, 李森 &lt;<a href="mailto:lisen1001@gmail.com">lisen1001@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; hi all:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp;I create a group with two resources:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; group1:<br>
&gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ip-aliase<br>
&gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; apache<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp;my cluster has two nodes:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; crm(live)# configure<br>
&gt;&gt; &gt; crm(live)configure# property symmetric-cluster=false<br>
&gt;&gt; &gt; crm(live)configure# location constrain1 group1 200: host1<br>
&gt;&gt; &gt; crm(live)configure# location constrain2 group2 100: host2<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; #################<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; my problem is when the ip-aliase runs ok and the apache is failed,the<br>
&gt;&gt; &gt; group1<br>
&gt;&gt; &gt; can&#39;t move to host2:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Onlien [ host1 host2]<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Resource Group: group1<br>
&gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ip-aliase &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Started host1<br>
&gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;apache &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Stoppped<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; i want to realise that if one of the resources in a group is failed,then<br>
&gt;&gt; &gt; the<br>
&gt;&gt; &gt; group is failed and move to another node in the cluster.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt;&gt; &gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
&gt;&gt; &gt; Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt;&gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
&gt;&gt;<br>
&gt;&gt; Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
&gt;&gt; Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
&gt;<br>
&gt; Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
&gt; Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt;<br>
<br>
_______________________________________________<br>
Pacemaker mailing list: <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>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a></div></div></blockquote></div><br>