<div dir="ltr"><div dir="auto">Thanks a lot! </div><div>Can I know what pcp_recovery_node does exactly?</div><div><span style="color:rgb(33,33,33);white-space:pre-wrap">How does it perform recovery?</span><br></div><div>It not runs recovery_1st_stage.sh....so what does it do?</div><div>Thanks a lot.</div><div> Best regards!</div><div><br></div><div>Giancarlo Celli</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">Il 28 Set 2017 02:33, &quot;Bo Peng&quot; &lt;<a href="mailto:pengbo@sraoss.co.jp" target="_blank">pengbo@sraoss.co.jp</a>&gt; ha scritto:<br type="attribution"><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>
If you need recovery the backend node first,<br>
you need to use &quot;pcp_recovery_node&quot;.<br>
<br>
If the backend node is already started as a standby,<br>
you can use &quot;pcp_attach_node&quot;to let Pgpool-II know the node.<br>
<br>
Therefore you can just add &quot;pcp_attach_node&quot; in your origin script.<br>
<br>
On Mon, 25 Sep 2017 15:38:00 +0200<br>
Giancarlo Celli &lt;<a href="mailto:giancarlocelli@gmail.com" target="_blank">giancarlocelli@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;ve  used &quot;pcp_recovery_node&quot; to recovery the node as standby in my<br>
&gt; follow_master script and it&#39;s working now!<br>
&gt; I&#39;ve a question for you: why use pcp_recovery_node and not pcp_attach_node?<br>
&gt; What is the difference?<br>
&gt; Thanks a lot!<br>
&gt; Best regards.<br>
&gt;<br>
&gt; Giancarlo<br>
&gt;<br>
&gt; 2017-09-22 6:47 GMT+02:00 Bo Peng &lt;<a href="mailto:pengbo@sraoss.co.jp" target="_blank">pengbo@sraoss.co.jp</a>&gt;:<br>
&gt;<br>
&gt; &gt; Hi<br>
&gt; &gt;<br>
&gt; &gt; I confirmed your follow_master script.<br>
&gt; &gt;<br>
&gt; &gt; I think you should use &quot;pcp_recovery_node&quot; command to<br>
&gt; &gt; recovery the backend as standby.<br>
&gt; &gt;<br>
&gt; &gt; I didn&#39;t see your initiate_replication.sh,<br>
&gt; &gt; but I think because the backend node is already detached<br>
&gt; &gt; while you use &quot;initiate_replication.sh&quot; to recovery the backend node.<br>
&gt; &gt;<br>
&gt; &gt; Even if the backend is started after recovery, Pgpool-II<br>
&gt; &gt; can not know the node. That&#39;s the reason why you need to do &quot;Return&quot;<br>
&gt; &gt; by pgpoolAdmin.<br>
&gt; &gt;<br>
&gt; &gt; Try to use &quot;pcp_recovery_node&quot; to recovery the node as standby in your<br>
&gt; &gt; follow_master<br>
&gt; &gt; script.<br>
&gt; &gt;<br>
&gt; &gt; I attached my follow_master script.<br>
&gt; &gt;<br>
&gt; &gt; On Thu, 14 Sep 2017 17:55:37 +0200<br>
&gt; &gt; Giancarlo Celli &lt;<a href="mailto:giancarlocelli@gmail.com" target="_blank">giancarlocelli@gmail.com</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; thanks for your help.<br>
&gt; &gt; &gt; I&#39;m sending you pgpool.conf file and follow_master script.<br>
&gt; &gt; &gt; Let me know, please.<br>
&gt; &gt; &gt; Best regards.<br>
&gt; &gt; &gt; Giancarlo<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; 2017-09-14 14:52 GMT+02:00 Bo Peng &lt;<a href="mailto:pengbo@sraoss.co.jp" target="_blank">pengbo@sraoss.co.jp</a>&gt;:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; By me the &quot;follow_master_command&quot; works.<br>
&gt; &gt; &gt; &gt; After failover, &quot;follow_master_command&quot; called pcp_recovery_node<br>
&gt; &gt; &gt; &gt; command to recovery the slave node to the new primary node, and<br>
&gt; &gt; &gt; &gt; &quot;Return&quot; is not needed.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Can I have your pgpool.conf and follow_master script configured<br>
&gt; &gt; &gt; &gt; in the follow_master_command?<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; On Mon, 11 Sep 2017 11:38:40 +0200<br>
&gt; &gt; &gt; &gt; Giancarlo Celli &lt;<a href="mailto:giancarlocelli@gmail.com" target="_blank">giancarlocelli@gmail.com</a>&gt; wrote:<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Hi to all.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; I would like to know how to do a &quot;Return&quot; node just gets detected by<br>
&gt; &gt; &gt; &gt; pgpool.<br>
&gt; &gt; &gt; &gt; &gt; Specifically, I&#39;ve created a follow_master_command that, after a<br>
&gt; &gt; &gt; &gt; failover,<br>
&gt; &gt; &gt; &gt; &gt; performs recovery of all standby nodes to hook them to the new<br>
&gt; &gt; primary<br>
&gt; &gt; &gt; &gt; &gt; master. Everything works, but then I have to click &quot;return&quot; on<br>
&gt; &gt; &gt; &gt; pgpooladmin<br>
&gt; &gt; &gt; &gt; &gt; to complete the procedure. I need to make the &quot;return&quot; automatically.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Can you help me, please?<br>
&gt; &gt; &gt; &gt; &gt; Attached is the image of the pgpooladmin who asks for the Return<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; --<br>
&gt; &gt; &gt; &gt; Bo Peng &lt;<a href="mailto:pengbo@sraoss.co.jp" target="_blank">pengbo@sraoss.co.jp</a>&gt;<br>
&gt; &gt; &gt; &gt; SRA OSS, Inc. Japan<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Bo Peng &lt;<a href="mailto:pengbo@sraoss.co.jp" target="_blank">pengbo@sraoss.co.jp</a>&gt;<br>
&gt; &gt; SRA OSS, Inc. Japan<br>
&gt; &gt;<br>
<br>
<br>
--<br>
Bo Peng &lt;<a href="mailto:pengbo@sraoss.co.jp" target="_blank">pengbo@sraoss.co.jp</a>&gt;<br>
SRA OSS, Inc. Japan<br>
<br>
</blockquote></div></div>
</div>