9.1.3: launching streaming replication

From: "Welty, Richard" <rwelty(at)ltionline(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: 9.1.3: launching streaming replication
Date: 2012-04-02 21:21:12
Message-ID: C35FDD5FDF7E584991A6AAF8F1A8425F0226ACE9@ltischx01.lti.int
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-general

i have a server in the ec2 cloud which in theory is set up as a master; it starts and runs. i've got an amazon s3 bucket mounted using s3fs on both the master and the standby (the standby is also set up in the ec2 cloud.)

i followed the steps here: http://wiki.postgresql.org/wiki/Streaming_Replication
and have the backup and the wal archive on the s3 bucket and they are both there.

when i go to start the hot standby, i pretty consistently get

LOG: entering standby mode
cp: cannot stat `/db-backup/wal_archive/000000010000000000000001': No such file or directory
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 29938) exited with exit code 1
LOG: aborting startup due to startup process failure

and the startup of the hot standby fails. the Riggs admin cookbook says "you will need a short delay", but has no guesstimate on the length required. i don't even know if i'm seeing this problem or something else.

if i need to run a new backup, what cleanup do i need to do of old backups and wal_archives? could this be interfering with the startup of the standby? i've gone through several iterations and fixed some problems, and wonder if there's obsolete data that is messing things up?

thanks,
richard

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Michael Nolan 2012-04-02 23:19:38 Re: 9.1.3: launching streaming replication
Previous Message Basil Bourque 2012-03-31 22:02:58 Re: postgresql manuals

Browse pgsql-general by date

  From Date Subject
Next Message Efraín Déctor 2012-04-02 21:40:00 Where to create an Index
Previous Message Bartosz Dmytrak 2012-04-02 20:28:44 Re: Please help me to take a look of the erros in my functions. Thanks.