Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 8E2B764FCC1 for ; Tue, 26 Aug 2008 07:38:10 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 37560-09 for ; Tue, 26 Aug 2008 07:38:02 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail128065.authsmtp.net (outmail128065.authsmtp.net [62.13.128.65]) by postgresql.org (Postfix) with ESMTP id 5A98F64FCC0 for ; Tue, 26 Aug 2008 07:38:04 -0300 (ADT) Received: from mail-c187.authsmtp.com (mail-c187.authsmtp.com [62.13.128.33]) by punt4.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m7QAc13H013287; Tue, 26 Aug 2008 11:38:01 +0100 (BST) Received: from [192.168.10.100] (LAubervilliers-151-12-98-86.w193-252.abo.wanadoo.fr [193.252.201.86]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m7QAbwQG099567; Tue, 26 Aug 2008 11:37:59 +0100 (BST) Subject: Re: PITR wrm-standby startup fails From: Simon Riggs To: bob_lunney@yahoo.com Cc: pgsql-admin@postgresql.org In-Reply-To: <553812.74940.qm@web39702.mail.mud.yahoo.com> References: <553812.74940.qm@web39702.mail.mud.yahoo.com> Content-Type: text/plain Date: Tue, 26 Aug 2008 11:24:21 +0100 Message-Id: <1219746261.5343.1292.camel@ebony.2ndQuadrant> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Server-Quench: 0db84ff1-735b-11dd-8155-001185d377ca X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksadBtFagNbbExW HGQLW1xEUVx7Wmt/ awofbAxefEhLXRto UElXSlRNFgBqBAMB SEMZM2ggMGQxeHd5 YEBlEHJdWEA0dRIv SkoCQ2wbYmRlOn0e URQMagtVdQZXfh9E a1h6AHAKZjZWKBg1 TUcAFhwUHBNqYBx0 fjtFMkgXBF0XFzgw TQFKBikmB1EYX209 Jh0iMTYy X-Authentic-SMTP: 61633235383639.squirrel.dmpriest.net.uk:1186/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200808/162 X-Sequence-Number: 30007 On Sun, 2008-08-24 at 22:17 -0700, Bob Lunney wrote: > I'm trying to vet the PITR/warm-standby process so set up a primary > and secondary server on two different Windows machines. (Yeah, I > know, but I don't have a choice in the matter.) > > The primary works fine and copies its WAL files to the archive > directory. As long as the secondary is in recovery mode life is good. > When I introduce the trigger file, however, to kick the secondary out > of recovery mode it bombs, complaining that its looking for the next > WAL file (which is never going to arrive, especially not in the local > pg_xlog directory), then gives me an "invalid parameter" error. The > relevent part of the secondary's log file is here: > > 2008-08-24 23:02:56 CDT LOG: restored log file > "000000010000000400000088" from archive > 2008-08-24 23:03:01 CDT LOG: restored log file > "000000010000000400000089" from archive > 2008-08-24 23:03:06 CDT LOG: restored log file > "00000001000000040000008A" from archive > 2008-08-24 23:07:02 CDT LOG: could not open file > "pg_xlog/00000001000000040000008B" (log file 4, segment 139): No such > file or directory > 2008-08-24 23:07:05 CDT LOG: startup process (PID 1468) was > terminated by exception 0xC000000D > 2008-08-24 23:07:05 CDT HINT: See C include file "ntstatus.h" for a > description of the hexadecimal value. > 2008-08-24 23:07:05 CDT LOG: aborting startup due to startup process > failure > > My recovery command is: > > restore_command = '..\bin\pg_standby -d -s 5 > -t .\pgsql.trigger.5442 ..\data\archive %f %p %r 2>>pg_log > \standby.log' > > > I found this on the forums. Could it be the source of the problem I'm > experiencing? The way you are using this looks correct. The startup process would not/should not fail in this way and there should be additional messages between the log entries from 23:03 to 23:07. I don't see any reason for a 4 minute wait at that point, especially since previous files took 5 seconds. Are you showing us the whole log? Please re-run this at DEBUG3 so we can see what else is happening. -- Simon Riggs www.2ndQuadrant.com PostgreSQL Training, Services and Support