Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id BBA1C476517 for ; Tue, 29 Oct 2002 13:47:41 -0500 (EST) Received: from sj-msg-core-4.cisco.com (sj-msg-core-4.cisco.com [171.71.163.54]) by postgresql.org (Postfix) with ESMTP id 3A81447650E for ; Tue, 29 Oct 2002 13:47:41 -0500 (EST) Received: from blackbox.cisco.com (blackbox.cisco.com [10.89.0.82]) by sj-msg-core-4.cisco.com (8.12.2/8.12.2) with ESMTP id g9TIleot024666 for ; Tue, 29 Oct 2002 10:47:40 -0800 (PST) Received: (from akorobov@localhost) by blackbox.cisco.com (8.11.6/8.11.6) id g9TIleG20331 for pgsql-admin@postgresql.org; Tue, 29 Oct 2002 13:47:40 -0500 Date: Tue, 29 Oct 2002 13:47:40 -0500 From: Alexander Korobov To: pgsql-admin@postgresql.org Subject: postgres xlog crashes - recovery procedure Message-ID: <20021029184740.GW1644@blackbox.cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/299 X-Sequence-Number: 6157 Hello, I'm trying to recover database(after a crash). postgres is failing to start complaining on missing transaction log file : -------------------------------------------------------------------------------- 2002-10-22 14:53:17 [2247] DEBUG: database system was interrupted at 2002-10-17 23:24:45 PST 2002-10-22 14:53:17 [2247] DEBUG: ReadRecord: out-of-sequence SUI 220 (after 221) in log file 4, segment 111, offset 450560 2002-10-22 14:53:17 [2247] DEBUG: invalid primary checkpoint record 2002-10-22 14:53:17 [2247] DEBUG: open of /pg_xlog/000000040000006E (log file 4, segment 110) faile d: No such file or directory 2002-10-22 14:53:17 [2247] DEBUG: invalid secondary checkpoint record 2002-10-22 14:53:17 [2247] FATAL 2: unable to locate a valid checkpoint record 2002-10-22 14:53:17 [2247] DEBUG: proc_exit(2) 2002-10-22 14:53:17 [2247] DEBUG: shmem_exit(2) 2002-10-22 14:53:17 [2247] DEBUG: exit(2) 2002-10-22 14:53:17 [2244] DEBUG: reaping dead processes 2002-10-22 14:53:17 [2244] DEBUG: startup process (pid 2247) exited with exit code 2 2002-10-22 14:53:17 [2244] DEBUG: aborting startup due to startup process failure 2002-10-22 14:53:17 [2244] DEBUG: proc_exit(1) 2002-10-22 14:53:17 [2244] DEBUG: shmem_exit(1) 2002-10-22 14:53:17 [2244] DEBUG: exit(1) -------------------------------------------------------------------------------- I'm aware of contrib/pg_resetxlog but this does not seem to be reliable tool. Are there any postgres specific recovery procedures and /or documentation on how to prevent such situations? Thanks, ak.