From dkalp@sensormgmt.com Fri Aug 12 21:22:31 2005 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CDC0952EE6 for ; Fri, 12 Aug 2005 18:22:31 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 13318-02 for ; Fri, 12 Aug 2005 21:22:28 +0000 (GMT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by svr1.postgresql.org (Postfix) with ESMTP id 4E86152DFF for ; Fri, 12 Aug 2005 18:22:27 -0300 (ADT) Received: from DELLMOTE ([151.201.138.110]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IL400BFGOPG7PZ8@vms044.mailsrvcs.net> for pgsql-admin@postgresql.org; Fri, 12 Aug 2005 16:22:29 -0500 (CDT) Date: Fri, 12 Aug 2005 17:22:29 -0400 From: "Dirk Kalp" Subject: Server Won't Start On a Copy of Its Own Data Folder To: Message-id: <003201c59f83$f2499d50$7001a8c0@DELLMOTE> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Mailer: Microsoft Outlook Express 6.00.2900.2180 Content-type: multipart/alternative; boundary="----=_NextPart_000_002F_01C59F62.6AD3E450" X-Priority: 3 X-MSMail-priority: Normal X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.174 tagged_above=0 required=5 tests=[AWL=0.078, HTML_50_60=0.095, HTML_MESSAGE=0.001] X-Spam-Level: X-Archive-Number: 200508/163 X-Sequence-Number: 18482 This is a multi-part message in MIME format. ------=_NextPart_000_002F_01C59F62.6AD3E450 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Server Won't Start On a Copy of Its Own Data Folder 1. Installed the latest 8.0.3 binary on a Windows XP Pro system as a = service to be started on bootup.=20 2. Used psql just to verify that I can connect. 3. Used Windows Control Panel.Administrative Tools.Services to stop the = server cleanly. 4. Made a copy of the PostgreSQL/8.0/data folder 5. Renamed the installed folder as PostgreSQL/8.0/saved-data 6. Renamed the copy of data as PostrgeSQL/8.0/data 7. Used Windows Control Panel.Administrative Tools.Services to start the = server 8. The server fails to come up=20 Windows comes back and tells me that the service started and stopped. = The Windows=20 EventLog show that the postgres server was sent a start control, entered = the running state and=20 then entered the stopped state. There was nothing new in the pg_log = folder to provide any clue. I renamed the saved-data folder back to data and used the Services tool = to start the server with success but further attemps to start it with a copy of the data = folder all fail in the same way. Based on what I've gleaned on reading some of the past mail archives, I = thought that this should work. Have I misunderstood something? I went through this exercise in trying to solve a problem I posted about = on Monday=20 ([ADMIN] Trouble Getting Database Server Started) trying to recover a = database on a computer that may have powered down when the server was running. I = don't know what happened but I can't start the server any more on that computer. My = goal is to install the data folder from that computer on a new install of postgres = on a second=20 computer. Thanks for any help anyone can offer, Dirk Kalp ------=_NextPart_000_002F_01C59F62.6AD3E450 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Server Won't Start On a Copy of = Its Own Data=20 Folder
 
1. Installed the latest 8.0.3 = binary on a=20 Windows XP Pro system as a service to be started on bootup. =
2. Used psql just to verify that I can=20 connect.
3. Used Windows Control = Panel.Administrative=20 Tools.Services to stop the server cleanly.
4. Made a copy of the = PostgreSQL/8.0/data=20 folder
5. Renamed the installed folder as=20 PostgreSQL/8.0/saved-data
6. Renamed the copy of data as=20 PostrgeSQL/8.0/data
7. Used Windows Control = Panel.Administrative=20 Tools.Services to start the server
8. The server fails to come=20 up 
 
Windows comes back and tells me that = the service=20 started and stopped. The Windows
EventLog show that the postgres server = was sent a=20 start control, entered the running state and
then entered the stopped state. There = was nothing=20 new in the pg_log folder to provide
any clue.
 
I renamed the saved-data folder = back to data=20 and used the Services tool to start the server
with success but further attemps to = start it with a=20 copy of the data folder all fail in the same way.
 
Based on what I've gleaned on reading = some of the=20 past mail archives, I thought that this should
work. Have I misunderstood = something?
 
I went through this exercise in trying = to solve a=20 problem I posted about on Monday
([ADMIN] Trouble Getting Database = Server Started)=20 trying to recover a database on
a computer that may have powered down = when the=20 server was running. I don't know
what happened but I can't start the = server any more=20 on that computer. My goal is to
install the data folder from that = computer on a new=20 install of postgres on a second
computer.
 
Thanks for any help anyone can = offer,
Dirk Kalp
 
------=_NextPart_000_002F_01C59F62.6AD3E450-- From mha@sollentuna.net Mon Aug 15 19:06:36 2005 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B362452E76 for ; Mon, 15 Aug 2005 16:06:36 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 94650-02 for ; Mon, 15 Aug 2005 19:06:34 +0000 (GMT) Received: from mx-2.sollentuna.net (mx-2.sollentuna.net [195.84.163.199]) by svr1.postgresql.org (Postfix) with ESMTP id 8D23252E55 for ; Mon, 15 Aug 2005 16:06:34 -0300 (ADT) Received: from ALGOL.sollentuna.se (janus.sollentuna.se [62.65.68.67]) by mx-2.sollentuna.net (Postfix) with ESMTP id 41A748F284; Mon, 15 Aug 2005 21:06:35 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: Re: Server Won't Start On a Copy of Its Own Data Folder X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Date: Mon, 15 Aug 2005 21:06:34 +0200 Message-ID: <6BCB9D8A16AC4241919521715F4D8BCE094693@algol.sollentuna.se> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ADMIN] Server Won't Start On a Copy of Its Own Data Folder Thread-Index: AcWfiQyTMq0fb+WTS6i5fQnpO7skxACQvdZA From: "Magnus Hagander" To: "Dirk Kalp" , X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.061 required=5 tests=[AWL=0.011, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200508/181 X-Sequence-Number: 18500 > Server Won't Start On a Copy of Its Own Data Folder > =20 > 1. Installed the latest 8.0.3 binary on a Windows XP Pro=20 > system as a service to be started on bootup.=20 > 2. Used psql just to verify that I can connect. > 3. Used Windows Control Panel.Administrative Tools.Services=20 > to stop the server cleanly. > 4. Made a copy of the PostgreSQL/8.0/data folder > 5. Renamed the installed folder as PostgreSQL/8.0/saved-data > 6. Renamed the copy of data as PostrgeSQL/8.0/data > 7. Used Windows Control Panel.Administrative Tools.Services=20 > to start the server > 8. The server fails to come up=20 > =20 > Windows comes back and tells me that the service started and=20 > stopped. The Windows=20 > EventLog show that the postgres server was sent a start=20 > control, entered the running state and=20 > then entered the stopped state. There was nothing new in the=20 > pg_log folder to provide > any clue. This is very weird - it should normally log *something*. There is nothing from postgresql in the eventlog? > Based on what I've gleaned on reading some of the past mail=20 > archives, I thought that this should > work. Have I misunderstood something? It should,m as long as they are on the same version. And it should absolutely log an error. Can you try starting the database manually using pg_ctl (not as a service) and see if you get more errors then? Remember to start it from a runas:ed shell, so you run it as the same user. //Magnus From dario_d_s@unitech.com.ar Thu Aug 18 15:46:17 2005 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6CC2C5293D for ; Thu, 18 Aug 2005 12:46:17 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 99129-10 for ; Thu, 18 Aug 2005 15:46:12 +0000 (GMT) Received: from netbox.unitech.com.ar (unknown [200.32.92.34]) by svr1.postgresql.org (Postfix) with ESMTP id D5F3552917 for ; Thu, 18 Aug 2005 12:46:07 -0300 (ADT) Received: from [192.168.1.237] (dariop.unitech.com.ar [192.168.1.237]) by netbox.unitech.com.ar (8.11.6/8.11.6) with ESMTP id j7IGhEE29101; Thu, 18 Aug 2005 12:43:19 -0400 Received: from 127.0.0.1 (AVG SMTP 7.0.338 [267.10.12]); Thu, 18 Aug 2005 12:45:58 -0300 From: "Dario" To: "Magnus Hagander" , "Dirk Kalp" , Subject: Re: Server Won't Start On a Copy of Its Own Data Folder Date: Thu, 18 Aug 2005 12:45:58 -0300 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <6BCB9D8A16AC4241919521715F4D8BCE094693@algol.sollentuna.se> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.066 required=5 tests=[AWL=0.066] X-Spam-Level: X-Archive-Number: 200508/237 X-Sequence-Number: 18556 Did you check file ownership and permissions? Greetings. -----Mensaje original----- De: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org]En nombre de Magnus Hagander Enviado el: lunes, 15 de agosto de 2005 16:07 Para: Dirk Kalp; pgsql-admin@postgresql.org Asunto: Re: [ADMIN] Server Won't Start On a Copy of Its Own Data Folder > Server Won't Start On a Copy of Its Own Data Folder > > 1. Installed the latest 8.0.3 binary on a Windows XP Pro > system as a service to be started on bootup. > 2. Used psql just to verify that I can connect. > 3. Used Windows Control Panel.Administrative Tools.Services > to stop the server cleanly. > 4. Made a copy of the PostgreSQL/8.0/data folder > 5. Renamed the installed folder as PostgreSQL/8.0/saved-data > 6. Renamed the copy of data as PostrgeSQL/8.0/data > 7. Used Windows Control Panel.Administrative Tools.Services > to start the server > 8. The server fails to come up > > Windows comes back and tells me that the service started and > stopped. The Windows > EventLog show that the postgres server was sent a start > control, entered the running state and > then entered the stopped state. There was nothing new in the > pg_log folder to provide > any clue. This is very weird - it should normally log *something*. There is nothing from postgresql in the eventlog? > Based on what I've gleaned on reading some of the past mail > archives, I thought that this should > work. Have I misunderstood something? It should,m as long as they are on the same version. And it should absolutely log an error. Can you try starting the database manually using pg_ctl (not as a service) and see if you get more errors then? Remember to start it from a runas:ed shell, so you run it as the same user. //Magnus ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings