On 13 Dec 2013, at 11:06 pm, ESWAR RAO <eswar7...@gmail.com> wrote: > > Hi All, > > I have a 3 node setup with HB+pacemaker. I wanted to run redis in > master-slave mode using an ocf script. > https://groups.google.com/forum/#!msg/redis-db/eY3zCKnl0G0/lW5fObHrjwQJ > > But with the below configuration , I am able to start in master-slave mode > but pacemaker is not monitoring the redis. > I killed the redis-server on node-1 (slave node/master node) but pacemaker is > not re-starting it . > In the crm status I could see it as: > Masters: [ oc-vm ] > Slaves: [ oc-vm1 oc-vm2 ] > > even though it's not running on oc-vm1. > > # crm configure primitive cluster-ip ocf:IPaddr2 params ip=192.168.101.205 > cidr_netmask=32 nic=eth1 op monitor interval=30s > # crm configure primitive oc_redis ocf:redis op monitor role="Master" > interval="3s" timeout="5s" op monitor role="Slave" interval="3s" timeout="3s"
use a different interval for the two recurring operations. > # crm configure ms redis_clone oc_redis meta notify="true" master-max="1" > master-node-max="1" clone-node-max="1" interleave="false" > globally-unique="false" > # crm configure colocation ip-on-redis inf: cluster-ip redis_clone:Master > > Can someone help me in fixing it??? > > Thanks > Eswar > _______________________________________________ > 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://bugs.clusterlabs.org
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ 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://bugs.clusterlabs.org