[pgcluster: 776] Solaris上でレプリケーションの応答なし
pgcluster@ml.postgresql.jp
pgcluster@ml.postgresql.jp
Sat, 23 Apr 2005 20:37:08 +0900 (JST)
はじめまして、大和田と申します。
Solaris8(SPARC)上で、PGClusterを使用してPostgreSQLのレプリケーション
環境を構築中です。
hosta:Solaris8/PostgreSQL 7.4.7/PGCluster-1.1.1a
hostb:Solaris8/PostgreSQL 7.4.7/PGCluster-1.1.1a
ともにクラスタサーバ、レプリケーションサーバを動作させて、どちらに
アクセスが来ても同期をとれるような冗長構成を取りたいと考えています。
rsyncのインストール、設定を行いPGClusterのインストールも行ったのです
が、
pgreplicate, postmasterをそれぞれ起動した後、SELECTは結果が得られる
のですが、手動(psql)でINSERT文やUPDATE文を発行すると応答が
なくなってしまいます。10分程度待ちましたが何も起こらず、Ctrl-Cで
停止しようとしてもメッセージが表示されるだけでpsqlから抜けることも
できませんでした。
何かの設定が誤っているのか、インストール失敗なのでしょうか?
同じような事象を解決した方などいらっしゃいましたらご教授ください。
参考までに、hosta, hostbのcluster.confとreplicate.confを
下記に貼りつけます。
### cluster.conf(hosta)
<Replicate_Server_Info>
<Host_Name> hosta.test </Host_Name>
<Port> 8001 </Port>
<Recovery_Port> 8101 </Recovery_Port>
<LifeCheck_Port> 8201 </LifeCheck_Port>
</Replicate_Server_Info>
<Recovery_Port> 7101 </Recovery_Port>
<LifeCheck_Port> 7201 </LifeCheck_Port>
<Rsync_Path> /usr/local/bin/rsync </Rsync_Path>
<Rsync_Option> ssh -1 </Rsync_Option>
<When_Stand_Alone> read_only </When_Stand_Alone>
<Status_Log_File> /tmp/cluster1.sts </Status_Log_File>
<Error_Log_File> /tmp/cluster1.log </Error_Log_File>
### cluster.conf(hostb)
<Replicate_Server_Info>
<Host_Name> hosta.test </Host_Name>
<Port> 8001 </Port>
<Recovery_Port> 8101 </Recovery_Port>
<LifeCheck_Port> 8201 </LifeCheck_Port>
</Replicate_Server_Info>
<Recovery_Port> 7101 </Recovery_Port>
<LifeCheck_Port> 7201 </LifeCheck_Port>
<Rsync_Path> /usr/local/bin/rsync </Rsync_Path>
<Rsync_Option> ssh -1 </Rsync_Option>
<When_Stand_Alone> read_only </When_Stand_Alone>
<Status_Log_File> /tmp/cluster2.sts </Status_Log_File>
<Error_Log_File> /tmp/cluster2.log </Error_Log_File>
### pgreplicate.conf(hosta)
<Cluster_Server_Info>
<Host_Name> hosta.test </Host_Name>
<Port> 5432 </Port>
<Recovery_Port> 7101 </Recovery_Port>
<LifeCheck_Port> 7201 </LifeCheck_Port>
</Cluster_Server_Info>
<Cluster_Server_Info>
<Host_Name> hostb.test </Host_Name>
<Port> 5432 </Port>
<Recovery_Port> 7101 </Recovery_Port>
<LifeCheck_Port> 7201 </LifeCheck_Port>
</Cluster_Server_Info>
<Replicate_Server_Info>
<Host_Name> hosta.test </Host_Name>
<Port> 8001 </Port>
<Recovery_Port> 8101 </Recovery_Port>
<LifeCheck_Port> 8201 </LifeCheck_Port>
</Replicate_Server_Info>
<Status_Log_File> /tmp/pgreplicate1.sts </Status_Log_File>
<Error_Log_File> /tmp/pgreplicate1.log </Error_Log_File>
<Replication_Port> 8001 </Replication_Port>
<Recovery_Port> 8101 </Recovery_Port>
<LifeCheck_Port> 8201 </LifeCheck_Port>
<RLOG_Port> 8301 </RLOG_Port>
<Response_Mode> normal </Response_Mode>
<Use_Replication_Log> no </Use_Replication_Log>
<Reserved_Connections> 1 </Reserved_Connections>
### pgreplicate.conf(hosta)
<Cluster_Server_Info>
<Host_Name> hosta.test </Host_Name>
<Port> 5432 </Port>
<Recovery_Port> 7101 </Recovery_Port>
<LifeCheck_Port> 7201 </LifeCheck_Port>
</Cluster_Server_Info>
<Cluster_Server_Info>
<Host_Name> hostb.test </Host_Name>
<Port> 5432 </Port>
<Recovery_Port> 7101 </Recovery_Port>
<LifeCheck_Port> 7201 </LifeCheck_Port>
</Cluster_Server_Info>
<Status_Log_File> /tmp/pgreplicate2.sts </Status_Log_File>
<Error_Log_File> /tmp/pgreplicate2.log </Error_Log_File>
<Replication_Port> 8001 </Replication_Port>
<Recovery_Port> 8101 </Recovery_Port>
<LifeCheck_Port> 8201 </LifeCheck_Port>
<RLOG_Port> 8301 </RLOG_Port>
<Response_Mode> normal </Response_Mode>
<Use_Replication_Log> no </Use_Replication_Log>
<Reserved_Connections> 1 </Reserved_Connections>