<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On 13 June 2013 10:51, Takatoshi MATSUO <span dir="ltr">&lt;<a href="mailto:matsuo.tak@gmail.com" target="_blank">matsuo.tak@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi<br>
<div class="im"><br>
&gt; As far the logs go, anything specific I should be grepping for ?<br>
<br>
</div>Please grep pgsql<br>
<br>
&gt; node_list=&quot;hanode01 hanode02&quot; \<br>
<br>
You need to add all node names whose replication is controlled by Pacemaker.<br>
<div class="im"><br>
&gt; pcs resource master msPostgresql pgsql master-max=1 master-node-max=1 clone-max=10 clone-node-max=10 notify=true<br>
<br>
</div>Why do you use clone-node-max=10 ?<br>
Please use clone-node-max=1<br>
<div class="im"><br>
&gt; pcs constraint order start master-group  then promote msPostgresql   symmetrical=false score=2<br>
<br>
</div>You should start master-group after promote msPostgresql.<br>
<br>
I am not good at pcs.<br>
Please see <a href="https://github.com/t-matsuo/resource-agents/wiki/Resource-Agent-for-PostgreSQL-9.1-streaming-replication" target="_blank">https://github.com/t-matsuo/resource-agents/wiki/Resource-Agent-for-PostgreSQL-9.1-streaming-replication</a><br>
<br></blockquote><div style>Thank you. That change however didnt seem to have helped. </div><div style>I installed crmsh, and here&#39;s the config dump in crm format: </div><div style><br></div><div style><br></div><div>
node hanode01</div><div>node hanode02</div><div>node hanode03</div><div><br></div><div>primitive pgsql ocf:heartbeat:pgsql \</div><div>        params pgctl=&quot;/usr/pgsql-9.2/bin/pg_ctl&quot; psql=&quot;/usr/pgsql-9.2/bin/psql&quot; pgdata=&quot;/var/lib/pgsql/9.2/data/&quot; restore_command=&quot;cp /var/lib/pgsql/9.2/data/pg_archive/\%f \%p&quot; start_opt=&quot;-p 5432&quot; rep_mode=&quot;async&quot; node_list=&quot;hanode01 hanode02&quot; master_ip=&quot;10.0.1.100&quot; stop_escalate=&quot;0&quot; repuser=&quot;replicator&quot; monitor_password=&quot;lemon31ee7&quot; monitor_user=&quot;monitor&quot; \</div>
<div>        op start interval=&quot;0s&quot; role=&quot;Master&quot; timeout=&quot;60s&quot; on-fail=&quot;block&quot;</div><div>        </div><div>primitive vip-master ocf:heartbeat:IPaddr2 \</div><div>        params ip=&quot;10.0.0.100&quot; nic=&quot;eth1:0&quot; cidr_netmask=&quot;24&quot; migration-threshold=&quot;0&quot; \</div>
<div>        op start interval=&quot;0s&quot; timeout=&quot;60s&quot; on-fail=&quot;block&quot;</div><div>        </div><div>primitive vip-rep ocf:heartbeat:IPaddr2 \</div><div>        params ip=&quot;10.0.1.100&quot; nic=&quot;eth2:0&quot; cidr_netmask=&quot;24&quot; migration-threshold=&quot;0&quot; \</div>
<div>        op start interval=&quot;0s&quot; timeout=&quot;60s&quot; on-fail=&quot;block&quot;</div><div>        </div><div>group master-group vip-master vip-rep</div><div><br></div><div>ms msPostgresql pgsql \</div><div>
        meta master-max=&quot;1&quot; master-node-max=&quot;1&quot; clone-max=&quot;10&quot; clone-node-max=&quot;1&quot; notify=&quot;true&quot; target-role=&quot;Master&quot;</div><div><br></div><div>location location-master-group-hanode01-5000 master-group 5000: hanode01</div>
<div><br></div><div>order order-master-group-msPostgresql-3 3: master-group:stop msPostgresql:demote symmetrical=false</div><div>order order-msPostgresql-master-group-2 2: msPostgresql:promote master-group:start symmetrical=false</div>
<div><br></div><div>property $id=&quot;cib-bootstrap-options&quot;     \</div><div>        expected-quorum-votes=&quot;3&quot; \</div><div>        stonith-enabled=&quot;false&quot;   \</div><div>        no-quorum-policy=&quot;ignore&quot;</div>
<div><br></div><div>rsc_defaults $id=&quot;rsc_defaults-options&quot; \</div><div>        resource-stickiness=&quot;INFINITY&quot;  \</div><div>        migration-threshold=&quot;1&quot;</div><div style><br></div><div style>
<br></div><div style>Attached are the logs from Today (I was changing the configuration, starting stoping, removing and readding things in the mean time). </div><div style><br></div><div style>this is what I got after: grep pgsql /var/log/messages</div>
<div style> </div></div></div></div>