[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>
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="-100" rule for every nodes on every
rsc_location? and this is my cib.xml 's constraints segment.<br>
<br>
<constraints><br>
<rsc_location \
id="rsc_location_group_1" rsc="group_1"><br> \
<rule \
id="prefered_location_group_1" score="200"><br> \
<expression \
attribute="#uname" operation="eq" value="m2" \
id="b9117abd-c475-46c9-acdd-2aa4972f1573"/><br> \
</rule><br> \
<rule \
id="aprefered_location_group_1" score="100"><br> \
<expression \
attribute="#uname" operation="eq" value="m7" \
id="e676dfd8-68fc-4e81-83ee-d5a6b90fc2d6"/><br> \
</rule><br> \
</rsc_location><br> \
<rsc_location \
id="rsc_location_group_4" rsc="group_4"><br> \
<rule \
id="prefered_location_group_4" score="200"><br> \
<expression \
attribute="#uname" operation="eq" value="m3" \
id="f3fe5b4e-9633-4fe6-9d18-057753adaace"/><br> \
</rule><br> \
<rule \
id="aprefered_location_group_4" score="100"><br> \
<expression \
attribute="#uname" operation="eq" value="m7" \
id="cfb1dbc3-9b51-43e4-8690-91b0fbcef53d"/><br> \
</rule><br> \
</rsc_location><br> \
<rsc_location \
id="rsc_location_group_7" rsc="group_7"><br> \
<rule \
id="prefered_location_group_7" score="200"><br> \
<expression \
attribute="#uname" operation="eq" value="m5" \
id="5d8ec9eb-f37a-4073-a5dd-51a5a3390400"/><br> \
</rule><br> \
<rule \
id="aprefered_location_group_7" score="100"><br> \
<expression \
attribute="#uname" operation="eq" value="m7" \
id="6f233bbf-f4eb-4d7e-b7b8-0c677426a82b"/><br> \
</rule><br> \
</rsc_location><br> \
</constraints><br> <br>
&n \
bsp; &nbs \
p; \
&n \
bsp;
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