From: salman <salmanb@quietcaresystems.com>
To: libra dba <libra.dba@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Failover of the Primary database and starting the standby database in Postgresql in PITR configuraiton?
Date: Wed, 27 Feb 2008 16:05:47 -0500
Message-ID: <47C5D0AB.7070102@quietcaresystems.com> (raw)
In-Reply-To: <9abe84da0802271254j3a6463c8j7ccbe603bcdbf477@mail.gmail.com>
References: <84D57263D486374587DA0820E60A2CC601B07E23@srit_mail.renaissance-it.com>
<1203409158.16770.821.camel@ebony.site>
<9abe84da0802190623o2a24f2a5u9a44299fd634618e@mail.gmail.com>
<47BAFC47.4060902@quietcaresystems.com>
<9abe84da0802200849w1f462558n270f4320a7465b6c@mail.gmail.com>
<9abe84da0802271254j3a6463c8j7ccbe603bcdbf477@mail.gmail.com>
libra dba wrote:
> continuing with the postgres replication using WARM STANDBY, what happens to
> the wal_files which keeps on generating on the primary?
>
> Do we have to manually remove them or they are removed automatically, once
> they have been recovered on the warm standby?
>
> Also a quick question, do we have to have a NFS for the wal_files, which
> will be mounted on both the servers, or we can have folders on each server
> and configure DRBD between them, so that whatever happens on one is copied
> automatically on to the other.
>
> Thanks!
>
This is what I use -- may not be the best approach, but it has worked
quite well for me so far:
archive_command = 'gzip %p; rsync -av %p.gz -e \"ssh -p portNum -i
/home/postgres/.ssh/id_dsa\"
postgres@rhostname:/usr/local/postgresql/archives/recovery/%f.gz && rm
-f %p.gz'
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: salmanb@quietcaresystems.com, libra.dba@gmail.com
Subject: Re: Failover of the Primary database and starting the standby database in Postgresql in PITR configuraiton?
In-Reply-To: <47C5D0AB.7070102@quietcaresystems.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox