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

Reply via email to