<div dir="ltr">temp_tablespaces=temp is in the postgresql.conf<div>there is no entry related with the tablespaces in pgpool.conf. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 16, 2021 at 1:16 PM Murat K <<a href="mailto:srvrmurat@gmail.com">srvrmurat@gmail.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"><div dir="ltr">This is the setup <a href="https://www.pgpool.net/docs/latest/en/html/example-cluster.html" target="_blank">Pgpool-II + Watchdog Setup Example</a>  <div><br></div><div>When running pcp_recovery_node script, it logs:</div><div>pg_basebackup: error: directory "/u01/pgdata/temp" exists but is not empty<br>pg_basebackup: removing data directory "/var/lib/pgsql/13/data"</div><div><br></div><div>Moving directory is necessary  for pcp_recovery_node to run.</div><div><br></div><div><div><br></div><div>When failover is triggered new primary runs but standby does not follow the new primary.</div><div>In pgpool.conf tablespace related configuration is:</div><div>temp_tablespaces = temp<br></div><div><br></div><div>Regards</div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 16, 2021 at 12:22 PM Tatsuo Ishii <<a href="mailto:ishii@sraoss.co.jp" target="_blank">ishii@sraoss.co.jp</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">> Dear Tatsuo,<br>
> <br>
> I am implementing example setup on pgpool website. Nothing different from<br>
> setup. It runs successfully. In case of failover, standby follows the new<br>
> primary db and syncronizes. What I see is /var/lib/pgsql/13/data is moved<br>
> to .../data.old.<br>
<br>
Can you tell me the exact url of "example setup on pgpool website"?<br>
IMO there is no code doing "mv data to data.old" in the sample scripts<br>
provided by the official pgpool sample scripts.<br>
<br>
> Then I created two non-default tablespaces in /u01/xxx and /u01/yyy. Tried<br>
> the failover but it is not working. It looks follow_primary.sh is not<br>
> working as before. I could not find any clue. Shall I move non-default<br>
> tablespaces to xxx.old, yyy.old at beginning of follow_primary.sh? What is<br>
> the proper way of working with non-defult tablespaces?<br>
<br>
That depends how you use the tablespaces. Can you share pgpool.conf?<br>
It should tell how you use the tablespaces.<br>
<br>
> Thanks,<br>
> murat<br>
> <br>
> On Fri, Jan 15, 2021 at 11:43 AM Tatsuo Ishii <<a href="mailto:ishii@sraoss.co.jp" target="_blank">ishii@sraoss.co.jp</a>> wrote:<br>
> <br>
>> > Dear All,<br>
>> ><br>
>> > My configuration is pgpool 4.2.1, postgresql-13 and centos7. I have<br>
>> > non-default tablespaces. It looks in case of recovery and failover it is<br>
>> > not working as I anticipated. As far as I see pgpool moves var directory<br>
>> to<br>
>> > var.old but for non-default tablespace directories it does not behave<br>
>> like<br>
>> > that. What is the proper way of working with non-default tablespaces?<br>
>><br>
>> Can you elaborate more? How exactly Pgpool-II does not work as you<br>
>> expected?  Since for recovery and failover you need to provide scripts<br>
>> to perform actual recovery and failover, without sharing those scripts<br>
>> I cannot say anything about what's wrong.<br>
>><br>
>> Also I don't understand "pgpool moves var directory to var.old"<br>
>> because Pgpool-II does not have code that does that.<br>
>><br>
>> Best regards,<br>
>> --<br>
>> Tatsuo Ishii<br>
>> SRA OSS, Inc. Japan<br>
>> English: <a href="http://www.sraoss.co.jp/index_en.php" rel="noreferrer" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
>> Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
>><br>
>><br>
</blockquote></div>
</blockquote></div>