Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vv9PL-0004Fz-5N for pgsql-admin@arkaria.postgresql.org; Mon, 23 Dec 2013 17:35:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vv9PK-0000C0-C2 for pgsql-admin@arkaria.postgresql.org; Mon, 23 Dec 2013 17:35:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vv9PJ-0000BS-AJ for pgsql-admin@postgresql.org; Mon, 23 Dec 2013 17:35:09 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vv9PF-0006sT-Me for pgsql-admin@postgresql.org; Mon, 23 Dec 2013 17:35:08 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Vv9PD-0006Nz-W8 for pgsql-admin@postgresql.org; Mon, 23 Dec 2013 09:35:03 -0800 Date: Mon, 23 Dec 2013 09:35:03 -0800 (PST) From: olimaz To: pgsql-admin@postgresql.org Message-ID: <1387820103987-5784441.post@n5.nabble.com> In-Reply-To: <5137EE26.6010405@consistentstate.com> References: <5137EE26.6010405@consistentstate.com> Subject: Re: HOT Standby - slave does not appear to be removing wal files MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org 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. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin