pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: fazool mein <fazoolmein@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Error while setting up streaming replication, postgres 9.0-beta 4
Date: Mon, 23 Aug 2010 15:17:55 -0400
Message-ID: <10238.1282591075@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTikKK_4SGfjek=tGqvCrJrbE4GpALq1muqaR6ipM@mail.gmail.com>
References: <AANLkTikKK_4SGfjek=tGqvCrJrbE4GpALq1muqaR6ipM@mail.gmail.com>

fazool mein <fazoolmein@gmail.com> writes:
> I'm trying to test streaming replication. I set up a primary and secondary.
> The primary starts normal, but when I start the standby, it doesn't start
> up. The log looks like this:

> LOG:  database system was interrupted while in recovery at log time
> 2010-08-23 13:30:43 EDT
> HINT:  If this has occurred more than once some data might be corrupted and
> you might need to choose an earlier recovery target.
> LOG:  entering standby mode
> WARNING:  WAL was generated with wal_level=minimal, data may be missing
> HINT:  This happens if you temporarily set wal_level=minimal without taking
> a new base backup.
> FATAL:  hot standby is not possible because wal_level was not set to
> "hot_standby" on the master server
> HINT:  Either set wal_level to "hot_standby" on the master, or turn off
> hot_standby here.
> LOG:  startup process (PID 5875) exited with exit code 1
> LOG:  aborting startup due to startup process failure


> Note that I have checked multiple times that 'wal_level' is set to
> 'hot_standby' on the primary,

You need to do that *before* taking your base backup.  The WARNING above
indicates that the backup was taken with an inadequate wal_level
setting.

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <10238.1282591075@sss.pgh.pa.us>
Permalink:  ../10238.1282591075@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10238.1282591075@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, fazoolmein@gmail.com
  Subject: Re: Error while setting up streaming replication, postgres 9.0-beta 4
  In-Reply-To: <10238.1282591075@sss.pgh.pa.us>

* 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