Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id F0430B5DC09 for ; Fri, 23 Sep 2011 05:41:39 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 45630-05 for ; Fri, 23 Sep 2011 08:41:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from exprod7og124.obsmtp.com (exprod7og124.obsmtp.com [64.18.2.26]) by mail.postgresql.org (Postfix) with ESMTP id AECFAB5DC01 for ; Fri, 23 Sep 2011 05:41:32 -0300 (ADT) Received: from mail-bw0-f54.google.com ([209.85.214.54]) (using TLSv1) by exprod7ob124.postini.com ([64.18.6.12]) with SMTP ID DSNKTnxGO/mPyyNysDPagzltZkYBA0U0335p@postini.com; Fri, 23 Sep 2011 01:41:33 PDT Received: by mail-bw0-f54.google.com with SMTP id zs8so4143565bkb.41 for ; Fri, 23 Sep 2011 01:41:31 -0700 (PDT) Received: by 10.204.146.154 with SMTP id h26mr2405927bkv.121.1316767291362; Fri, 23 Sep 2011 01:41:31 -0700 (PDT) Received: from [192.168.1.183] (dsl-hkibrasgw2-ff7ac300-240.dhcp.inet.fi. [88.195.122.240]) by mx.google.com with ESMTPS id x4sm1303398fad.1.2011.09.23.01.41.29 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 23 Sep 2011 01:41:30 -0700 (PDT) Message-ID: <4E7C4638.1060103@enterprisedb.com> Date: Fri, 23 Sep 2011 11:41:28 +0300 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.2.21) Gecko/20110831 Icedove/3.1.13 MIME-Version: 1.0 To: Linas Virbalas CC: Euler Taveira de Oliveira , Robert Haas , Florian Pflug , "pgsql-hackers@postgresql.org" Subject: Re: Hot Backup with rsync fails at pg_clog if under load References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201109/1177 X-Sequence-Number: 195366 On 23.09.2011 11:02, Linas Virbalas wrote: > On 9/22/11 6:59 PM, "Euler Taveira de Oliveira" wrote: > >>> If needed, I could do that, if I had the exact procedure... Currently, >>> during the start of the backup I take the following information: >>> >> Just show us the output of pg_start_backup and part of the standby log with >> the following message 'redo starts at' and the subsequent messages up to the >> failure. > > Unfortunately, it's impossible, because the error message "Could not read > from file "pg_clog/0001" at offset 32768: Success" is shown (and startup > aborted) before the turn for "redo starts at" message arrives. It looks to me that pg_clog/0001 exists, but it shorter than recovery expects. Which shouldn't happen, of course, because the start-backup checkpoint should flush all the clog that's needed by recovery to disk before the backup procedure begins to them. Can you do "ls -l pg_clog" in the master and the backup, and pg_controldata on the backup dir, and post the results, please? -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com