Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id C072BB5DBDA for ; Wed, 25 May 2011 02:35:44 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 61923-02 for ; Wed, 25 May 2011 05:35:37 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from exprod7og105.obsmtp.com (exprod7og105.obsmtp.com [64.18.2.163]) by mail.postgresql.org (Postfix) with ESMTP id 83EDFB5DBD8 for ; Wed, 25 May 2011 02:35:22 -0300 (ADT) Received: from mail-ey0-f174.google.com ([209.85.215.174]) (using TLSv1) by exprod7ob105.postini.com ([64.18.6.12]) with SMTP ID DSNKTdyVGaMIrGCD5L2uG8cDHhP33e4BjSht@postini.com; Tue, 24 May 2011 22:35:22 PDT Received: by mail-ey0-f174.google.com with SMTP id 24so2490942eyx.19 for ; Tue, 24 May 2011 22:35:21 -0700 (PDT) Received: by 10.14.44.197 with SMTP id n45mr1524527eeb.146.1306301721268; Tue, 24 May 2011 22:35:21 -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 y2sm5828096eeh.25.2011.05.24.22.35.19 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 May 2011 22:35:20 -0700 (PDT) Message-ID: <4DDC9515.2000003@enterprisedb.com> Date: Wed, 25 May 2011 08:35:17 +0300 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.1.16) Gecko/20110505 Icedove/3.0.11 MIME-Version: 1.0 To: manish singh CC: pgsql-bugs@postgresql.org Subject: Re: BUG #6037: error on restarting slave - cp: cannot stat `pg_xlog....`: no such file or ... References: <201105241527.p4OFRWPJ025773@wwwmaster.postgresql.org> In-Reply-To: <201105241527.p4OFRWPJ025773@wwwmaster.postgresql.org> Content-Type: text/plain; charset=UTF-8; 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: 201105/179 X-Sequence-Number: 30318 On 24.05.2011 18:27, manish singh wrote: > When ever i am restarting postgresql slave (Service postgresql restart - > made a script) or even just stopping and starting a postgresql slave.. it > displays a a message, although slave get's started and working fine... > > server starting > cp: cannot stat > `/usr/local/pgsql/data/pg_xlogarch/000000010000000300000026': No such file > or directory > cp: cannot stat > `/usr/local/postgres/data/pg_xlogarch/000000010000000300000026': No such > file or directory The standby server periodically checks if new WAL has arrived by executing the restore_command. Your restore_command uses 'cp', which prints out that message if the target file can't be found. In other words, your system seems to be working correctly, and those messages are harmless. You could silence it by replacing plain 'cp' with a shell script that checks if the file exists first and calls 'cp' only if it does. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com