Simple question: how do I add and remove constraints on the fly?
For instance, I've got the following:
<constraints>
<rsc_location id="run_r1" rsc="r1">
<rule id="pref_run_r1" score="100">
<expression attribute="#uname" operation="eq" value="alpha"/>
</rule>
</rsc_location>
<rsc_location id="no_r1_on_gamma" rsc="r1">
<rule id="pref_no_r1_on_gamma" score="-INFINITY">
<expression attribute="#uname" operation="eq" value="gamma"/>
</rule>
</rsc_location>
</constraints>
I want to do the following:
* Remove "no_r1_on_gamma"
* Remove "run_r1"
* Create a new constraint called "run_r1" with a score of 100 for gamma
* Create a new constraint called "no_r1_on_alpha" with a score of
-INFINITY for alpha
How can I do this without restarting Heartbeat? I get the feeling I'm
missing something really simple for accomplishing this task. Does it
require editing the XML and then kill-HUPing Heartbeat somehow? Do I
need to muddle through using crm_attribute or cibadmin?
Thanks!
Mike Sweetser
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems