Hi all,
I need to control a resource with an environment variable. When I set the
variable with value "true" to increase the score for a resource.
I did the following constraint:
<rsc_location id="rloc_unique_id" rsc="service_ip">
<rule score="INFINITY" boolean_op="or" id="rcloc_rule_unique_id">
<expression id="expr:hfc:defined" attribute="my_variable"
operation="defined"/>
<expression id="expr:hfc:true" attribute="my_variable" operation="eq"
value="true"/>
</rule>
</rsc_location>
Then I export the variable my_variable on the node where I want to move the
resource service_ip.
# export my_variable=true
Nothing happens.
# export OCF_RESKEY_my_variable=true
Again nothing happens.
So, how can I control the resource from an env variable? How to export the
variable?
One more question. How to display all the OCF_RESKEY variable set by the
instant resource attributes?
# export -p
or
# set
do not display any OCF_RESKEY_* variables.
Thank you in advance.
Atanas Dyulgerov
-----------------------------------------------------------------
Оцеляваш ли? Сподели свое видео или снимки! http://robinson.btv.bg/isurvive
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems