[Linux-ha-dev] re-start action when a resource parameter is changed

Junko IKEDA ikedaj at intellilink.co.jp
Thu Jun 14 21:04:24 MDT 2007


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:ikedaj at intellilink.co.jp
http://www.intellilink.co.jp/



More information about the Linux-HA-Dev mailing list