From philg@gearcc.com Tue Mar 25 14:35:56 2003 X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 23D4F475A71 for ; Tue, 25 Mar 2003 09:35:56 -0500 (EST) Received: from offbacklinux.gearcc.com (offback-ip04.wmis.net [216.109.193.77]) by postgresql.org (Postfix) with ESMTP id C7E95474E44 for ; Tue, 25 Mar 2003 09:35:54 -0500 (EST) Received: from administrator (offbacklinux.gearcc.com [216.109.193.77]) by offbacklinux.gearcc.com (Postfix on SuSE Linux 8.0 (i386)) with SMTP id 69C5F23773 for ; Tue, 25 Mar 2003 09:48:44 -0500 (EST) Message-ID: <007701c2f2db$a2297220$9e51210a@administrator> From: "Philip Geer" To: Subject: Lost pg_xlog pgclog Date: Tue, 25 Mar 2003 09:34:23 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0074_01C2F2B1.B894AE00" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Spam-Status: No, hits=0.0 required=5.0 tests=BAYES_30,HTML_20_30 version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200303/415 X-Sequence-Number: 8055 This is a multi-part message in MIME format. ------=_NextPart_000_0074_01C2F2B1.B894AE00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I had move my pgxlog and pgclog files to a drive of their own and that driv= e crashed with no chance of data recovery. This is not a production server = so its not that big of a deal but I would like to recover the databases tha= t the server had on it but ever time I start postmaster I get the following= error.=20 DEBUG: database system was interrupted at 2003-02-14 00:15:56 EST DEBUG: open of /pgdata/pg_xlog/0000000000000017 (log file 0, segment 23) f= ailed: No such file or directory DEBUG: invalid primary checkpoint record DEBUG: open of /pgdata/pg_xlog/0000000000000017 (log file 0, segment 23) f= ailed: No such file or directory DEBUG: invalid secondary checkpoint record FATAL 2: unable to locate a valid checkpoint record DEBUG: startup process (pid 29291) exited with exit code 2 DEBUG: aborting startup due to startup process failure Can I recover from this error or no? Thanks Philip Geer Internet Specialist Janus Hotels and Resorts Phone: (616) 363-9001 ext 7804 Cell: (616) 835-2723 Fax (616) 363-0670 ------=_NextPart_000_0074_01C2F2B1.B894AE00 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I had move my pgxlog and pgclog files to a= drive of=20 their own and that drive crashed with no chance of data recovery. This is n= ot a=20 production server so its not that big of a deal but I would like to recover= the=20 databases that the server had on it but ever time I start postmaster I get = the=20 following error.
 
DEBUG:  database system was interrupt= ed at=20 2003-02-14 00:15:56 EST
DEBUG:  open of /pgdata/pg_xlog/00000000000= 00017=20 (log file 0, segment 23) failed: No such file or directory
DEBUG: = =20 invalid primary checkpoint record
DEBUG:  open of=20 /pgdata/pg_xlog/0000000000000017 (log file 0, segment 23) failed: No such f= ile=20 or directory
DEBUG:  invalid secondary checkpoint record
FATAL= =20 2:  unable to locate a valid checkpoint record
DEBUG:  startup= =20 process (pid 29291) exited with exit code 2
DEBUG:  aborting startu= p due=20 to startup process failure
 
Can I recover from this error or no?
 
Thanks
 
Philip Geer
Internet Specialist
Janu= s Hotels=20 and Resorts
Phone:  (616) 363-9001 ext 7804
Cell: (616)=20 835-2723
Fax (616)  363-0670
------=_NextPart_000_0074_01C2F2B1.B894AE00-- From tgl@sss.pgh.pa.us Wed Mar 26 14:40:45 2003 X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 85D74475F00 for ; Wed, 26 Mar 2003 09:40:45 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id AD4A9475CBC for ; Wed, 26 Mar 2003 09:40:44 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.8/8.12.8) with ESMTP id h2QEehub004838; Wed, 26 Mar 2003 09:40:43 -0500 (EST) To: "Philip Geer" Cc: pgsql-admin@postgresql.org Subject: Re: Lost pg_xlog pgclog In-reply-to: <007701c2f2db$a2297220$9e51210a@administrator> References: <007701c2f2db$a2297220$9e51210a@administrator> Comments: In-reply-to "Philip Geer" message dated "Tue, 25 Mar 2003 09:34:23 -0500" Date: Wed, 26 Mar 2003 09:40:43 -0500 Message-ID: <4837.1048689643@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-29.3 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES, REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200303/441 X-Sequence-Number: 8081 "Philip Geer" writes: > I had move my pgxlog and pgclog files to a drive of their own and that driv= > e crashed with no chance of data recovery. This is not a production server = > so its not that big of a deal but I would like to recover the databases tha= > t the server had on it but ever time I start postmaster I get the following= > error.=20 You could try running pg_resetxlog (see contrib if pre-7.3; in 7.3 it's standard). That should let you start the database, but keep in mind that any transactions completed shortly before the crash might be missing or partially applied. Don't trust the data too much until you've checked it. And definitely do a dump and reload... regards, tom lane