[Pacemaker] clone ip definition and location stops my resources...

Vadym Chepkov vchepkov at gmail.com
Tue May 11 11:13:54 UTC 2010


First of all, none of the monitor operation is on by default in pacemaker, this is something that you have to turn on
For the ping RA  start and stop op parameters don't do much, so you can safely drop them.

Here is my settings,  they do work for me:

primitive ping ocf:pacemaker:ping \
	params name="pingd" host_list="10.10.10.250" multiplier="200" timeout="3" \
	op monitor interval="10"
clone connected ping \
	meta globally-unique="false"
location rg0-connected rg0 \
	rule -inf: not_defined pingd or pingd lte 0


On May 11, 2010, at 7:06 AM, Gianluca Cecchi wrote:

> On Tue, May 11, 2010 at 12:50 PM, Vadym Chepkov <vchepkov at gmail.com> wrote:
> You forgot to turn on monitor operation for ping (actual job)
> 
> 
> 
> I saw from the 
> [root at ha1 ~]# crm ra meta ping 
> command
> 
> Operations' defaults (advisory minimum):
> 
>     start         timeout=60
>     stop          timeout=20
>     reload        timeout=100
>     monitor_0     interval=10 timeout=60
> 
> So I presumed it was by default in place for the ping resource.....
> Do you mean that I should define the resource this way:
> crm configure primitive pinggw ocf:pacemaker:ping \
> > params host_list="192.168.101.1" multiplier="100" \
> > op start interval="0" timeout="90" \
> > op stop interval="0" timeout="100" \
> > op monitor interval=10 timeout=60
> 
> Ok, I did it and I now get the same behavior as with pingd. Thanks ;-)
> 
> Migration summary:
> * Node ha1:  pingd=0
> * Node ha2:  pingd=100
> 
> And if I remove the iptables rule  I get:
> Migration summary:
> * Node ha1:  pingd=100
> * Node ha2:  pingd=100
> 
> Now I will check the "all resources stopped" problem...
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20100511/b5682d71/attachment-0002.htm>


More information about the Pacemaker mailing list