<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
This my Cluster.conf :<br>
<br>
#============================================================<br>
# Cluster DB Server configuration file<br>
#------------------------------------------------------------<br>
# file: cluster.conf<br>
#------------------------------------------------------------<br>
# This file controls:<br>
# o which hosts & port are replication server<br>
# o which port use for replication request to replication server<br>
# o which command use for recovery function<br>
#============================================================<br>
#------------------------------------------------------------<br>
# set Replication Server information<br>
# o Host_Name : hostname<br>
# o Port : connection for postmaster<br>
# o Recovery_Port : connection for recovery process<br>
#------------------------------------------------------------<br>
<Replicate_Server_Info><br>
<Host_Name> 1mc111.intotoind.com </Host_Name><br>
<Port> 8001 </Port><br>
<Recovery_Port> 8101 </Recovery_Port><br>
<LifeCheck_Port> 8201 </LifeCheck_Port><br>
</Replicate_Server_Info><br>
<Replicate_Server_Info><br>
<Host_Name> 1mc121.intotoind.com </Host_Name><br>
<Port> 8002 </Port><br>
<Recovery_Port> 8102 </Recovery_Port><br>
<LifeCheck_Port> 8202 </LifeCheck_Port><br>
<Recovery_Port> 8102 </Recovery_Port><br>
<LifeCheck_Port> 8202 </LifeCheck_Port><br>
</Replicate_Server_Info><br>
#<Replicate_Server_Info><br>
# <Host_Name> replicate3.postgres.jp </Host_Name><br>
# <Port> 8003 </Port><br>
# <Recovery_Port> 8103 </Recovery_Port><br>
# <LifeCheck_Port> 8203 </LifeCheck_Port><br>
#</Replicate_Server_Info><br>
#-------------------------------------------------------------<br>
# set Cluster DB Server information<br>
# o Recovery_Port : connection for recovery<br>
# o Rsync_Path : path of rsync command<br>
# o Rsync_Option : file transfer option for rsync<br>
# o When_Stand_Alone : When all replication servers fell,<br>
# you can set up two kinds of permittion,<br>
# "real_only" or "read_write".<br>
#-------------------------------------------------------------<br>
<Recovery_Port> 7101 </Recovery_Port><br>
<LifeCheck_Port> 7201 </LifeCheck_Port><br>
<Rsync_Path> /usr/bin/rsync </Rsync_Path><br>
<Rsync_Option> ssh -o StrictHostKeyChecking=no -l psql_master
</Rsync_Option><br>
<When_Stand_Alone> read_only </When_Stand_Alone><br>
<Status_Log_File> /tmp/cluster.sts </Status_Log_File><br>
<Error_Log_File> /tmp/cluster.log </Error_Log_File><br>
#-------------------------------------------------------------<br>
<br>
This is PgReplicate.conf<br>
<br>
#=============================================================<br>
# PGReplicate configuration file<br>
# for PGCluster-1.1.0a<br>
#-------------------------------------------------------------<br>
# file: pgreplicate.conf<br>
#-------------------------------------------------------------<br>
# This file controls:<br>
# o which hosts & port are cluster server<br>
# o which port use for replication request from cluster server<br>
#=============================================================<br>
#<br>
#-------------------------------------------------------------<br>
# A setup of Cluster DB(s)<br>
#<br>
# o Host_Name : The host name of Cluster DB.<br>
# -- please write a host name by FQDN.<br>
# -- do not write IP address.<br>
# o Port : The connection port with postmaster.<br>
# o Recovery_Port : The connection port at the time of<br>
# a recovery sequence .<br>
# o LifeCheck_Port : connection for life check process<br>
#-------------------------------------------------------------<br>
<Cluster_Server_Info><br>
<Host_Name> 1mc121.intotoind.com </Host_Name><br>
<Port> 5432 </Port><br>
<Recovery_Port> 7101 </Recovery_Port><br>
<LifeCheck_Port> 7201 </LifeCheck_Port><br>
</Cluster_Server_Info><br>
<Cluster_Server_Info><br>
<Host_Name>1mc111.intotoind.com </Host_Name><br>
<Port> 5432 </Port><br>
<Recovery_Port> 7101 </Recovery_Port><br>
<LifeCheck_Port> 7201 </LifeCheck_Port><br>
</Cluster_Server_Info><br>
<br>
#<Cluster_Server_Info><br>
# <Host_Name> master.postgres.jp </Host_Name><br>
# <Port> 5432 </Port><br>
# <Recovery_Port> 7101 </Recovery_Port><br>
# <LifeCheck_Port> 7201 </LifeCheck_Port><br>
#</Cluster_Server_Info><br>
#<Cluster_Server_Info><br>
# <Host_Name> clusterdb2.postgres.jp </Host_Name><br>
# <Port> 5432 </Port><br>
# <Recovery_Port> 7101 </Recovery_Port><br>
# <LifeCheck_Port> 7201 </LifeCheck_Port><br>
#</Cluster_Server_Info><br>
#<Cluster_Server_Info><br>
# <Host_Name> cluster3.postgres.jp </Host_Name><br>
# <Port> 5432 </Port><br>
# <Recovery_Port> 7101 </Recovery_Port><br>
# <LifeCheck_Port> 7201 </LifeCheck_Port><br>
#</Cluster_Server_Info><br>
#<br>
#-------------------------------------------------------------<br>
# A setup of Load Balance Server<br>
#<br>
# o Host_Name : The host name of a load balance server.<br>
# -- please write a host name by FQDN.<br>
# -- do not write IP address.<br>
# o Recovery_Port : The connection port at the time of<br>
# a recovery sequence .<br>
# o LifeCheck_Port : connection for life check process<br>
#-------------------------------------------------------------<br>
<LoadBalance_Server_Info><br>
<Host_Name> 1mc191.intotoind.com </Host_Name><br>
<Recovery_Port> 6101 </Recovery_Port><br>
<LifeCheck_Port> 6201 </LifeCheck_Port><br>
</LoadBalance_Server_Info><br>
#<LoadBalance_Server_Info><br>
# <Host_Name> loadbalancer.postgres.jp </Host_Name><br>
# <Recovery_Port> 6101 </Recovery_Port><br>
# <LifeCheck_Port> 6201 </LifeCheck_Port><br>
#</LoadBalance_Server_Info><br>
#<br>
#------------------------------------------------------------<br>
# A setup of the upper replication server for cascade connection.<br>
#<br>
# o Host_Name : The host name of Cluster DB.<br>
# -- please write a host name by FQDN.<br>
# -- do not write IP address.<br>
# o Port : The connection port with postmaster.<br>
# o Recovery_Port : The connection port at the time of<br>
# a recovery sequence .<br>
# o LifeCheck_Port : connection for life check process<br>
#------------------------------------------------------------<br>
#<Replicate_Server_Info><br>
# <Host_Name> upper_replicate.postgres.jp </Host_Name><br>
# <Port> 8001 </Port><br>
# <Recovery_Port> 8101
</Recovery_Port><br>
# <LifeCheck_Port> 8201
</LifeCheck_Port><br>
#</Replicate_Server_Info><br>
#<br>
#-------------------------------------------------------------<br>
# A setup of a replication server<br>
#<br>
# o Status_Log_File : logging file of cluster db's status<br>
# o Error_Log_File : logging file of error and warning<br>
# o Replicate_Port : connection for reprication<br>
# o Recovery_Port : connection for recovery<br>
# o LifeCheck_Port : connection for life check process<br>
# o Response_mode : timing which returns a response<br>
# normal -- return result of DB which received the
query<br>
# reliable -- return result after waiting for response
of<br>
# all Cluster DBs.<br>
# o Use_Replication_Log : When this server hangs up
without<br>
# being replicated to the end,<br>
# a remote server continues the<br>
# replication using this log.<br>
# yes -- use replication log<br>
# no -- not use replication log<br>
# o Reserved_Connections : The number of reserved
connections<br>
# from this replication server<br>
# to each cluster dbs.<br>
# (default is 1).<br>
#-------------------------------------------------------------<br>
<Status_Log_File> /tmp/pgreplicate.sts </Status_Log_File><br>
<Error_Log_File> /tmp/pgreplicate.log </Error_Log_File><br>
<Replication_Port> 8001 </Replication_Port><br>
<Recovery_Port> 8101 </Recovery_Port><br>
<LifeCheck_Port> 8201 </LifeCheck_Port><br>
<RLOG_Port> 8301 </RLOG_Port><br>
<Response_Mode> normal </Response_Mode><br>
<Use_Replication_Log> no
</Use_Replication_Log><br>
<Reserved_Connections> 1
</Reserved_Connections><br>
<br>
<br>
<br>
Rick Vernam wrote:
<blockquote cite="mid:200708020904.14685.rickv@hobi.com" type="cite">
<pre wrap="">First, have you searched in this list's archives?
There is likely a solution here, which could surely save you a good amount of
time.
We'll want to see cluster.conf & pgreplicate.conf, to start with...
On Thursday 02 August 2007 08:51:56 am Trinath Somanchi wrote:
</pre>
<blockquote type="cite">
<pre wrap=""> I have configure rsync over ssh , but still I get the error .
>$ /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -o "-i -R " start
postmaster starting
Start in recovery mode!
Please wait until a data synchronization finishes from Master DB...
PGR_Get_Cluster_Conf_Data failed
please help me in troubleshooting this error.
Trinath Somanchi wrote:
Do I need RSYNC over SSH configured for this
Trinath Somanchi wrote:
</pre>
<blockquote type="cite">
<pre wrap="">When I run that command , i'm getting this error
Start in recovery mode!
Please wait until a data synchronization finishes from Master DB...
PGR_Get_Cluster_Conf_Data failed
</pre>
</blockquote>
<pre wrap="">Please help me troubleshoot this error.
</pre>
<blockquote type="cite">
<pre wrap="">Zoltan Boszormenyi wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Trinath Somanchi írta:
</pre>
<blockquote type="cite">
<pre wrap="">The command for starting Postgresql server on cluster db 1 is
/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -o "-i" start
there is no -R option at all
</pre>
</blockquote>
<pre wrap="">"-R" is an option for postgres/postmaster. try:
/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -o "-i -R" start
</pre>
<blockquote type="cite">
<pre wrap="">/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -o "-i" -R start
/usr/local/pgsql/bin/pg_ctl: invalid option -- R
pg_ctl: invalid option (null)
Try "pg_ctl --help" for more information.
/usr/local/pgsql/bin/pg_ctl --help
pg_ctl is a utility to start, stop, restart, reload configuration
files, report the status of a PostgreSQL server, or signal a
PostgreSQL process.
Usage:
pg_ctl start [-w] [-D DATADIR] [-s] [-l FILENAME] [-o "OPTIONS"]
pg_ctl stop [-W] [-D DATADIR] [-s] [-m SHUTDOWN-MODE]
pg_ctl restart [-w] [-D DATADIR] [-s] [-m SHUTDOWN-MODE] [-o
"OPTIONS"] pg_ctl reload [-D DATADIR] [-s]
pg_ctl status [-D DATADIR]
pg_ctl kill SIGNALNAME PID
Common options:
-D, --pgdata DATADIR location of the database storage area
-s, --silent only print errors, no informational messages
-w wait until operation completes
-W do not wait until operation completes
--help show this help, then exit
--version output version information, then exit
(The default is to wait for shutdown, but not for start or restart.)
If the -D option is omitted, the environment variable PGDATA is used.
Options for start or restart:
-l, --log FILENAME write (or append) server log to FILENAME
-o OPTIONS command line options to pass to the
postmaster (PostgreSQL server executable)
-p PATH-TO-POSTMASTER normally not necessary
Options for stop or restart:
-m SHUTDOWN-MODE may be "smart", "fast", or "immediate"
Shutdown modes are:
smart quit after all clients have disconnected
fast quit directly, with proper shutdown
immediate quit without complete shutdown; will lead to recovery on
restart
Allowed signal names for kill:
HUP INT QUIT ABRT TERM USR1 USR2
Report bugs to <a class="moz-txt-link-rfc2396E" href="mailto:pgsql-bugs@postgresql.org"><pgsql-bugs@postgresql.org></a>.
Tarhon-Onu Victor wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Thu, 2 Aug 2007, Trinath Somanchi wrote:
</pre>
<blockquote type="cite">
<pre wrap="">When I stop Cluster DB 1 , and insert rows into Cluster DB 2 and
then start Cluster DB 1 , the previously inserted , rows into
Cluster DB 2 were not show in Cluster DB 1. How to troubleshoot this
.
</pre>
</blockquote>
<pre wrap=""> Make sure you start the postgresql server on cluster db 1 with the
-R switch.
</pre>
</blockquote>
<pre wrap="">--
----------------------------------------------------------------------
--
_______________________________________________
Pgcluster-general mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pgcluster-general@pgfoundry.org">Pgcluster-general@pgfoundry.org</a>
<a class="moz-txt-link-freetext" href="http://pgfoundry.org/mailman/listinfo/pgcluster-general">http://pgfoundry.org/mailman/listinfo/pgcluster-general</a>
</pre>
</blockquote>
</blockquote>
<pre wrap="">--
-------------------------------------------------------------------------
-------
_______________________________________________
Pgcluster-general mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pgcluster-general@pgfoundry.org">Pgcluster-general@pgfoundry.org</a>
<a class="moz-txt-link-freetext" href="http://pgfoundry.org/mailman/listinfo/pgcluster-general">http://pgfoundry.org/mailman/listinfo/pgcluster-general</a>
</pre>
</blockquote>
<pre wrap="">--
_______________________________________________
Pgcluster-general mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pgcluster-general@pgfoundry.org">Pgcluster-general@pgfoundry.org</a>
<a class="moz-txt-link-freetext" href="http://pgfoundry.org/mailman/listinfo/pgcluster-general">http://pgfoundry.org/mailman/listinfo/pgcluster-general</a>
</pre>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
Pgcluster-general mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pgcluster-general@pgfoundry.org">Pgcluster-general@pgfoundry.org</a>
<a class="moz-txt-link-freetext" href="http://pgfoundry.org/mailman/listinfo/pgcluster-general">http://pgfoundry.org/mailman/listinfo/pgcluster-general</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<img src="cid:part1.09000003.00080103@intoto.com" border="0"></div>
</body>
</html>