<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi, here is a complete cluster configuration:</div><div dir="ltr"><br><div><div>node 1: master</div><div>node 2: secondary</div><div>primitive AWSVIP awsvip \</div><div>        params secondary_private_ip=10.x.x.x api_delay=5</div><div>primitive PGSQL pgsqlms \</div><div>        params pgdata="/var/lib/postgresql/9.5/main" bindir="/usr/lib/postgresql/9.5/bin" pghost="/var/run/postgresql/" recovery_template="/etc/postgresql/9.5/main/recovery.conf.pcmk" start_opts="-c config_file=/etc/postgresql/9.5/main/postgresql.conf" \</div><div>        op start timeout=60s interval=0 \</div><div>        op stop timeout=60s interval=0 \</div><div>        op promote timeout=15s interval=0 \</div><div>        op demote timeout=120s interval=0 \</div><div>        op monitor interval=15s timeout=10s role=Master \</div><div>        op monitor interval=16s timeout=10s role=Slave \</div><div>        op notify timeout=60 interval=0</div><div>primitive fencing-postgres-ha-2 stonith:external/ec2 \</div><div>        params port=master \</div><div>        op start interval=0s timeout=60s \</div><div>        op monitor interval=360s timeout=60s \</div><div>        op stop interval=0s timeout=60s</div><div>primitive fencing-test-rsyslog stonith:external/ec2 \</div><div>        params port=secondary \</div><div>        op start interval=0s timeout=60s \</div><div>        op monitor interval=360s timeout=60s \</div><div>        op stop interval=0s timeout=60s</div><div>ms PGSQL-HA PGSQL \</div><div>        meta notify=true</div><div>colocation IPAWSIP-WITH-MASTER inf: AWSVIP PGSQL-HA:Master</div><div>order demote-then-stop-ip Mandatory: _rsc_set_ PGSQL-HA:demote AWSVIP:stop symmetrical=false</div><div>location loc-fence-master fencing-postgres-ha-2 -inf: master</div><div>location loc-fence-secondary fencing-test-rsyslog -inf: secondary</div><div>order promote-then-ip Mandatory: _rsc_set_ PGSQL-HA:promote AWSVIP:start symmetrical=false</div><div>property cib-bootstrap-options: \</div><div>        have-watchdog=false \</div><div>        dc-version=1.1.14-70404b0 \</div><div>        cluster-infrastructure=corosync \</div><div>        cluster-name=psql-ha \</div><div>        stonith-enabled=true \</div><div>        no-quorum-policy=ignore \</div><div>        last-lrm-refresh=1556315444 \</div><div>        maintenance-mode=false</div><div>rsc_defaults rsc-options: \</div><div>        resource-stickiness=10 \</div><div>        migration-threshold=2</div></div><div><br></div><div>I tried to start manually postgres to be sure it is ok. There are no error in postgres log. I also tried with different meta parameters, but always with notify=true.</div><div>I also tried this:</div><div><div>ms PGSQL-HA PGSQL \</div><div><span style="white-space:pre">  </span>meta master-max=1 master-node-max=1 clone-max=2 clone-node-max=1 notify=true interleave=true</div></div><div>I have followed this link: <a href="https://clusterlabs.github.io/PAF/Quick_Start-Debian-9-crm.html">https://clusterlabs.github.io/PAF/Quick_Start-Debian-9-crm.html</a></div><div>When stonith is enabled and working I imported all other resources and constraints all together in the same time. </div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 26 Apr 2019 at 13:46, Jehan-Guillaume de Rorthais <<a href="mailto:jgdr@dalibo.com">jgdr@dalibo.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
On Thu, 25 Apr 2019 18:57:55 +0200<br>
Danka Ivanović <<a href="mailto:danka.ivanovic@gmail.com" target="_blank">danka.ivanovic@gmail.com</a>> wrote:<br>
<br>
> Apr 25 16:39:50 [4213] master       lrmd:   notice:<br>
> operation_finished:   PGSQL_monitor_0:5849:stderr [ ocf-exit-reason:You<br>
> must set meta parameter notify=true for your master resource ]<br>
<br>
Resource agent pgsqlms refuse to start PgSQL because your configuration lacks<br>
the "notify=true" attribute in your master definition.<br>
<br>
Could you please share your full Pacemaker configuration?<br>
<br>
Regards,<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Pozdrav<br>Danka Ivanovic</div>