Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 2F39764FE9F for ; Tue, 2 Dec 2008 18:32:54 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 99067-04 for ; Tue, 2 Dec 2008 18:32:51 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from web39708.mail.mud.yahoo.com (web39708.mail.mud.yahoo.com [209.191.106.54]) by mail.postgresql.org (Postfix) with SMTP id CCC2B64FE0F for ; Tue, 2 Dec 2008 18:32:50 -0400 (AST) Received: (qmail 57549 invoked by uid 60001); 2 Dec 2008 22:32:49 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=ddV1Pbc77sfnA2sfmCm6b7Z+qV/sg0CnQKJzkN8izoRMuzDFciVqVNPnEOqPlbfSNd5IDkbRHa6vYHSo/SUo8+1Phemb8/l8nqjQarvyeWekTylgR+ovMBOLVPvFb6Kcf2uWxPHbZ3fTFNy4xS9l3rFO+6lbHW6dEiJFd8gX3lg=; X-YMail-OSG: M9dlnooVM1mr4fqiGwh4KbCjeSnlduH.YNEjo7XgSFK8s66xEUPpo7Rza3EKMs_SPWUmuIa45dKaXALSKU9Mwsq0k1k2SNoVb5BBiQfUDSnwGQKSIso8q.DKLEplL3TqiuQJ1Iz_tEQ8Hf2.dUhCahlYKMdyFJpMmtBg3sxwlkgaNLGbMO7lfbfh1E4- Received: from [65.200.157.178] by web39708.mail.mud.yahoo.com via HTTP; Tue, 02 Dec 2008 14:32:48 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Tue, 2 Dec 2008 14:32:48 -0800 (PST) From: Bob Lunney Reply-To: bob_lunney@yahoo.com Subject: Re: PostgreSQL Database freezes during backup then generates drwtsn.exe process To: pgsql-admin@postgresql.org, Ward Eaton In-Reply-To: <04A6DB42D2BA534FAC77B90562A6A03DB91F47@server.rad-con.local> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-870768935-1228257168=:57051" Message-ID: <245622.57051.qm@web39708.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200812/17 X-Sequence-Number: 30850 --0-870768935-1228257168=:57051 Content-Type: text/plain; charset=iso-8859-7 Content-Transfer-Encoding: quoted-printable Ward, I've experienced the exact problem you describe.=A0 The two machines where = identical in every way: make, model, disk layout, OS, etc., and this scenar= io happens regardless of which machine was the primary and which was the wa= rm-standby.=A0 Note I was not running pgAgent. I was using pg_standby to implement copying of WAL files between machines.= =A0 It would copy the WAL file to a network shared directory, where the war= m-standby would pick up the file and use it, until the fatal error you desc= ribe happened. I had discovered that during a copy operation Windows will allocate the ent= ire file size on the target prior to completing the file copy.=A0 This diff= ers from Unix, and may have something to do with the errors we are seeing.= =A0 I'm speculating here, but I believe when the recovery code "sees" a 16 = Mb file it thinks the entire file contents are available, which is not nece= ssarily the case with Windows. I know some folks recommend rsync, but that requires installing cygwin and = my client isn't happy with that idea.=A0 Possibly copying the WAL file to a= temporary location, then moving it to the target location may mitigate the= problem, since move operations (on the same disk drive, anyway) in Windows= simpy rejigger the file descriptor and don't reallocate any disk space.=A0= I haven't tried it yet, but I'm moving in that direction. Regards, Bob Lunney --- On Tue, 12/2/08, Ward Eaton wrote: From: Ward Eaton Subject: [ADMIN] PostgreSQL Database freezes during backup then generates d= rwtsn.exe process To: pgsql-admin@postgresql.org Date: Tuesday, December 2, 2008, 9:01 AM =20 =20 =20 =20 I=A2m running PostgreSQL 8.3 on a Windows 2003 machine (pgAgent service is also installed and running).=A0 The system is running as a redundant database server.=A0 Thus,= backing up from one machine to another, and transferring over WAL logs.=A0 In the p= ostageSQL log files there are several error messages that read:=20 =A1could not rename file, no such file or directory=A2=A0 =20 =A0=20 Eventually, postgreSQL =A1freezes=A2, I=A2m unable to access the database, and there is no logging.=A0 I find a drwtsn.= exe process running under the postgres account in Task Manager.=A0 If I kill th= e drwtsn PostgreSQL service will stop.=A0 I can then restart it and the datab= ase will run as expected for a few days.=A0 =20 =A0=20 Has anyone encountered this problem before?=A0 If so, were you able to find a solution?=20 =A0=20 Thanks for any help in advance.=20 =A0=20 Ward Eaton Project Engineer Automation RAD-CON Inc. TECHNOLOGY: Innovative & Proven Office: +1.216.706.8927 Fax: +1.216.221.1135 Website: www.RAD-CON.com E-mail: Ward.Eaton@RAD-CON.com=20 =A0=20 =20 =0A=0A=0A --0-870768935-1228257168=:57051 Content-Type: multipart/related; boundary="0-1719689203-1228257168=:57051" --0-1719689203-1228257168=:57051 Content-Type: text/html; charset=iso-8859-7 Content-Transfer-Encoding: quoted-printable
Ward,

