<div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="color: rgb(0, 0, 0); font-family: Arial; background-color: rgba(0, 0, 0, 0);">Hello&nbsp;everyone,</span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"><font face="Arial"><br></font></span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><font face="Arial"><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">My&nbsp;environment&nbsp;is&nbsp;CentOS&nbsp;7.2&nbsp;+&nbsp;postgresql-9.6.2&nbsp;+&nbsp;pgpool-II&nbsp;3.6.1,&nbsp;</span><span style="color: inherit !important; background-color: rgba(0, 0, 0, 0); line-height: 1.5;">I&nbsp;use&nbsp;the&nbsp;source&nbsp;code&nbsp;make&nbsp;install pgpool-II 3.6.1 and&nbsp;</span><span style="line-height: 1.5; background-color: window;">postgresql-9.6.2.</span></font></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="color: inherit !important; background-color: rgba(0, 0, 0, 0); font-family: Arial; font-size: 11pt; line-height: 1.5;">I&nbsp;have&nbsp;two&nbsp;servers, and&nbsp;</span><font face="Arial">I&nbsp;configured&nbsp;<b>failover&nbsp;</b>and&nbsp;<b>recovery&nbsp;</b>in the&nbsp;</font><span style="color: inherit !important; background-color: rgba(0, 0, 0, 0); font-family: Arial; font-size: 11pt; line-height: 1.5;">two&nbsp;servers</span><font style="font-size: 11pt; line-height: 1.5; background-color: window;" face="Arial">&nbsp;,&nbsp;failover&nbsp;can&nbsp;work&nbsp;properly, b</font><span style="color: rgb(0, 0, 0); font-size: 11pt; line-height: 1.5; background-color: rgba(0, 0, 0, 0); font-family: Arial;">ut&nbsp;recovery&nbsp;has&nbsp;some&nbsp;</span><span style="color: rgb(0, 0, 0); font-family: Arial; background-color: rgba(0, 0, 0, 0);">issue as the following</span><span style="color: rgb(0, 0, 0); font-size: 11pt; line-height: 1.5; background-color: rgba(0, 0, 0, 0); font-family: Arial;">:</span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><br></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="color: inherit !important; font-family: Arial; background-color: rgba(0, 0, 0, 0);"><font color="#0000ff">[postgres@pg-server2&nbsp;~]$<b>&nbsp;pcp_recovery_node&nbsp;-n&nbsp;0&nbsp;-d&nbsp;-h&nbsp;192.168.1.141&nbsp;-p&nbsp;9898&nbsp;-U&nbsp;postgres&nbsp;-W</b></font><br><font color="#0000ff">Password:&nbsp;</font><br><font color="#0000ff">DEBUG:&nbsp;recv:&nbsp;tos="m",&nbsp;len=8</font><br><font color="#0000ff">DEBUG:&nbsp;recv:&nbsp;tos="r",&nbsp;len=21</font><br><font color="#0000ff">DEBUG:&nbsp;send:&nbsp;tos="D",&nbsp;len=6</font><br><font color="#0000ff">DEBUG:&nbsp;recv:&nbsp;tos="N",&nbsp;len=90</font><br><font color="#0000ff">BACKEND&nbsp;WARNING:&nbsp;&nbsp;failed&nbsp;to&nbsp;lock&nbsp;semaphore&nbsp;error:"Invalid&nbsp;argument"</font><br><font color="#0000ff">DEBUG:&nbsp;recv:&nbsp;tos="N",&nbsp;len=92</font><br><font color="#0000ff">BACKEND&nbsp;WARNING:&nbsp;&nbsp;failed&nbsp;to&nbsp;unlock&nbsp;semaphore&nbsp;error:"Invalid&nbsp;argument"</font><br><font color="#0000ff">DEBUG:&nbsp;recv:&nbsp;tos="N",&nbsp;len=90</font><br><font color="#0000ff">BACKEND&nbsp;WARNING:&nbsp;&nbsp;failed&nbsp;to&nbsp;lock&nbsp;semaphore&nbsp;error:"Invalid&nbsp;argument"</font><br><font color="#0000ff">DEBUG:&nbsp;recv:&nbsp;tos="N",&nbsp;len=92</font><br><font color="#0000ff">BACKEND&nbsp;WARNING:&nbsp;&nbsp;failed&nbsp;to&nbsp;unlock&nbsp;semaphore&nbsp;error:"Invalid&nbsp;argument"</font><br><font color="#0000ff">DEBUG:&nbsp;recv:&nbsp;tos="E",&nbsp;len=133</font><br><font color="#ff0000">ERROR:&nbsp;&nbsp;executing&nbsp;recovery,&nbsp;execution&nbsp;of&nbsp;command&nbsp;failed&nbsp;at&nbsp;"1st&nbsp;stage"</font><br><font color="#0000ff">DETAIL:&nbsp;&nbsp;command:"recovery_1st_stage.sh"</font><br><font color="#0000ff">DEBUG:&nbsp;send:&nbsp;tos="X",&nbsp;len=4</font></span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="font-family: Arial; font-size: 11pt; line-height: 1.5; background-color: window;"><br></span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="font-family: Arial; font-size: 11pt; line-height: 1.5; background-color: window;">in pgpool.log:</span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><font face="Arial"><br></font></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="color: inherit !important; font-family: Arial; background-color: rgba(0, 0, 0, 0);"><font color="#0000ff">Mar&nbsp;14&nbsp;12:09:20&nbsp;pg-server1&nbsp;pgpool[1612]:&nbsp;[94-1]&nbsp;2017-03-14&nbsp;12:09:20:&nbsp;pid&nbsp;1612:&nbsp;LOG:&nbsp;&nbsp;fork&nbsp;a&nbsp;new&nbsp;worker&nbsp;child&nbsp;process&nbsp;with&nbsp;pid:&nbsp;2269</font><br><font color="#0000ff">Mar&nbsp;14&nbsp;12:09:21&nbsp;pg-server1&nbsp;pgpool[2262]:&nbsp;[24-1]&nbsp;2017-03-14&nbsp;12:09:21:&nbsp;pid&nbsp;2262:&nbsp;WARNING:&nbsp;&nbsp;failed&nbsp;to&nbsp;lock&nbsp;semaphore&nbsp;error:"Invalid&nbsp;argument"</font><br><font color="#0000ff">Mar&nbsp;14&nbsp;12:09:21&nbsp;pg-server1&nbsp;pgpool[2262]:&nbsp;[25-1]&nbsp;2017-03-14&nbsp;12:09:21:&nbsp;pid&nbsp;2262:&nbsp;WARNING:&nbsp;&nbsp;failed&nbsp;to&nbsp;unlock&nbsp;semaphore&nbsp;error:"Invalid&nbsp;argument"</font><br><font color="#0000ff">Mar&nbsp;14&nbsp;12:09:21&nbsp;pg-server1&nbsp;pgpool[2262]:&nbsp;[26-1]&nbsp;2017-03-14&nbsp;12:09:21:&nbsp;pid&nbsp;2262:&nbsp;LOG:&nbsp;&nbsp;new&nbsp;connection&nbsp;received</font><br><font color="#0000ff">Mar&nbsp;14&nbsp;12:09:21&nbsp;pg-server1&nbsp;pgpool[2262]:&nbsp;[26-2]&nbsp;2017-03-14&nbsp;12:09:21:&nbsp;pid&nbsp;2262:&nbsp;DETAIL:&nbsp;&nbsp;connecting&nbsp;host=pg-server1&nbsp;port=53453</font><br><font color="#0000ff">Mar&nbsp;14&nbsp;12:09:23&nbsp;pg-server1&nbsp;pgpool[2262]:&nbsp;[27-1]&nbsp;2017-03-14&nbsp;12:09:23:&nbsp;pid&nbsp;2262:&nbsp;LOG:&nbsp;&nbsp;statement:&nbsp;show&nbsp;pool_nodes;</font><br><font color="#0000ff">Mar&nbsp;14&nbsp;12:09:26&nbsp;pg-server1&nbsp;pgpool[2262]:&nbsp;[28-1]&nbsp;2017-03-14&nbsp;12:09:26:&nbsp;pid&nbsp;2262:&nbsp;LOG:&nbsp;&nbsp;statement:&nbsp;show&nbsp;pool_nodes;</font><br><font color="#0000ff">Mar&nbsp;14&nbsp;12:10:20&nbsp;pg-server1&nbsp;pgpool[2268]:&nbsp;[28-1]&nbsp;2017-03-14&nbsp;12:10:20:&nbsp;pid&nbsp;2268:&nbsp;LOG:&nbsp;&nbsp;forked&nbsp;new&nbsp;pcp&nbsp;worker,&nbsp;pid=2330&nbsp;socket=8</font><br><font color="#ff0000">Mar&nbsp;14&nbsp;12:10:20&nbsp;pg-server1&nbsp;pgpool[2330]:&nbsp;[28-1]&nbsp;2017-03-14&nbsp;12:10:20:&nbsp;pid&nbsp;2330:&nbsp;WARNING:&nbsp;&nbsp;failed&nbsp;to&nbsp;lock&nbsp;semaphore&nbsp;error:"Invalid&nbsp;argument"<br>Mar&nbsp;14&nbsp;12:10:20&nbsp;pg-server1&nbsp;pgpool[2330]:&nbsp;[29-1]&nbsp;2017-03-14&nbsp;12:10:20:&nbsp;pid&nbsp;2330:&nbsp;WARNING:&nbsp;&nbsp;failed&nbsp;to&nbsp;unlock&nbsp;semaphore&nbsp;error:"Invalid&nbsp;argument"</font><br><font color="#0000ff">Mar&nbsp;14&nbsp;12:10:20&nbsp;pg-server1&nbsp;pgpool[2330]:&nbsp;[30-1]&nbsp;2017-03-14&nbsp;12:10:20:&nbsp;pid&nbsp;2330:&nbsp;LOG:&nbsp;&nbsp;starting&nbsp;recovering&nbsp;node&nbsp;0</font><br><font color="#0000ff">Mar&nbsp;14&nbsp;12:10:20&nbsp;pg-server1&nbsp;pgpool[2330]:&nbsp;[31-1]&nbsp;2017-03-14&nbsp;12:10:20:&nbsp;pid&nbsp;2330:&nbsp;LOG:&nbsp;&nbsp;executing&nbsp;recovery</font><br><font color="#ff0000">Mar&nbsp;14&nbsp;12:10:20&nbsp;pg-server1&nbsp;pgpool[2330]:&nbsp;[31-2]&nbsp;2017-03-14&nbsp;12:10:20:&nbsp;pid&nbsp;2330:&nbsp;DETAIL:&nbsp;&nbsp;starting&nbsp;recovery&nbsp;command:&nbsp;"SELECT&nbsp;pgpool_recovery('recovery_1st_stage.sh',&nbsp;'pg-server1',&nbsp;'/pgdata',&nbsp;'5432')"</font><br><font color="#0000ff">Mar&nbsp;14&nbsp;12:10:20&nbsp;pg-server1&nbsp;pgpool[2330]:&nbsp;[32-1]&nbsp;2017-03-14&nbsp;12:10:20:&nbsp;pid&nbsp;2330:&nbsp;LOG:&nbsp;&nbsp;executing&nbsp;recovery</font><br><font color="#0000ff">Mar&nbsp;14&nbsp;12:10:20&nbsp;pg-server1&nbsp;pgpool[2330]:&nbsp;[32-2]&nbsp;2017-03-14&nbsp;12:10:20:&nbsp;pid&nbsp;2330:&nbsp;DETAIL:&nbsp;&nbsp;disabling&nbsp;statement_timeout</font><br><font color="#ff0000">Mar&nbsp;14&nbsp;12:10:20&nbsp;pg-server1&nbsp;pgpool[2330]:&nbsp;[33-1]&nbsp;2017-03-14&nbsp;12:10:20:&nbsp;pid&nbsp;2330:&nbsp;WARNING:&nbsp;&nbsp;failed&nbsp;to&nbsp;lock&nbsp;semaphore&nbsp;error:"Invalid&nbsp;argument"<br>Mar&nbsp;14&nbsp;12:10:20&nbsp;pg-server1&nbsp;pgpool[2330]:&nbsp;[34-1]&nbsp;2017-03-14&nbsp;12:10:20:&nbsp;pid&nbsp;2330:&nbsp;WARNING:&nbsp;&nbsp;failed&nbsp;to&nbsp;unlock&nbsp;semaphore&nbsp;error:"Invalid&nbsp;argument"<br>Mar&nbsp;14&nbsp;12:10:20&nbsp;pg-server1&nbsp;pgpool[2330]:&nbsp;[35-1]&nbsp;2017-03-14&nbsp;12:10:20:&nbsp;pid&nbsp;2330:&nbsp;ERROR:&nbsp;&nbsp;executing&nbsp;recovery,&nbsp;execution&nbsp;of&nbsp;command&nbsp;failed&nbsp;at&nbsp;"1st&nbsp;stage"</font><br><font color="#0000ff">Mar&nbsp;14&nbsp;12:10:20&nbsp;pg-server1&nbsp;pgpool[2330]:&nbsp;[35-2]&nbsp;2017-03-14&nbsp;12:10:20:&nbsp;pid&nbsp;2330:&nbsp;DETAIL:&nbsp;&nbsp;command:"recovery_1st_stage.sh"</font></span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="color: inherit !important; background-color: rgba(0, 0, 0, 0); font-family: Arial; line-height: 1.5;"><br></span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"><font face="Arial">recovery_1st_stage.sh will output log when&nbsp;</font></span><font face="Arial"><span style="color: inherit !important; background-color: rgba(0, 0, 0, 0); font-size: 11pt; line-height: 1.5;">it&nbsp;is&nbsp;called</span><span style="color: inherit !important; background-color: rgba(0, 0, 0, 0); font-size: 11pt; line-height: 1.5;">.</span></font><span style="color: inherit !important; font-family: Arial; background-color: rgba(0, 0, 0, 0); font-size: 11pt; line-height: 1.5;">&nbsp;But&nbsp;I&nbsp;didn't&nbsp;see&nbsp;the&nbsp;log or log file when&nbsp;it&nbsp;went&nbsp;wrong.&nbsp;<b>So&nbsp;I&nbsp;feel&nbsp;that&nbsp;recovery_1st_stage.sh&nbsp;is&nbsp;not&nbsp;being&nbsp;executed.</b></span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="color: rgb(0, 0, 0); line-height: 1.5; background-color: rgba(0, 0, 0, 0); font-family: Arial;">note:&nbsp;</span><span style="color: rgb(0, 0, 0); line-height: 1.5; background-color: rgba(0, 0, 0, 0); font-family: Arial;">recovery_1st_stage.sh&nbsp;in&nbsp;the&nbsp;$PGDATA&nbsp;directory.</span><span style="color: rgb(0, 0, 0); line-height: 1.5; background-color: rgba(0, 0, 0, 0); font-family: Arial;">I&nbsp;think&nbsp;pgpool&nbsp;should&nbsp;have&nbsp;found the&nbsp;</span><span style="color: rgb(0, 0, 0); line-height: 1.5; background-color: rgba(0, 0, 0, 0); font-family: Arial;">recovery_1st_stage.sh,because&nbsp;</span><span style="color: rgb(0, 0, 0); line-height: 1.5; background-color: rgba(0, 0, 0, 0); font-family: Arial;">If&nbsp;I&nbsp;put&nbsp;the&nbsp;file&nbsp;in&nbsp;the&nbsp;wrong&nbsp;directory,&nbsp;the&nbsp;error&nbsp;is&nbsp;completely&nbsp;different.</span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="color: rgb(0, 0, 0); line-height: 1.5; background-color: rgba(0, 0, 0, 0); font-family: Arial;"><br></span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="font-family: Arial;"><font color="#0000ff">"recovery_1st_stage.sh"</font></span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="color: inherit !important; font-family: Arial; background-color: rgba(0, 0, 0, 0);"><font color="#0000ff">#!/bin/bash<br>#&nbsp;Recovers&nbsp;a&nbsp;standby&nbsp;server.<br>echo&nbsp;"recovery_1st_stage&nbsp;-&nbsp;at:&nbsp;${HOSTNAME}"<br>echo&nbsp;"recovery_1st_stage&nbsp;-&nbsp;at:&nbsp;${HOSTNAME}"&nbsp;&gt;&gt;&nbsp;/var/log/pgpool/recovery_1st_stage.log<br></font></span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><font face="Arial" color="#0000ff"><b>.......</b></font></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><font face="Arial"><br></font></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="color: rgb(0, 0, 0); font-size: 11pt; line-height: 1.5; background-color: rgba(0, 0, 0, 0);"><font face="Arial">I&nbsp;tested&nbsp;this&nbsp;script&nbsp;</font></span><b style="font-size: 11pt; line-height: 1.5; background-color: window; color: rgb(0, 0, 255); font-family: Arial;">recovery_1st_stage.sh</b><span style="color: rgb(0, 0, 0); font-size: 11pt; line-height: 1.5; background-color: rgba(0, 0, 0, 0); font-family: Arial;">,&nbsp;it&nbsp;can&nbsp;be&nbsp;executed&nbsp;successfully.</span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="color: inherit !important; background-color: rgba(0, 0, 0, 0);"><font face="Arial" color="#0000ff">[postgres@pg-server2&nbsp;pgdata]$&nbsp;<b>./recovery_1st_stage.sh&nbsp;/pgdata&nbsp;pg-server1&nbsp;/pgdata&nbsp;5432</b><br><br></font></span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"><font face="Arial">and,&nbsp;<b>p</b></font></span><span style="color: inherit !important; background-color: rgba(0, 0, 0, 0); font-family: Arial; line-height: 1.5;"><b>gpool_recovery()<span class="Apple-converted-space">&nbsp;</span></b>can&nbsp;also&nbsp;be&nbsp;successfully&nbsp;executed</span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="color: inherit !important; font-family: Arial; background-color: rgba(0, 0, 0, 0);"><font color="#0000ff">postgres=#&nbsp;SELECT&nbsp;pgpool_recovery('recovery_1st_stage.sh',&nbsp;'pg-server1',&nbsp;'/pgdata',&nbsp;'5432');&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;pgpool_recovery&nbsp;<br>-----------------<br>&nbsp;t<br>(1&nbsp;row)</font><br></span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><br></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="color: inherit !important; background-color: rgba(0, 0, 0, 0); font-size: 11pt; line-height: 1.5;"><font face="Arial">Finally,<b>&nbsp;pcp_attach_node</b>&nbsp;can&nbsp;perform&nbsp;successfully,&nbsp;but&nbsp;there&nbsp;will&nbsp;be&nbsp;an&nbsp;alarm</font></span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="color: inherit !important; background-color: rgba(0, 0, 0, 0); font-size: 11pt; line-height: 1.5;"><br></span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="color: inherit !important; background-color: rgba(0, 0, 0, 0);"><font face="Arial" color="#0000ff">[postgres@pg-server2&nbsp;pgdata]$&nbsp;pcp_attach_node&nbsp;-d&nbsp;-n&nbsp;0&nbsp;-h&nbsp;pg-server1&nbsp;-p&nbsp;9898&nbsp;-U&nbsp;postgres&nbsp;-W<br>Password:&nbsp;<br>DEBUG:&nbsp;recv:&nbsp;tos="m",&nbsp;len=8<br>DEBUG:&nbsp;recv:&nbsp;tos="r",&nbsp;len=21<br>DEBUG:&nbsp;send:&nbsp;tos="C",&nbsp;len=6<br>DEBUG:&nbsp;recv:&nbsp;tos="N",&nbsp;len=90<br>BACKEND&nbsp;WARNING:&nbsp;&nbsp;failed&nbsp;to&nbsp;lock&nbsp;semaphore&nbsp;error:"Invalid&nbsp;argument"<br>DEBUG:&nbsp;recv:&nbsp;tos="N",&nbsp;len=92<br>BACKEND&nbsp;WARNING:&nbsp;&nbsp;failed&nbsp;to&nbsp;unlock&nbsp;semaphore&nbsp;error:"Invalid&nbsp;argument"<br>DEBUG:&nbsp;recv:&nbsp;tos="c",&nbsp;len=20<br>pcp_attach_node&nbsp;--&nbsp;Command&nbsp;Successful<br>DEBUG:&nbsp;send:&nbsp;tos="X",&nbsp;len=4</font></span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><br></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"><font face="Arial">The&nbsp;attachment&nbsp;is&nbsp;my&nbsp;pgpool.conf&nbsp;on&nbsp;two&nbsp;servers.</font></span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="color: inherit !important; font-family: Arial; background-color: rgba(0, 0, 0, 0);">Can&nbsp;you&nbsp;give&nbsp;me&nbsp;some&nbsp;advice&nbsp;to&nbsp;make&nbsp;<b>pcp_recovery_node</b>&nbsp;work&nbsp;properly?</span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="color: inherit !important; font-family: Arial; background-color: rgba(0, 0, 0, 0);">Any&nbsp;advice&nbsp;will&nbsp;be&nbsp;appreciated! Thank you very much!</span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="color: rgb(0, 0, 255); font-family: Arial; background-color: rgba(0, 0, 0, 0); font-weight: bold;"><br></span></div><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><br></div><hr style="box-sizing: border-box; color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; width: 210px; height: 1px;" size="1" align="left" color="#b5c4df"><div style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span><div style="position: static !important; margin: 10px; font-family: verdana; font-size: 10pt;"><div style="position: static !important;">paul_wang79@qq.com</div></div></span></div>