[Linux-HA] prevent resource switching

Andrew Beekhof beekhof at gmail.com
Sun Dec 23 05:52:28 MST 2007


On Dec 21, 2007, at 8:16 PM, Rainhard wrote:

> Hi,
>
> Quoting Dejan Muhamedagic <dejanmm at fastmail.fm>:
>
>> Hi,
>>
>> On Thu, Dec 20, 2007 at 08:31:16AM -0500, Scott Mann wrote:
>>> On Thu 12/20/2007 2:50 AM, linux-ha at mynx.org said:
>>>
>>>>
>>>> Hi everyone!
>>>>
>>>> I have a question about switching resources.
>>>> Cluster consist of 2 nodes, one fails and the other one takes over.
>>>> Lets say the failed one come up again, is there a way to prevent  
>>>> that
>>>> the failed one takes the resources over again?
>>>> I tried the default_resource_stickiness parameter, but if I use the
>>>> value "INFINITY"
>>>> there is no way to manually switch the resource.
>>
>> Yes, there is. You can use crm_resource -M -r ... Once the
>> resources moved, you can remove the constraint crm_resource
>> created and everything should stay put (again).
>>
> So I tried that but didn't work as expected.
> Got a httpd resource, disconnected the network on node1, resource has
> switched on node2.
> Node1 come up again, showed up as online in the cluster, did  
> "crm_resource
> -M -r httpd -H node1" but didn't worked.
> Seems to get ignored if "default-resource-stickiness" is "INFINITY".
>
> Any suggestions?

Add --force (and read the warning message that comes with it)

>
>
> Regards,
> Rainhard
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems



More information about the Linux-HA mailing list