<div dir="ltr">I use Debian 7 and got:<div><div>Reconnecting...root@a:~# crm_resource --resource msPostgresql --ban --master --host <a href="http://a.geocluster.e-autopay.com">a.geocluster.e-autopay.com</a></div><div>crm_resource: unrecognized option &#39;--ban&#39;</div>
</div><div><br></div><div><br></div><div>No other way to move master?</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/13 Andrew Beekhof <span dir="ltr">&lt;<a href="mailto:andrew@beekhof.net" target="_blank">andrew@beekhof.net</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On 13 Jan 2014, at 8:32 pm, Andrey Rogovsky &lt;<a href="mailto:a.rogovsky@gmail.com">a.rogovsky@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi<br>
&gt;<br>
&gt; I have 3 node postgresql cluster.<br>
&gt; It work well. But I have some trobule with change master.<br>
&gt;<br>
&gt; For now, if I need change master, I must:<br>
&gt; 1) Stop PGSQL on each node and cluster service<br>
&gt; 2) Start Setup new manual PGSQL replication<br>
&gt; 3) Change attributes on each node for point to new master<br>
&gt; 4) Stop PGSQL on each node<br>
&gt; 5) Celanup resource and start cluster service<br>
&gt;<br>
&gt; It take a lot of time. Is it exist better way to change master?<br>
<br>
</div>Newer versions support:<br>
<br>
   crm_resource --resource msPostgresql --ban --master --host <a href="http://a.geocluster.e-autopay.com" target="_blank">a.geocluster.e-autopay.com</a><br>
