Re: postgresql standby using pg_archivecleanup don't work

From: raghu ram <raghuchennuru(at)gmail(dot)com>
To: leo xu <leoxu8703(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: postgresql standby using pg_archivecleanup don't work
Date: 2012-04-28 05:00:54
Message-ID: CALnrrJSVFoPONrRraGRULq7b0qim0dcdwQnfbOrSQ8MVcpG+zQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Apr 27, 2012 at 11:44 AM, leo xu <leoxu8703(at)gmail(dot)com> wrote:

> i have one parimary ,two standby. one standby using stream replication
> connect to primary.another standby using basebackup,then recovery database
> --cp archivelog from primary using crontab.i want to delete old archivelog
> from standby.but configure pg_archivecleanup don't work,meantime no error
> in
> postgresql log.postgresql version is 9.1.2.
> the following is my recovery.conf :
> This is my recovery.conf:
>
> standby_mode = 'on'
> restore_command = 'cp /attend_pg_backup/u02/pg9.1/archivelog/%f %p'
> archive_cleanup_command ='pg_archivecleanup
> /attend_pg_backup/u02/pg9.1/archivelog %r'
>
>
>
>
Replace archive_cleanup_command in recovery.conf file as follows:

archive_cleanup_command
='pg_archivecleanup /attend_pg_backup/u02/pg9.1/archivelog %r'

[to]

archive_cleanup_command = '/opt/PostgreSQL/9.1/bin/pg_archivecleanup
-d /attend_pg_backup/u02/pg9.1/archivelog %r 2>>/tmp/cleanup.log'

and then restart the Standby PostgreSQL cluster.

--

Thanks & Regards,

Raghu Ram

EnterpriseDB: http://www.enterprisedb.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Guillaume Lelarge 2012-04-28 06:38:23 Re: problems after restoring from a pg_basebackup
Previous Message Lonni J Friedman 2012-04-27 23:25:01 problems after restoring from a pg_basebackup