Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T3qr4-0004p2-GU for pgsql-bugs@postgresql.org; Tue, 21 Aug 2012 15:58:58 +0000 Received: from smtpauth05.prod.mesa1.secureserver.net ([64.202.165.99]) by makus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1T3qr2-0001as-Uc for pgsql-bugs@postgresql.org; Tue, 21 Aug 2012 15:58:57 +0000 Received: (qmail 26770 invoked from network); 21 Aug 2012 15:58:55 -0000 Received: from unknown (208.78.149.13) by smtpauth05.prod.mesa1.secureserver.net (64.202.165.99) with ESMTP; 21 Aug 2012 15:58:55 -0000 From: "Freddie Burgess" To: Subject: Database crash in Postgres 8.4.3 Date: Tue, 21 Aug 2012 11:58:57 -0400 Message-ID: <001e01cd7fb5$df80c9e0$9e825da0$@radiantblue.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001F_01CD7F94.58708970" X-Mailer: Microsoft Outlook 14.0 Thread-Index: Ac1/tcnF8b4kQSQmTh24ePiHe59pUA== Content-Language: en-us X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201208/147 X-Sequence-Number: 33871 This is a multipart message in MIME format. ------=_NextPart_000_001F_01CD7F94.58708970 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Late yesterday afternoon our DB server went down hard. we tried to re-start and it went into recovery mode to recover transaction history and failed. Notable error was: FATAL: failed to re-find parent key in index "257969064" for split pages 8366/12375 If you look this error up, it indicates issues with the transaction logs and the inability to recover due to corrupt or missing transaction logs. The solution is to: 1. Back up the DB files 2. Run pg_resetxlogs (this might produce corruption due inconsistent data) 3. Dump the DB 4. Reload the DB Unfortunately this solution is not practical in our case for multiple reasons. - We do not have the space for steps 1 & 3 - The time required for steps 1, 3, and 4 is approximately 1 week per step (3 weeks total) since our database size is approximately 5.4TB If the data is in an inconsistent state, are there other alternative solutions, such as finding the index specified in the FATAL error and somehow dropping it? and does anyone know what circumstances/conditions might corrupt or cause a transaction log to go missing. thanks ------=_NextPart_000_001F_01CD7F94.58708970 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Late = yesterday afternoon our DB server went down hard.  we tried to = re-start and it went into recovery mode to recover transaction history = and failed.  Notable error was:

 

   FATAL: failed to re-find parent key = in index "257969064" for split pages = 8366/12375

 

If you look this error up, it indicates issues with = the transaction logs and the inability to recover due to =

corrupt or missing transaction = logs. 

 

The solution is to:

 

1. Back up = the DB files

2. Run = pg_resetxlogs   (this might produce corruption due = inconsistent data)

3. Dump the = DB

4. Reload the DB

 

Unfortunately this solution is not practical in our = case for multiple reasons.

- We do = not have the space for steps 1 & 3

- The time required for steps 1, 3, and 4 is = approximately 1 week per step (3 weeks total) since our database size is = approximately 5.4TB

 

If the data = is in an inconsistent state, are there other alternative solutions, such = as finding the index specified in the FATAL error and somehow dropping = it? 

 

and does anyone know what circumstances/conditions = might corrupt or cause a transaction log to go missing.

 

thanks

 

------=_NextPart_000_001F_01CD7F94.58708970--