X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 44EDDD1BA45 for ; Tue, 9 Mar 2004 15:51:12 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 65259-10 for ; Tue, 9 Mar 2004 11:51:07 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id D2C09D1B9AF for ; Tue, 9 Mar 2004 11:51:02 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i29Fp6WY025550; Tue, 9 Mar 2004 10:51:06 -0500 (EST) To: Jeff Boes Cc: pgsql-admin@postgresql.org Subject: Re: Transaction logs gone, how to restart? In-reply-to: References: Comments: In-reply-to Jeff Boes message dated "Tue, 09 Mar 2004 13:46:19 +0000" Date: Tue, 09 Mar 2004 10:51:06 -0500 Message-ID: <25549.1078847466@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/145 X-Sequence-Number: 12714 Jeff Boes writes: > We backed up our test server yesterday (Pg 7.4.1) as the first step in switching > from Red Hat 7 to Whitebox. However, we failed to back up the transaction and > commit logs. Now that the OS and database are back to where they were, we get > this message on attempting to restart: > LOG: could not open file "/usr/local/pgsql/data/pg_xlog/00000041000000EE" (log > file 65, segment 238): No such file or directory Urgh. If you shut down the postmaster cleanly before backing up, then you don't really need pg_xlog --- running pg_resetxlog will get you out of the above problem. However, if you did not save pg_clog then I fear you are well and truly screwed. How long ago was your last complete (database-wide) VACUUM? If it was just before shutdown then you may be able to achieve some semblance of a consistent database, but if it was awhile ago then you do not have a database but just a pile of bits :-( regards, tom lane