I've experienced the exact probl= em you describe.  The two machines where identical in every way: make,= model, disk layout, OS, etc., and this scenario happens regardless of whic= h machine was the primary and which was the warm-standby.  Note I was = not running pgAgent.

I was using pg_stan= dby to implement copying of WAL files between machines.  It wou= ld copy the WAL file to a network shared directory, where the warm-standby = would pick up the file and use it, until the fatal error you describe happe= ned.

I had discovered that during a copy operation Windows will allo= cate the entire file size on the target prior to completing the file copy.&= nbsp; This differs from Unix, and may have something to do with the errors = we are seeing.  I'm speculating here, but I believe when the recovery = code "sees" a 16 Mb file it thinks the entire file contents are available, whic= h is not necessarily the case with Windows.

I know some folks recomm= end rsync, but that requires installing cygwin and my client isn't happy wi= th that idea.  Possibly copying the WAL file to a temporary location, = then moving it to the target location may mitigate the problem, since move = operations (on the same disk drive, anyway) in Windows simpy rejigger the f= ile descriptor and don't reallocate any disk space.  I haven't tried i= t yet, but I'm moving in that direction.

Regards,

Bob Lunney<= br>
--- On Tue, 12/2/08, Ward Eaton <Ward.Eaton@rad-con.com>= wrote:
From: Ward Eaton <Ward.Eaton= @rad-con.com>
Subject: [ADMIN] PostgreSQL Database freezes during bac= kup then generates drwtsn.exe process
To: pgsql-admin@postgresql.org
Date: Tuesday, December 2, 2008, 9:01 AM
=
=20 =20 =20 =20

I=A2m running PostgreSQL 8.3 on a Windows 2003 machine (pgAgent service is also installed and running).  The system is running as a redundant database server. = Thus, backing up from one machine to another, and transferring over WAL logs.  In th= e postageSQL log files there are several error messages that read:

=20

=A1could not rename file, no such file or = directory=A2 

=20

 

=20

Eventually, postgreSQL =A1freezes=A2, I=A2= m unable to access the database, and there is no logging.  I find a drwt= sn.exe process running under the postgres account in Task Manager.  If I kill= the drwtsn PostgreSQL service will stop.  I can then restart it and the da= tabase will run as expected for a few days. 

=20

 

=20

Has anyone encountered this problem before= ?  If so, were you able to find a solution?

=20

 

=20

Thanks for any help in advance.

=20

 

=20

Ward Eaton
Project Engineer Automation

RAD-CON Inc.
TECHNOLOGY:
Innovative &a= mp; Proven
Office: +1.216.706.8927
Fax: +1.216.221.1135
Website: www.RAD-CON.com
E-mail: Ward.Eaton@RAD-CON.com

=20

 

=20
=20

=0A=0A=0A=0A --0-1719689203-1228257168=:57051 Content-Type: image/jpeg; name="image002.jpg" Content-Transfer-Encoding: base64 Content-Id: <1.2598094968@web39708.mail.mud.yahoo.com> Content-Description: image002.jpg /9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIf IiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7 Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAuAIwDASIA AhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQA AAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFh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