That is why they introduced reosurce meta_attributes.

See the email from A. Beekhof "Re: [Linux-HA] setting is_managed to true 
triggers restart"
the 08.05.2007.

It is described there. I'm not sure if or when the option "--meta" was added 
to crm_resource tool.

kind regards 
Max

On Friday 15 June 2007, Junko IKEDA wrote:
> Hi,
> 
> I'm trying to change some parameters for a resource with "crm_resource"
> ,online.
> It's easy to change them but I found a resource stopped at first, and
> started again anytime.
> Is it possible to ignore this re-start action in the case the resource
> wouldn't move to another node.
> for instance; change "resource_stickiness" from '0' to 'INFINITY'.
> The resource could keep running on the current node, right?
> 
> It seems that this depends on the last "else" section in
> ~/crm/pengine/native.c.
> What will happen if this section is removed?
> Is "RSC_ROLE_STOPPED" value needed elsewhere?
> 
> ~/crm/pengine/native.c
> -----------------------------------------------------------
> ...
> } else {
>       stop = stop_action(rsc, current, TRUE);
>       start = start_action(rsc, next, TRUE);
>       stop->optional = start->optional;
> 
>       if(start->runnable == FALSE) {
>               rsc->next_role = RSC_ROLE_STOPPED;
>       } else if(start->optional) {
>               crm_notice("Leave resource %s\t(%s)",
>               rsc->id, next->details->uname);
> 
>       } else {
>               crm_notice("Restart resource %s\t(%s)",
>               rsc->id, next->details->uname);
>       }
> }
> -----------------------------------------------------------
> 
> Best Regards,
> Junko Ikeda
> 
> NTT DATA INTELLILINK CORPORATION
> Open Source Solutions Business Unit
> Open Source Business Division
> 
> Toyosu Center Building Annex, 3-3-9, Toyosu, Koto-ku, Tokyo 135-0061, Japan
> TEL : +81-3-3534-4810 FAX : +81-3-3534-4814 mailto:[EMAIL PROTECTED]
> http://www.intellilink.co.jp/
> 
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
> 



-- 
Max Hofer
APUS Software G.m.b.H.
A-8074 Raaba, Bahnhofstraße 1/1
T| +43 316 401629 11
F| +43 316 401629 9
W| www.apus.co.at
E| [EMAIL PROTECTED]
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to