<p dir="ltr">Why did you hide the resource agent provider? Is it a custom one</p>
<div class="gmail_quote">Le 30 avr. 2014 01:10, "Andrew Beekhof" <<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On 29 Apr 2014, at 11:06 pm, Sékine Coulibaly <<a href="mailto:scoulibaly@gmail.com">scoulibaly@gmail.com</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> Let me explain my use case. I'm using RHEL 6.3<br>
<br>
fwiw, there are updates to pacemaker 1.1.10 in 6.4 and 6.5.<br>
Its even supported now.<br>
<br>
> with Corosync + Pacemaker + PostgreSQL9.2 + repmgr 2.0. I have two nodes names clustera and clusterb.<br>
><br>
> I have a total of 3 resources :<br>
> - APACHE<br>
> - BOUM<br>
> - MS_POSTGRESQL<br>
><br>
> They are defined as follow :<br>
><br>
> sudo crm configure primitive APACHE ocf:heartbeat:apache \<br>
> params configfile=/etc/httpd/conf/httpd.conf \<br>
> op monitor interval=5s timeout=10s \<br>
> op start interval=0 timeout=10s \<br>
> op stop interval=0 timeout=10s<br>
><br>
> sudo crm configure primitive BOUM ocf:heartbeat:anything \<br>
> params binfile=/usr/local/boum/current/bin/boum \<br>
> workdir=/var/boum \<br>
> logfile=/var/log/boum/boum_STDOUT \<br>
> errlogfile=/var/log/boum/boum_STDERR \<br>
> pidfile=/var/run/boum.pid \<br>
> op monitor interval=5s timeout=10s \<br>
> op start interval=0 timeout=10s \<br>
> op stop interval=0 timeout=10s<br>
><br>
> sudo crm configure primitive POSTGRESQL ocf:xxxxxx:postgresql \<br>
> params repmgr_conf=/var/lib/pgsql/repmgr/repmgr.conf pgctl=/usr/pgsql-9.2/bin/pg_ctl pgdata=/opt/pgdata \<br>
> op start interval=0 timeout=90s \<br>
> op stop interval=0 timeout=60s \<br>
> op promote interval=0 timeout=120s \<br>
> op monitor interval=53s role=Master \<br>
> op monitor interval=60s role=Slave<br>
><br>
> 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.<br>
><br>
> 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't start anymore.<br>
><br>
> I end up with :<br>
><br>
> Online: [ clusterb clustera ]<br>
><br>
> Master/Slave Set: MS_POSTGRESQL [POSTGRESQL]<br>
> Masters: [ clustera ]<br>
> Stopped: [ POSTGRESQL:1 ]<br>
> APACHE (ocf::heartbeat:apache): Started clustera<br>
> BOUM (ocf::heartbeat:anything): Started clustera<br>
><br>
> My configuration is as follows :<br>
><br>
><br>
> node clustera \<br>
> attributes standby="off"<br>
> node clusterb \<br>
> attributes standby="off"<br>
> primitive APACHE ocf:heartbeat:apache \<br>
> params configfile="/etc/httpd/conf/httpd.conf" \<br>
> op monitor interval="5s" timeout="10s" \<br>
> op start interval="0" timeout="10s" \<br>
> op stop interval="0" timeout="10s" \<br>
> meta target-role="Started"<br>
> primitive BOUM ocf:heartbeat:anything \<br>
> params binfile="/usr/local/boum/current/bin/boum" workdir="/var/boum" logfile="/var/log/boum/boum_STDOUT" errlogfile="/var/log/boum/boum_STDERR" pidfile="/var/run/boum.pid" \<br>
> op monitor interval="5s" timeout="10s" \<br>
> op start interval="0" timeout="10s" \<br>
> op stop interval="0" timeout="10s"<br>
> primitive POSTGRESQL ocf:xxxxxxx:postgresql \<br>
> params repmgr_conf="/var/lib/pgsql/repmgr/repmgr.conf" pgctl="/usr/pgsql-9.2/bin/pg_ctl" pgdata="/opt/pgdata" \<br>
> op start interval="0" timeout="90s" \<br>
> op stop interval="0" timeout="60s" \<br>
> op promote interval="0" timeout="120s" \<br>
> op monitor interval="53s" role="Master" \<br>
> op monitor interval="60s" role="Slave"<br>
> ms MS_POSTGRESQL POSTGRESQL \<br>
> meta clone-max="2" target-role="Started" resource-stickiness="100" notify="true"<br>
> colocation link-resources inf: ZK UFO BOUM APACHE MS_POSTGRESQL<br>
<br>
Could you send the raw xml (cibadmin -Ql) please?<br>
I've never gotten used to crmsh's colocation syntax and don't have it installed locally (pcs is the supplied tool for configuring pacemaker on rhel)<br>
<br>
> property $id="cib-bootstrap-options" \<br>
> dc-version="1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966b85d14" \<br>
> cluster-infrastructure="openais" \<br>
> expected-quorum-votes="2" \<br>
> stonith-enabled="false" \<br>
> no-quorum-policy="ignore" \<br>
> default-resource-stickiness="10" \<br>
> start-failure-is-fatal="false" \<br>
> last-lrm-refresh="1398775386"<br>
><br>
> Is this a normal behaviour ? If it is, is there a workaround I didn't think of ?<br>
><br>
><br>
><br>
> _______________________________________________<br>
> Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
> <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
><br>
> Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
> Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
> Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
<br>_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br></blockquote></div>