<div dir="ltr">Hi,<div><br></div><div>Let me explain my use case. I&#39;m using RHEL 6.3 with Corosync + Pacemaker + PostgreSQL9.2 + repmgr 2.0. I have two nodes names clustera and clusterb.</div><div><br></div><div>I have a total of 3 resources :</div>

<div>- APACHE</div><div>- BOUM</div><div>- MS_POSTGRESQL</div><div><br></div><div>They are defined as follow :</div><div><br></div><div><div>sudo crm configure  primitive APACHE ocf:heartbeat:apache \</div><div>   params configfile=/etc/httpd/conf/httpd.conf \</div>

<div>   op monitor interval=5s timeout=10s \</div><div>   op start interval=0 timeout=10s \</div><div>   op stop interval=0 timeout=10s</div><div><br></div><div> sudo crm configure primitive BOUM ocf:heartbeat:anything \</div>

<div>   params binfile=/usr/local/boum/current/bin/boum \</div><div>   workdir=/var/boum \</div><div>   logfile=/var/log/boum/boum_STDOUT \</div><div>   errlogfile=/var/log/boum/boum_STDERR \</div><div>   pidfile=/var/run/boum.pid \</div>

<div>   op monitor interval=5s timeout=10s \</div><div>   op start interval=0 timeout=10s \</div><div>   op stop interval=0 timeout=10s</div><div><br></div><div>sudo crm configure primitive POSTGRESQL ocf:xxxxxx:postgresql \</div>

<div>   params repmgr_conf=/var/lib/pgsql/repmgr/repmgr.conf pgctl=/usr/pgsql-9.2/bin/pg_ctl pgdata=/opt/pgdata \</div><div>   op start interval=0 timeout=90s \</div><div>   op stop interval=0 timeout=60s \</div><div>   op promote interval=0 timeout=120s \</div>

<div>   op monitor interval=53s role=Master \</div><div>   op monitor interval=60s role=Slave</div></div><div><br></div><div>Since the PostgreSQL is in streaming replication, I need to have a master and a slave constantly running. Hence, I created an MasterSlave resource, called MS_POSTGRESQL.</div>

<div><br></div><div>I want to that APACHE, BOUM and the master node of PostgreSQL run altogether on the same node. It looks like that as soon as I add a colocation, the Postgresql slave doesn&#39;t start anymore.</div><div>

<br></div><div>I end up with :</div><div><br></div><div><div>Online: [ clusterb clustera ]</div><div><br></div><div> Master/Slave Set: MS_POSTGRESQL [POSTGRESQL]</div><div>     Masters: [ clustera ]</div><div>     Stopped: [ POSTGRESQL:1 ]</div>

<div>APACHE  (ocf::heartbeat:apache):        Started clustera</div><div>BOUM     (ocf::heartbeat:anything):<span class="" style="white-space:pre">        </span>Started clustera</div></div><div><br></div><div>My configuration is as follows :</div>

<div><br></div><div><div><br></div><div>node clustera \</div><div>        attributes standby=&quot;off&quot;</div><div>node clusterb \</div><div>        attributes standby=&quot;off&quot;</div><div>primitive APACHE ocf:heartbeat:apache \</div>

<div>        params configfile=&quot;/etc/httpd/conf/httpd.conf&quot; \</div><div>        op monitor interval=&quot;5s&quot; timeout=&quot;10s&quot; \</div><div>        op start interval=&quot;0&quot; timeout=&quot;10s&quot; \</div>

<div>        op stop interval=&quot;0&quot; timeout=&quot;10s&quot; \</div><div>        meta target-role=&quot;Started&quot;</div><div>primitive BOUM ocf:heartbeat:anything \</div><div>        params binfile=&quot;/usr/local/boum/current/bin/boum&quot; workdir=&quot;/var/boum&quot; logfile=&quot;/var/log/boum/boum_STDOUT&quot; errlogfile=&quot;/var/log/boum/boum_STDERR&quot; pidfile=&quot;/var/run/boum.pid&quot; \</div>

<div>        op monitor interval=&quot;5s&quot; timeout=&quot;10s&quot; \</div><div>        op start interval=&quot;0&quot; timeout=&quot;10s&quot; \</div><div>        op stop interval=&quot;0&quot; timeout=&quot;10s&quot;</div>

<div>primitive POSTGRESQL ocf:xxxxxxx:postgresql \</div><div>        params repmgr_conf=&quot;/var/lib/pgsql/repmgr/repmgr.conf&quot; pgctl=&quot;/usr/pgsql-9.2/bin/pg_ctl&quot; pgdata=&quot;/opt/pgdata&quot; \</div><div>

        op start interval=&quot;0&quot; timeout=&quot;90s&quot; \</div><div>        op stop interval=&quot;0&quot; timeout=&quot;60s&quot; \</div><div>        op promote interval=&quot;0&quot; timeout=&quot;120s&quot; \</div>

<div>        op monitor interval=&quot;53s&quot; role=&quot;Master&quot; \</div><div>        op monitor interval=&quot;60s&quot; role=&quot;Slave&quot;</div><div>ms MS_POSTGRESQL POSTGRESQL \</div><div>        meta clone-max=&quot;2&quot; target-role=&quot;Started&quot; resource-stickiness=&quot;100&quot; notify=&quot;true&quot;</div>

<div>colocation link-resources inf: ZK UFO BOUM APACHE MS_POSTGRESQL</div><div>property $id=&quot;cib-bootstrap-options&quot; \</div><div>        dc-version=&quot;1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966b85d14&quot; \</div>

<div>        cluster-infrastructure=&quot;openais&quot; \</div><div>        expected-quorum-votes=&quot;2&quot; \</div><div>        stonith-enabled=&quot;false&quot; \</div><div>        no-quorum-policy=&quot;ignore&quot; \</div>

<div>        default-resource-stickiness=&quot;10&quot; \</div><div>        start-failure-is-fatal=&quot;false&quot; \</div><div>        last-lrm-refresh=&quot;1398775386&quot;</div></div><div><br></div><div>Is this a normal behaviour ? If it is, is there a workaround I didn&#39;t think of ?</div>

<div><br></div><div><br></div><div><br></div></div>