Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b5J2G-0003p8-6s for pgsql-admin@arkaria.postgresql.org; Tue, 24 May 2016 20:34:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b5J2F-00041d-Oo for pgsql-admin@arkaria.postgresql.org; Tue, 24 May 2016 20:34:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b5J0Y-00028V-Hy for pgsql-admin@postgresql.org; Tue, 24 May 2016 20:32:54 +0000 Received: from resqmta-ch2-03v.sys.comcast.net ([2001:558:fe21:29:69:252:207:35]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b5J0S-0005Ra-1D for pgsql-admin@postgresql.org; Tue, 24 May 2016 20:32:53 +0000 Received: from resomta-ch2-20v.sys.comcast.net ([69.252.207.116]) by comcast with SMTP id 5IzobUXKZLCmU5J0KblyWA; Tue, 24 May 2016 20:32:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1464121960; bh=9vlmDuMfNjaBH6HPDepza5HV7y3P081hBlrQfXbpZow=; h=Received:Received:Received:From:To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=HELuEdCigBDayLHDR+1cBmzi0s3H72l5Mz7Tz+vIkJQlffAdWZoDZJjvjW2x17E3u RO+E5ufP7a85+RkVOYoRGKeE7m/Yhm5hdQ12mw93fTIb5uPysejlYwu4zqlsGGdQ3W ZHj5S+d4XT9GLeyUW93URxlXyZpHEROYG+SoDpaz17nSeXT+smFJ+XARKDQ9Bi7KQt MVSoumpX0BWDS+i2VeX4SNaH76GhI938TJMYXhSdhKZm8imJ9i+M8B26LPLB6vKGet qE8NaQh+bYhihIgE5ufdZiyybGnYQ+aJyRY2at6/Ypbd6lqwR14WVuKMDOjxEU5VjD nVzDAe9/YmA9Q== Received: from jerry.enova.com ([12.30.159.20]) by resomta-ch2-20v.sys.comcast.net with comcast id yLYV1s00P0ShjPw01LYXQy; Tue, 24 May 2016 20:32:38 +0000 Received: by jerry.enova.com (Postfix, from userid 1001) id 69708740214; Tue, 24 May 2016 15:32:29 -0500 (CDT) From: Jerry Sievers To: Craig James Cc: "pgsql-admin\@postgresql.org" Subject: Re: Backup server References: Date: Tue, 24 May 2016 15:32:29 -0500 In-Reply-To: (Craig James's message of "Tue, 24 May 2016 12:31:04 -0700") Message-ID: <86k2ij8aea.fsf@jerry.enova.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.9 (--) 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 Craig James writes: > We have a backup server (via barman) that's not consuming it's WAL files, and the disk filled up. I made some space on the disk, and now it's doing this: > > 2016-05-24 12:24:40 PDT  : LOG:  redo starts at 44E0/2A091CE0 > 2016-05-24 12:24:40 PDT  : LOG:  restored log file "00000001000044E00000002B" from archive > 2016-05-24 12:24:40 PDT  : LOG:  restored log file "00000001000044E00000002C" from archive > 2016-05-24 12:24:40 PDT  : LOG:  restored log file "00000001000044E00000002D" from archive > 2016-05-24 12:24:40 PDT  : LOG:  restored log file "00000001000044E00000002E" from archive > ---snip for brevity, about 30 files --- > 2016-05-24 12:24:45 PDT  : LOG:  restored log file "00000001000044E000000050" from archive > 2016-05-24 12:24:45 PDT  : LOG:  restored log file "00000001000044E000000051" from archive > 2016-05-24 12:24:45 PDT  : LOG:  restored log file "00000001000044E000000052" from archive > 2016-05-24 12:24:45 PDT  : LOG:  restored log file "00000001000044E000000053" from archive > 2016-05-24 12:24:45 PDT  : LOG:  restored log file "00000001000044E000000054" from archive > 2016-05-24 12:24:45 PDT  : LOG:  restored log file "00000001000044E000000055" from archive > 2016-05-24 12:24:46 PDT  : LOG:  restored log file "00000001000044E000000056" from archive > 2016-05-24 12:24:46 PDT  : LOG:  consistent recovery state reached at 44E0/56FFE488 > 2016-05-24 12:24:46 PDT  : LOG:  database system is ready to accept read only connections > 2016-05-24 12:24:46 PDT  : LOG:  unexpected pageaddr 44D6/6A000000 in log segment 00000001000044E000000057, offset 0 > 2016-05-24 12:24:46 PDT  : LOG:  restored log file "00000001000044E000000056" from archive > 2016-05-24 12:24:51 PDT  : LOG:  restored log file "00000001000044E000000056" from archive > 2016-05-24 12:24:56 PDT  : LOG:  restored log file "00000001000044E000000056" from archive > 2016-05-24 12:25:01 PDT  : LOG:  restored log file "00000001000044E000000056" from archive > 2016-05-24 12:25:06 PDT  : LOG:  restored log file "00000001000044E000000056" from archive > 2016-05-24 12:25:11 PDT  : LOG:  restored log file "00000001000044E000000056" from archive > 2016-05-24 12:25:16 PDT  : LOG:  restored log file "00000001000044E000000056" from archive > 2016-05-24 12:25:21 PDT  : LOG:  restored log file "00000001000044E000000056" from archive > 2016-05-24 12:25:26 PDT  : LOG:  restored log file "00000001000044E000000056" from archive > 2016-05-24 12:25:31 PDT  : LOG:  restored log file "00000001000044E000000056" from archive > > Notice how it's repeating the last file. It does this forever. > > If I stop the server and restart, it repeats this exact sequence, starting with 00000001000044E00000002B. > > The recovery.conf file looks like this: > > standby_mode = on > restore_command = 'cp /data/pg_wal_ship_dock/%f %p 2>/dev/null' > archive_cleanup_command = '/usr/local/pgsql-9.3.5/bin/pg_archivecleanup /data/pg_wal_ship_dock %r 2>>cleanup.log' > > The /data/pg_wal_ship_doc directory currently has 590GB of WAL files, which is why the disk got full to begin with. The cleanup.log file is empty. > > This is PG 9.3.5 running on Ubuntu. > > Any suggestions where to look next? Yes. Don't devnull your cp command. Let it spill into the log file and/or redirect it to some actual file and see if there's anything being said by cp. And you should minor version upgrade your 9.3 to latest. You're way behind. > Thanks, > Craig > -- Jerry Sievers Postgres DBA/Development Consulting e: postgres.consulting@comcast.net p: 312.241.7800 -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin