Re: HOT Standby - slave does not appear to be removing wal files - Mailing list pgsql-admin

From olimaz
Subject Re: HOT Standby - slave does not appear to be removing wal files
Date
Msg-id 1387820103987-5784441.post@n5.nabble.com
Whole thread Raw
In response to HOT Standby - slave does not appear to be removing wal files  (CS DBA <cs_dba@consistentstate.com>)
List pgsql-admin
I had the very same problem, and after checking postgres log file, found the
following warning every 5 minutes:

archive_cleanup_command  "pg_archivecleanup /srv/postgresql/wals/ %r":
return code 32512

wich means the pg_archivecleanup script was not found.

The solution: edit the file  /var/lib/postgresql/9.1/main/recovery.conf  and
make sure it is set like this:

archive_cleanup_command = '/usr/lib/postgresql/9.1/bin/pg_archivecleanup
/srv/postgresql/wals/ %r'

(be careful: I keep my wal files in a special dir "/srv/postgresql/wals/"
yours will be a different location)

in my case, after 5 minutes, my 140 GB wal dir changed to just 2 files,
being one of them a .backup file.  Before that, I did not had a .backup file
at all, so I could not make use of wal cleanup procedures.








--
View this message in context:
http://postgresql.1045698.n5.nabble.com/HOT-Standby-slave-does-not-appear-to-be-removing-wal-files-tp5747774p5784441.html
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.


pgsql-admin by date:

Previous
From: bricklen
Date:
Subject: Re: pg_restore >10million large objects
Next
From: Omer Faruk SEN
Date:
Subject: Migration from 8.2 to 8.4 or major version migration and how postgres db is handled?