pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #6653: Service does not start in standby-mode
2+ messages / 2 participants
[nested] [flat]

* BUG #6653: Service does not start in standby-mode
@ 2012-05-21 10:45  axw-sk@ipa.fhg.de
  0 siblings, 1 reply; 2+ messages in thread

From: axw-sk@ipa.fhg.de @ 2012-05-21 10:45 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      6653
Logged by:          Sebastian K.
Email address:      axw-sk@ipa.fhg.de
PostgreSQL version: 9.0.7
Operating system:   Windows 7 i386
Description:        

I want to set up a standby server for backup.

The server has a new installation of postgresql.

recovery.conf:
restore_command = 'copy "c:\\Users\\Administrator\\Desktop\\%f" "%p"'
standby_mode = 'on'

The files of the base backup are placed on the Desktop of the standby
server.

Additionally, the files are already copied to the pg_xlog directory.

Problem:
Placing the recovery.conf file in the data directory prevents the postgres
service to start.

Windows-Error-Log:
Starting service timeout.

PG-Log:
2012-05-21 12:38:38 CEST LOG:  Datenbanksystem wurde während der
Wiederherstellung am 2012-05-21 12:34:21 CEST heruntergefahren
2012-05-21 12:38:38 CEST LOG:  Standby-Modus eingeschaltet
2012-05-21 12:38:38 CEST FATAL:  das Datenbanksystem startet
2012-05-21 12:38:38 CEST WARNUNG:  WAL wurde mit wal_level=minimal erzeugt,
eventuell fehlen Daten
2012-05-21 12:38:38 CEST TIPP:  Das passiert, wenn vorübergehend
wal_level=minimal gesetzt wurde, ohne ein neues Base-Backup zu erzeugen.
2012-05-21 12:38:38 CEST LOG:  konsistenter Wiederherstellungszustand
erreicht bei 0/15FBB78
2012-05-21 12:38:38 CEST LOG:  Datensatz mit Länge null bei 0/15FBB78
2012-05-21 12:38:39 CEST FATAL:  das Datenbanksystem startet
2012-05-21 12:38:40 CEST FATAL:  das Datenbanksystem startet
2012-05-21 12:38:41 CEST FATAL:  das Datenbanksystem startet
2012-05-21 12:38:42 CEST FATAL:  das Datenbanksystem startet
2012-05-21 12:38:43 CEST FATAL:  das Datenbanksystem startet
2012-05-21 12:38:44 CEST FATAL:  das Datenbanksystem startet

The base backup was created with following settings in postgresql.conf:
wal_level = archive
archive_mode = on
archive_command = 'copy....




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #6653: Service does not start in standby-mode
@ 2012-05-22 20:08  Robert Haas <robertmhaas@gmail.com>
  parent: axw-sk@ipa.fhg.de
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Haas @ 2012-05-22 20:08 UTC (permalink / raw)
  To: axw-sk@ipa.fhg.de; +Cc: pgsql-bugs

On Mon, May 21, 2012 at 6:45 AM,  <axw-sk@ipa.fhg.de> wrote:
> The following bug has been logged on the website:
>
> Bug reference:      6653
> Logged by:          Sebastian K.
> Email address:      axw-sk@ipa.fhg.de
> PostgreSQL version: 9.0.7
> Operating system:   Windows 7 i386
> Description:
>
> I want to set up a standby server for backup.
>
> The server has a new installation of postgresql.
>
> recovery.conf:
> restore_command = 'copy "c:\\Users\\Administrator\\Desktop\\%f" "%p"'
> standby_mode = 'on'
>
> The files of the base backup are placed on the Desktop of the standby
> server.
>
> Additionally, the files are already copied to the pg_xlog directory.
>
> Problem:
> Placing the recovery.conf file in the data directory prevents the postgres
> service to start.
>
> Windows-Error-Log:
> Starting service timeout.
>
> PG-Log:
> 2012-05-21 12:38:38 CEST LOG:  Datenbanksystem wurde während der
> Wiederherstellung am 2012-05-21 12:34:21 CEST heruntergefahren
> 2012-05-21 12:38:38 CEST LOG:  Standby-Modus eingeschaltet
> 2012-05-21 12:38:38 CEST FATAL:  das Datenbanksystem startet
> 2012-05-21 12:38:38 CEST WARNUNG:  WAL wurde mit wal_level=minimal erzeugt,
> eventuell fehlen Daten
> 2012-05-21 12:38:38 CEST TIPP:  Das passiert, wenn vorübergehend
> wal_level=minimal gesetzt wurde, ohne ein neues Base-Backup zu erzeugen.
> 2012-05-21 12:38:38 CEST LOG:  konsistenter Wiederherstellungszustand
> erreicht bei 0/15FBB78
> 2012-05-21 12:38:38 CEST LOG:  Datensatz mit Länge null bei 0/15FBB78
> 2012-05-21 12:38:39 CEST FATAL:  das Datenbanksystem startet
> 2012-05-21 12:38:40 CEST FATAL:  das Datenbanksystem startet
> 2012-05-21 12:38:41 CEST FATAL:  das Datenbanksystem startet
> 2012-05-21 12:38:42 CEST FATAL:  das Datenbanksystem startet
> 2012-05-21 12:38:43 CEST FATAL:  das Datenbanksystem startet
> 2012-05-21 12:38:44 CEST FATAL:  das Datenbanksystem startet
>
> The base backup was created with following settings in postgresql.conf:
> wal_level = archive
> archive_mode = on
> archive_command = 'copy....

My German isn't very good, but it looks like you took this backup with
wal_level=minimal, which is no good.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2012-05-22 20:08 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-05-21 10:45 BUG #6653: Service does not start in standby-mode axw-sk@ipa.fhg.de
2012-05-22 20:08 ` Robert Haas <robertmhaas@gmail.com>

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