<div><div class="h5"><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; This is my cluster service status:<br>
&gt; Node Attributes:<br>
&gt; * Node <a href="http://a.geocluster.e-autopay.com" target="_blank">a.geocluster.e-autopay.com</a>:<br>
&gt;    + master-pgsql:0                   : 1000<br>
&gt;    + pgsql-data-status               : LATEST<br>
&gt;    + pgsql-master-baseline           : 000000002F000090<br>
&gt;    + pgsql-status                     : PRI<br>
&gt; * Node <a href="http://c.geocluster.e-autopay.com" target="_blank">c.geocluster.e-autopay.com</a>:<br>
&gt;    + master-pgsql:0                   : 1000<br>
&gt;    + pgsql-data-status               : SYNC<br>
&gt;    + pgsql-status                     : STOP<br>
&gt; * Node <a href="http://b.geocluster.e-autopay.com" target="_blank">b.geocluster.e-autopay.com</a>:<br>
&gt;    + master-pgsql:0                   : 1000<br>
&gt;    + pgsql-data-status               : SYNC<br>
&gt;    + pgsql-status                     : STOP<br>
&gt;<br>
&gt; I was use <a href="http://clusterlabs.org/wiki/PgSQL_Replicated_Cluster" target="_blank">http://clusterlabs.org/wiki/PgSQL_Replicated_Cluster</a> for my 3<br>
&gt; nodes cluster without hard stik.<br>
&gt; Now I got strange situation all nodes stay slave:<br>
&gt; ============<br>
&gt; Last updated: Sat Dec  7 04:33:47 2013<br>
&gt; Last change: Sat Dec  7 12:56:23 2013 via crmd on a<br>
&gt; Stack: openais<br>
&gt; Current DC: c - partition with quorum<br>
&gt; Version: 1.1.7-ee0730e13d124c3d58f00016c3376a1de5323cff<br>
&gt; 5 Nodes configured, 3 expected votes<br>
&gt; 4 Resources configured.<br>
&gt; ============<br>
&gt;<br>
&gt; Online: [ a c b ]<br>
&gt;<br>
&gt; Master/Slave Set: msPostgresql [pgsql]<br>
&gt;     Slaves: [ a c b ]<br>
&gt;<br>
&gt; My config is:<br>
&gt; node a \<br>
&gt; attributes pgsql-data-status=&quot;DISCONNECT&quot;<br>
&gt; node b \<br>
&gt; attributes pgsql-data-status=&quot;DISCONNECT&quot;<br>
&gt; node c \<br>
&gt; attributes pgsql-data-status=&quot;DISCONNECT&quot;<br>
&gt; primitive pgsql ocf:heartbeat:pgsql \<br>
&gt; params pgctl=&quot;/usr/lib/postgresql/9.3/bin/pg_ctl&quot; psql=&quot;/usr/bin/psql&quot;<br>
&gt; pgdata=&quot;/var/lib/postgresql/9.3/main&quot; start_opt=&quot;-p 5432&quot; rep_mode=&quot;sync&quot;<br>
&gt; node_list=&quot;a b c&quot; restore_command=&quot;cp /var/lib/postgresql/9.3/pg_archive/%f<br>
&gt; %p&quot; master_ip=&quot;192.168.10.200&quot; restart_on_promote=&quot;true&quot;<br>
&gt; config=&quot;/etc/postgresql/9.3/main/postgresql.conf&quot; \<br>
&gt; op start interval=&quot;0s&quot; timeout=&quot;60s&quot; on-fail=&quot;restart&quot; \<br>
&gt; op monitor interval=&quot;4s&quot; timeout=&quot;60s&quot; on-fail=&quot;restart&quot; \<br>
&gt; op monitor interval=&quot;3s&quot; role=&quot;Master&quot; timeout=&quot;60s&quot; on-fail=&quot;restart&quot; \<br>
&gt; op promote interval=&quot;0s&quot; timeout=&quot;60s&quot; on-fail=&quot;restart&quot; \<br>
&gt; op demote interval=&quot;0s&quot; timeout=&quot;60s&quot; on-fail=&quot;stop&quot; \<br>
&gt; op stop interval=&quot;0s&quot; timeout=&quot;60s&quot; on-fail=&quot;block&quot; \<br>
&gt; op notify interval=&quot;0s&quot; timeout=&quot;60s&quot;<br>
&gt; primitive pgsql-master-ip ocf:heartbeat:IPaddr2 \<br>
&gt; params ip=&quot;192.168.10.200&quot; nic=&quot;peervpn0&quot; \<br>
&gt; op start interval=&quot;0s&quot; timeout=&quot;60s&quot; on-fail=&quot;restart&quot; \<br>
&gt; op monitor interval=&quot;10s&quot; timeout=&quot;60s&quot; on-fail=&quot;restart&quot; \<br>
&gt; op stop interval=&quot;0s&quot; timeout=&quot;60s&quot; on-fail=&quot;block&quot;<br>
&gt; group master pgsql-master-ip<br>
&gt; ms msPostgresql pgsql \<br>
&gt; meta master-max=&quot;1&quot; master-node-max=&quot;1&quot; clone-max=&quot;3&quot; clone-node-max=&quot;1&quot;<br>
&gt; notify=&quot;true&quot;<br>
&gt; colocation set_ip inf: master msPostgresql:Master<br>
&gt; order ip_down 0: msPostgresql:demote master:stop symmetrical=false<br>
&gt; order ip_up 0: msPostgresql:promote master:start symmetrical=false<br>
&gt; property $id=&quot;cib-bootstrap-options&quot; \<br>
&gt; dc-version=&quot;1.1.7-ee0730e13d124c3d58f00016c3376a1de5323cff&quot; \<br>
&gt; cluster-infrastructure=&quot;openais&quot; \<br>
&gt; expected-quorum-votes=&quot;3&quot; \<br>
&gt; no-quorum-policy=&quot;ignore&quot; \<br>
&gt; stonith-enabled=&quot;false&quot; \<br>
&gt; crmd-transition-delay=&quot;0&quot; \<br>
&gt; last-lrm-refresh=&quot;1386404222&quot;<br>
&gt; rsc_defaults $id=&quot;rsc-options&quot; \<br>
&gt; resource-stickiness=&quot;100&quot; \<br>
&gt; migration-threshold=&quot;1&quot;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Linux-HA mailing list<br>
&gt; <a href="mailto:Linux-HA@lists.linux-ha.org">Linux-HA@lists.linux-ha.org</a><br>
&gt; <a href="http://lists.linux-ha.org/mailman/listinfo/linux-ha" target="_blank">http://lists.linux-ha.org/mailman/listinfo/linux-ha</a><br>
&gt; See also: <a href="http://linux-ha.org/ReportingProblems" target="_blank">http://linux-ha.org/ReportingProblems</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><br></div>