[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-ha
Subject:    [Linux-HA] How to write this cib.xml
From:       huang mingyou <therods () gmail ! com>
Date:       2005-08-30 7:34:48
Message-ID: 40b6d52e0508300034146a767e () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


hello,list.
I test a 4 nodes cluster.3 nodes is work nodes,and 1 is backup
node.theresources on the cluster is 3
vips.them is vip1 to vip4.I don't want 2 vips run on any single nodes at 
same time.how can I write the simple lest cib.xml? I will write the 
scroe="-100" rule for every nodes on every rsc_location? and this is my 
cib.xml 's constraints segment.

<constraints>
<rsc_location id="rsc_location_group_1" rsc="group_1">
<rule id="prefered_location_group_1" score="200">
<expression attribute="#uname" operation="eq" value="m2" 
id="b9117abd-c475-46c9-acdd-2aa4972f1573"/>
</rule>
<rule id="aprefered_location_group_1" score="100">
<expression attribute="#uname" operation="eq" value="m7" 
id="e676dfd8-68fc-4e81-83ee-d5a6b90fc2d6"/>
</rule>
</rsc_location>
<rsc_location id="rsc_location_group_4" rsc="group_4">
<rule id="prefered_location_group_4" score="200">
<expression attribute="#uname" operation="eq" value="m3" 
id="f3fe5b4e-9633-4fe6-9d18-057753adaace"/>
</rule>
<rule id="aprefered_location_group_4" score="100">
<expression attribute="#uname" operation="eq" value="m7" 
id="cfb1dbc3-9b51-43e4-8690-91b0fbcef53d"/>
</rule>
</rsc_location>
<rsc_location id="rsc_location_group_7" rsc="group_7">
<rule id="prefered_location_group_7" score="200">
<expression attribute="#uname" operation="eq" value="m5" 
id="5d8ec9eb-f37a-4073-a5dd-51a5a3390400"/>
</rule>
<rule id="aprefered_location_group_7" score="100">
<expression attribute="#uname" operation="eq" value="m7" 
id="6f233bbf-f4eb-4d7e-b7b8-0c677426a82b"/>
</rule>
</rsc_location>
</constraints>

hmy

[Attachment #5 (text/html)]

hello,list.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I test a 4 nodes cluster.3
nodes is work nodes,and 1 is backup node.the resources on the cluster
is 3 vips.them is vip1 to vip4.I don't want 2 vips run on any single
nodes at same time.how can I write the simple lest cib.xml? I will
write the scroe=&quot;-100&quot; rule&nbsp; for every nodes on every
rsc_location? and this is my cib.xml 's constraints segment.<br>
<br>
&lt;constraints&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rsc_location \
id=&quot;rsc_location_group_1&quot; rsc=&quot;group_1&quot;&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rule \
id=&quot;prefered_location_group_1&quot; score=&quot;200&quot;&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;expression \
attribute=&quot;#uname&quot; operation=&quot;eq&quot; value=&quot;m2&quot; \
id=&quot;b9117abd-c475-46c9-acdd-2aa4972f1573&quot;/&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/rule&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rule \
id=&quot;aprefered_location_group_1&quot; score=&quot;100&quot;&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;expression \
attribute=&quot;#uname&quot; operation=&quot;eq&quot; value=&quot;m7&quot; \
id=&quot;e676dfd8-68fc-4e81-83ee-d5a6b90fc2d6&quot;/&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/rule&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/rsc_location&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rsc_location \
id=&quot;rsc_location_group_4&quot; rsc=&quot;group_4&quot;&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rule \
id=&quot;prefered_location_group_4&quot; score=&quot;200&quot;&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;expression \
attribute=&quot;#uname&quot; operation=&quot;eq&quot; value=&quot;m3&quot; \
id=&quot;f3fe5b4e-9633-4fe6-9d18-057753adaace&quot;/&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/rule&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rule \
id=&quot;aprefered_location_group_4&quot; score=&quot;100&quot;&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;expression \
attribute=&quot;#uname&quot; operation=&quot;eq&quot; value=&quot;m7&quot; \
id=&quot;cfb1dbc3-9b51-43e4-8690-91b0fbcef53d&quot;/&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/rule&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/rsc_location&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rsc_location \
id=&quot;rsc_location_group_7&quot; rsc=&quot;group_7&quot;&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rule \
id=&quot;prefered_location_group_7&quot; score=&quot;200&quot;&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;expression \
attribute=&quot;#uname&quot; operation=&quot;eq&quot; value=&quot;m5&quot; \
id=&quot;5d8ec9eb-f37a-4073-a5dd-51a5a3390400&quot;/&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/rule&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rule \
id=&quot;aprefered_location_group_7&quot; score=&quot;100&quot;&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;expression \
attribute=&quot;#uname&quot; operation=&quot;eq&quot; value=&quot;m7&quot; \
id=&quot;6f233bbf-f4eb-4d7e-b7b8-0c677426a82b&quot;/&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/rule&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/rsc_location&gt;<br> \
&nbsp;&nbsp;&nbsp;&nbsp; &lt;/constraints&gt;<br> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n \
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs \
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n \
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 hmy<br>
<br>



_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic