Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XbZSa-0006EP-NA for pgsql-admin@arkaria.postgresql.org; Tue, 07 Oct 2014 18:26:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XbZSZ-000723-Aq for pgsql-admin@arkaria.postgresql.org; Tue, 07 Oct 2014 18:26:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XbZSK-0006gM-Qg for pgsql-admin@postgresql.org; Tue, 07 Oct 2014 18:25:52 +0000 Received: from mail-qa0-x236.google.com ([2607:f8b0:400d:c00::236]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XbZSG-00030H-E7 for pgsql-admin@postgresql.org; Tue, 07 Oct 2014 18:25:50 +0000 Received: by mail-qa0-f54.google.com with SMTP id i13so4747072qae.27 for ; Tue, 07 Oct 2014 11:25:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=vmLvMZXyDXhQzDIq31XHov4AHmwR+WLWTbyGeuARoLE=; b=VBnvFABPolK3jOvCVO3xsjK1WI6+T4qEEFhQxF5RZwvxPTqxtzhA9BuJCIrYWg8eAg D2p/2eILebv0Xd99heAMtejs9iClZSFaqB1PMDWT3alSAlDjN7iCGK8vPzjH5/thBYy9 2cyoVtOYjFgtPcfzQi0PUKV5BozxlJjXMx45J/vw7peVAAJIwVGuNXPWZYeGu+CMdcLi Pdviz74aYXLQ+KDLN6JdSGxT9jU60LXSRifZ78O/pzsQe/F7T3PPCQZo1FTGJtv3aH/k 6PZUtVafDE/gX8rEEJca+DdFlq2igYFjQYbwTISNL9VbVIOCfahDYCO2Q9l7IHhMws7b 3reg== X-Received: by 10.140.85.17 with SMTP id m17mr38265728qgd.50.1412706345661; Tue, 07 Oct 2014 11:25:45 -0700 (PDT) Received: from [192.168.254.3] (h77.89.102.166.static.ip.windstream.net. [166.102.89.77]) by mx.google.com with ESMTPSA id w8sm14404539qap.32.2014.10.07.11.25.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 Oct 2014 11:25:45 -0700 (PDT) References: <5434239E.50508@gmail.com> <8638azzrg6.fsf@jerry.enova.com> Mime-Version: 1.0 (1.0) In-Reply-To: <8638azzrg6.fsf@jerry.enova.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <1EC56EAF-F94C-4144-B6F5-3EA525C467A9@gmail.com> Cc: "pgsql-admin@postgresql.org" X-Mailer: iPad Mail (11D257) From: jayknowsunix@gmail.com Subject: Re: Error messages in a hot standby server's logfiles Date: Tue, 7 Oct 2014 14:25:43 -0400 To: Jerry Sievers X-Pg-Spam-Score: -1.0 (-) 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 Thanks for the confirmation in what I thought might be happening. Now, to t= ry to convince the QA folks that this is what's going on. Sent from my iPad > On Oct 7, 2014, at 1:56 PM, Jerry Sievers wrote: >=20 > Sorry, meant 'restore_command' not archive_command. See below... >=20 > John Scalia writes: >=20 >> Hi all, >>=20 >> My setup is: postgresql V9.3.3 running on a CentOS 6.5 (kernel >> 2.6.32-358.18.1.el6.x86_64) and I have 3 servers, one primary and two >> hot standbys. In our failover and loss of communications testing, I >> have seen a couple of issues that I'm hard to explain. For instance, >> we took one hot standby out of service by shutting down postgresql on >> it. Now, we're hot standby with log shipping as an insurance policy, >> so the WAL segments continued to be copied onto that out of service >> standby for a few minutes. On restart, I see: >>=20 >> cp: cannot stat '/mnt/wallogs/archive/0000000C.history': No such file or= directory >> cp: cannot stat '/mnt/wallogs/archive/0000000B0000001900000077': No such= file or directory >>=20 >> Later in the logfile, I see another failure for 000000B.history. >=20 > These .history files may or may not exist depending on whether timeline > branching has been done. >=20 > The only way Pg knows how to check for them is invoking archive_command > which is your case is cp and thus the message. >=20 > HTH >=20 >>=20 >> In looking at the /mnt/wallogs/archive directory, those files aren't >> there, but as the primary never had an issue and continued to copy WAL >> segments to this directory, why was the standby looking for them? What >> triggered this? Also, in that directory, I often see files generated >> by the pg_basebackup command used to build the standby, files like >> "0000000B0000001900000000.00000028.backup" or generally files ending >> with .backup in their names. These never get removed automatically by >> the standby server. We have to manually remove them. So, I'm guessing >> they weren't necessary, so why did the primary copy them here using >> its archive_command? Why aren't they removed by some mechanism on the >> standby? >>=20 >> -- >> Jay >=20 > --=20 > Jerry Sievers > Postgres DBA/Development Consulting > e: postgres.consulting@comcast.net > p: 312.241.7800 --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin