On 2007-11-25T13:54:34, Atanas Dyulgerov <[EMAIL PROTECTED]> wrote:
> 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.
That's a rather fundamental misunderstanding of how environment
variables work. The environment is _local to the process_. You can
change the environment variable all you want, but it will not
automatically affect other processes.
(Even if you would mess with /proc/<pid>/env, the process would not be
automatically notified of the change.)
You need to update the variable directly in the CIB for the cluster to
take notice.
> 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.
Again, same misunderstanding: these variables only show up in the
environment of the resource agent process (and possibly its children).
Regards,
Lars
--
Teamlead Kernel, SuSE Labs, Research and Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems