pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: manish singh <delhi.manish@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6037: error on restarting slave - cp: cannot stat `pg_xlog....`: no such file or ...
Date: Wed, 25 May 2011 08:35:17 +0300
Message-ID: <4DDC9515.2000003@enterprisedb.com> (raw)
In-Reply-To: <201105241527.p4OFRWPJ025773@wwwmaster.postgresql.org>
References: <201105241527.p4OFRWPJ025773@wwwmaster.postgresql.org>

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



view thread (2+ messages)

Message-ID: <4DDC9515.2000003@enterprisedb.com>
Permalink:  ../4DDC9515.2000003@enterprisedb.com/
Also on:    postgresql.org/message-id/4DDC9515.2000003@enterprisedb.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: heikki.linnakangas@enterprisedb.com, delhi.manish@gmail.com
  Subject: Re: BUG #6037: error on restarting slave - cp: cannot stat `pg_xlog....`: no such file or ...
  In-Reply-To: <4DDC9515.2000003@enterprisedb.com>
  References: <201105241527.p4OFRWPJ025773@wwwmaster.postgresql.org> <4DDC9515.2000003@enterprisedb.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox