Hello Pavel, Thank you for your help.
I tried what you told me, but it doesn't seem to work, when I take off both networks layers (for the bond), the resource doesn't migrate. 2011/3/18 Pavel Levshin <pa...@levshin.spb.ru> > 18.03.2011 2:52, tariq fillah: > > I meen this: > > crm configure primitive ping ocf:pacemaker:ping \ > > op monitor depth="0" timeout="20s" interval="10" > > **********clone pingdClone ping \ > > meta globally-unique="false" target-role="Started" > > *********** > crm configure location pingjb ClusterIP \ > > rule -inf: not_defined ping > > > > First, define what to monitor. > > > primitive ping ocf:pacemaker:ping \ > op monitor timeout="20" interval="10" > params host_list="192.168.0.1" multiplier=1000 > > Second, make ping resource run on every node. > > clone c-ping ping > > Then the value of attribute pingd will be used as score for the rule. Best > connectivity will win. > > location pingjb ClusterIP \ > rule pingd: defined pingd > > > > 2011/3/17 tariq fillah <tariq...@gmail.com> > > Hello the list, >> >> I want to add a switching condition for the resource ClusterIP based on >> connectivity, how can I do this. Will this work? >> >> crm configure primitive example_ping ocf:pacemaker:ping \ >> >> >> op monitor depth="0" timeout="20s" interval="10" >> >> >> crm configure location pingjb ClusterIP \ >> rule -inf: not_defined ping >> >> Thanks in advance >> > > > _______________________________________________ > Pacemaker mailing list: > Pacemaker@oss.clusterlabs.orghttp://oss.clusterlabs.org/mailman/listinfo/pacemaker > > Project Home: http://www.clusterlabs.org > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf > Bugs: > http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker > > > _______________________________________________ > Pacemaker mailing list: Pacemaker@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 > Bugs: > http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker > >
_______________________________________________ Pacemaker mailing list: Pacemaker@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 Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker