Hi Dejan, > What is "RULE"?
It is a description of rule in cib.xml. > I can't really follow. Can you please give me an example. OK. It is assumed that there are two nodes.(hostname : node-a and node-b) The user can write a node name in rule of cib.xml in capital letters. ------------------------------------------------------------------------- <rsc_location id="domU-xen1-node1" rsc="domU-xen1"> <rule id="domU-xen1-node1-rule-1" score="200"> <expression attribute="#uname" id="domU-xen1-node1-rule-1-expression-1" operation="eq" value="NODEA"/> </rule> </rsc_location> <rsc_location id="domU-xen1-node2" rsc="domU-xen1"> <rule id="domU-xen1-node2-rule-1" score="100"> <expression attribute="#uname" id="domU-xen1-node2-rule-1-expression-1" operation="eq" value="NODEB"/> </rule> </rsc_location> ------------------------------------------------------------------------- Rule works definitely. But, hostlist of stonith does not work definitely when I wrote it in capital letters. ------------------------------------------------------------------------- <primitive class="stonith" id="Stonith1" type="external/ibmrsa-telnet"> <instance_attributes id="prmStonith1-2-instance_attributes"> <nvpair id="prmStonith1-2-priority" name="priority" value="2"/> <nvpair id="prmStonith1-2-stonith-timeout" name="stonith-timeout" value="60s"/> <nvpair id="prmStonith1-2-ip_address" name="ip_address" value="192.168.18.115"/> <nvpair id="prmStonith1-2-nodename" name="nodename" value="NODEA"/> (snip) ------------------------------------------------------------------------- Best Regards, Hideo Yamauchi. --- Dejan Muhamedagic <deja...@fastmail.fm> wrote: > Hi Hideo-san, > > Sorry, missed somehow this post. > > On Thu, Dec 03, 2009 at 03:08:32PM +0900, renayama19661...@ybb.ne.jp wrote: > > Hi, > > > > We committed the following mistakes. > > > > * The host name is a small letter. > > You mean converted to lowercase. Yes, somebody even complained > about it lately. > > > * The host name of RULE is a capital letter. > > What is "RULE"? > > > * The host name of STONITH(hostlist) is a capital letter. > > I can't really follow. Can you please give me an example. > > > By this setting, the resource is arranged definitely, but fails in > > STONITH(fence opration). > > > > The cause is STONITH distinguishes a node name by a small and capital > > letter, and to process > it. > > I think that it is good not to distinguish it in the same way as rule > > setting. > > > > I created a patch for stonithd. > > Forgot to attach it? > > > But, the part revision of stonith-RA becomes necessary for the > > solution of the problem, too. > > > > I show a revision example of RA of ssh/external next. > > > > ---- external/ssh ---------------- > > reset) > > h_target=`echo $2 | tr A-Z a-z` > > for h in $hostlist > > do > > h_list=`echo $h | tr A-Z a-z` > > if > > [ "$h_list" != "$h_target" ] > > then > > continue > > fi > > ---------------------------------- > > I understand that there is somewhere a mismatch in hostname case > handling, but still don't know where. > > Cheers, > > Dejan > > > Please teach it if there is the revision method that, besides, is good. > > > > Best Regards, > > Hideo Yamauchi. > > > > > > _______________________________________________ > > Pacemaker mailing list > > Pacemaker@oss.clusterlabs.org > > http://oss.clusterlabs.org/mailman/listinfo/pacemaker > > > _______________________________________________ > Pacemaker mailing list > Pacemaker@oss.clusterlabs.org > http://oss.clusterlabs.org/mailman/listinfo/pacemaker > _______________________________________________ Pacemaker mailing list Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker