[Linux-HA] using crm_resource to migrate

Andrew Beekhof beekhof at gmail.com
Wed Feb 22 05:09:06 MST 2006


On 2/22/06, Mohamed Badri <m.badri at netcourrier.com> wrote:
> Hi,
>
> I'm using crm_resource in heartbeat 2.0.3 with CIB,
> to migrate resources from one node to another.
>
> after resource are migrated, for example from node1 to node2
> i've got constraints added with INFINITY score for node2, and -INFINITY
> score to node1 !!!!
>
> How can I mgrate resources without changing constraints ?

you cant

>
> thnaks in advance.
>
>
> ========================
>
> # crm_resource -r group_nagios -M -H node2
>
> ....
>
> <constraints>
>        <rsc_location rsc="group_nagios" id="cli-prefer-group_nagios">
>          <rule score="INFINITY" id="cli-prefer-rule-group_nagios">
>            <expression attribute="#uname" operation="eq" type="string"
> id="cli-prefer-expr-group_nagios" value="node2"/>
>          </rule>
>        </rsc_location>
>        <rsc_location id="cli-standby-group_nagios" rsc="group_nagios">
>          <rule id="cli-standby-rule-group_nagios" score="-INFINITY">
>            <expression id="cli-standby-expr-group_nagios"
> attribute="#uname" operation="eq" value="node1" type="string"/>
>          </rule>
>        </rsc_location>
> </constraints>
>
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>



More information about the Linux-HA mailing list