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 534E2529A1 for ; Wed, 6 Jul 2005 16:09: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 56832-02 for ; Wed, 6 Jul 2005 19:09:14 +0000 (GMT) Received: from hosting.commandprompt.com (128.commandprompt.com [207.173.200.128]) by svr1.postgresql.org (Postfix) with ESMTP id 3EDA25299E for ; Wed, 6 Jul 2005 16:09:14 -0300 (ADT) Received: from [192.168.1.52] (fc1smp [66.93.38.87]) (authenticated bits=0) by hosting.commandprompt.com (8.12.8/8.12.8) with ESMTP id j66J9EoQ013743; Wed, 6 Jul 2005 12:09:14 -0700 Message-ID: <42CC2C5A.2050101@commandprompt.com> Date: Wed, 06 Jul 2005 12:09:14 -0700 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Mozilla Thunderbird 1.0.2-1.3.3 (X11/20050513) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Richard Doust Cc: pgsql-admin@postgresql.org Subject: Re: Desparate: Lost WAL files References: <2C386A13-7865-49FD-BB6C-953A24A4201D@mac.com> <42CC2848.3050107@commandprompt.com> <42CC2AE9.5090404@commandprompt.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.015 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/35 X-Sequence-Number: 18091 Richard Doust wrote: > Well, actually, (he said sheepishly) I deleted the WAL files myself. A > bit of stupidity. Doh! In the future it would probably be wise to *not* do that ;) Sincerely, Joshua D. Drake > > On Jul 6, 2005, at 12:03 PM, Joshua D. Drake wrote: > >> Richard Doust wrote: >> >>> Thanks guys. >>> I didn't know about this command. >>> It worked like a charm. >>> Like I said, I had done a clean shutdown. >>> >> >> If you did a clean shutdown and you lost those files you quite likely >> have a very serious problem. You should investigate your hardware. >> Files don't just "disappear". >> >> Sincerely, >> >> Joshua D. Drake >> >> >> >>> Thanks again. >>> On Jul 6, 2005, at 11:51 AM, Joshua D. Drake wrote: >>> >>>> Richard Doust wrote: >>>> >>>> >>>>> Hi. >>>>> Can anyone please tell me what I can do? I've lost the contents >>>>> of my pg_xlog directory and postmaster is failing to start >>>>> because it can't find a valid checkpoint record. It had done a >>>>> clean shutdown, so I know that the dbms should be okay if I >>>>> could just restart it. >>>>> I'm in a desparate situation. It's a production database. >>>>> >>>>> >>>> >>>> Well the exact error would be good just in case but you may be >>>> able to use pg_resetxlog to get the machine back up. However you >>>> will have no >>>> idea what state the database itself is in. >>>> >>>> You need to restore from backup. >>>> >>>> Sincerely, >>>> >>>> Joshua D. Drake >>>> >>>> >>>> >>>> >>>> >>>>> Thanks in advance. >>>>> ---------------------------(end of >>>>> broadcast)--------------------------- >>>>> TIP 1: subscribe and unsubscribe commands go to >>>>> majordomo@postgresql.org >>>>> >>>>> >>>> >>>> >>>> -- >>>> Your PostgreSQL solutions company - Command Prompt, Inc. >>>> 1.800.492.2240 >>>> PostgreSQL Replication, Consulting, Custom Programming, 24x7 support >>>> Managed Services, Shared and Dedicated Hosting >>>> Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/ >>>> >>>> >> >> >> -- >> Your PostgreSQL solutions company - Command Prompt, Inc. 1.800.492.2240 >> PostgreSQL Replication, Consulting, Custom Programming, 24x7 support >> Managed Services, Shared and Dedicated Hosting >> Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/ >> -- Your PostgreSQL solutions company - Command Prompt, Inc. 1.800.492.2240 PostgreSQL Replication, Consulting, Custom Programming, 24x7 support Managed Services, Shared and Dedicated Hosting Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/