From aaron.bono@aranya.com Mon Feb 25 14:07:48 2008 Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 29BBA2E0047 for ; Mon, 25 Feb 2008 10:07:48 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 73217-09 for ; Mon, 25 Feb 2008 10:07:37 -0400 (AST) X-Greylist: delayed 00:06:09.495504 by SQLgrey-1.7.5 Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.186]) by postgresql.org (Postfix) with ESMTP id 402112E0046 for ; Mon, 25 Feb 2008 10:07:36 -0400 (AST) Received: by ti-out-0910.google.com with SMTP id y6so950322tia.5 for ; Mon, 25 Feb 2008 06:07:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; bh=aX376XyzlE7VsE5E0K9S/TtEvioH8sAWki2NKJ/R0VI=; b=dQAy1etcZROJ0E+IImHUz9vHdT/URTm2O2kUBjJffoLjxCID5WPcdvmUYSTOKOOkFF038LeKhn1NIS8jVaDWfMSn2Q3CH+0f6ZQuDm/EPSHZm/UbxClbrmoCIpz5TSzjHD1KLOaeSKrpKQ+qGx9Yt3ZqQsxcYujVXndJPOsGJrc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=YvyJ/k//mEGvbplTG1giESMbumTHe2rKBZvUxyyd5yGVKIssQM/9MhPi/uARj1B1IEzuEsxqpG79JDwQZx9KXH/gTYKXWiE6SDY1ZENjR4EUdiwtaxDi5nAOLuuxoUfB/ydY2YKWSAnQ3vMUXXIlnl3X6Xp3S9TEGFZX3YE0EXc= Received: by 10.110.47.7 with SMTP id u7mr2012033tiu.58.1203948084619; Mon, 25 Feb 2008 06:01:24 -0800 (PST) Received: by 10.70.89.12 with HTTP; Mon, 25 Feb 2008 06:01:24 -0800 (PST) Message-ID: Date: Mon, 25 Feb 2008 08:01:24 -0600 From: "Aaron Bono" To: pgsql-admin@postgresql.org Subject: System in Recovery Mode MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2180_6437648.1203948084513" X-Google-Sender-Auth: 56e447067a866189 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/323 X-Sequence-Number: 28397 ------=_Part_2180_6437648.1203948084513 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Our database was going along just fine this morning when, out of the blue, we started getting the following errors: FATAL: the database system is in recovery mode We are using PostgreSQL 8.1.3 on CentOS. I was the only person on the machine and had recently started a small batch that had just finished querying and updating the database. This batch runs constantly and has not been changed in months. What are the things that could be causing this? Thanks! Aaron -- ================================================================== Aaron Bono Aranya Software Technologies, Inc. http://www.aranya.com http://codeelixir.com ================================================================== ------=_Part_2180_6437648.1203948084513 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Our database was going along just fine this morning when, out of the blue, we started getting the following errors:

FATAL:  the database system is in recovery mode

We are using PostgreSQL 8.1.3 on CentOS.  I was the only person on the machine and had recently started a small batch that had just finished querying and updating the database.  This batch runs constantly and has not been changed in months.

What are the things that could be causing this?

Thanks!
Aaron

--
==================================================================
  Aaron Bono
  Aranya Software Technologies, Inc.
  http://www.aranya.com
  http://codeelixir.com
================================================================== ------=_Part_2180_6437648.1203948084513-- From postgresql@aranya.com Mon Feb 25 14:11:36 2008 Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 471BD2E0054 for ; Mon, 25 Feb 2008 10:11:36 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 74930-04-4 for ; Mon, 25 Feb 2008 10:11:29 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.185]) by postgresql.org (Postfix) with ESMTP id A40FB2E0052 for ; Mon, 25 Feb 2008 10:11:29 -0400 (AST) Received: by gv-out-0910.google.com with SMTP id y18so484986gvf.7 for ; Mon, 25 Feb 2008 06:11:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; bh=5WflCsV9NQkwD96krVDbp08GZvzrMYMnwaeOwKz5hlQ=; b=gc6LAiDbEdQhM820eWeZ37kGjJCkWogirColi3iFrtTVG6F09H+Zx7duZRydW4akrmMsgHz/fEnMUpFlxh2V7HPxjulyI+YYKibLOX0xopdSarXcnjAPmjcK9ru7kkqv9AnffQMFN7yKZLMMSO9LUjRLo4YRGoBIhS7tKTPFUSw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=j7RaQ8Q745xfJefBA/rlt4RABn5eAqL78Wv5dS7w3G9pOjjncPHeCzxgxGg3SUL4230+2tg7no8qhM2l4N16LlZuKZKsJZpIspGCNIs8cc/yCZunbS6IrTun6/8suGrDwRJoI8yk+TWwDwxS+tIChkoVFhCElYPwiaV4Ka+J3go= Received: by 10.142.48.14 with SMTP id v14mr2273023wfv.121.1203948685608; Mon, 25 Feb 2008 06:11:25 -0800 (PST) Received: by 10.70.89.12 with HTTP; Mon, 25 Feb 2008 06:11:25 -0800 (PST) Message-ID: Date: Mon, 25 Feb 2008 08:11:25 -0600 From: "Aaron Bono" To: Postgres Subject: System in Recovery Mode MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2290_17596614.1203948685557" X-Google-Sender-Auth: 2d5e53726d8b71e6 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200802/314 X-Sequence-Number: 28388 ------=_Part_2290_17596614.1203948685557 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Our database was going along just fine this morning when, out of the blue, we started getting the following errors: FATAL: the database system is in recovery mode We are using PostgreSQL 8.1.3 on CentOS. I was the only person on the machine and had recently started a small batch that had just finished querying and updating the database. This batch runs constantly and has not been changed in months. What are the things that could be causing this? Thanks! Aaron -- ================================================================== Aaron Bono Aranya Software Technologies, Inc. http://www.aranya.com http://codeelixir.com ================================================================== ------=_Part_2290_17596614.1203948685557 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Our database was going along just fine this morning when, out of the blue, we started getting the following errors:

FATAL:  the database system is in recovery mode

We are using PostgreSQL 8.1.3 on CentOS.  I was the only person on the machine and had recently started a small batch that had just finished querying and updating the database.  This batch runs constantly and has not been changed in months.

What are the things that could be causing this?

Thanks!
Aaron

--
==================================================================
  Aaron Bono
  Aranya Software Technologies, Inc.
  http://www.aranya.com
  http://codeelixir.com
================================================================== ------=_Part_2290_17596614.1203948685557-- From simon@2ndquadrant.com Mon Feb 25 15:58:36 2008 Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id BBDB72E00C4 for ; Mon, 25 Feb 2008 11:58:36 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 32861-03-3 for ; Mon, 25 Feb 2008 11:58:09 -0400 (AST) X-Greylist: delayed 00:15:08.33263 by SQLgrey-1.7.5 Received: from outmail128160.authsmtp.net (outmail128160.authsmtp.net [62.13.128.160]) by postgresql.org (Postfix) with ESMTP id 57CFD2E004E for ; Mon, 25 Feb 2008 11:57:16 -0400 (AST) Received: from outmail128179.authsmtp.co.uk (outmail128179.authsmtp.co.uk [62.13.128.179]) by punt2.authsmtp.com (8.13.8/8.13.8/Kp) with ESMTP id m1PFfvPX038238; Mon, 25 Feb 2008 15:41:57 GMT Received: from [192.168.0.3] (85-211-31-42.dyn.gotadsl.co.uk [85.211.31.42]) (authenticated bits=0) by mail.authsmtp.com (8.13.8/8.13.8/Kp) with ESMTP id m1PFfuWK014757; Mon, 25 Feb 2008 15:41:57 GMT Subject: Re: System in Recovery Mode From: Simon Riggs To: Aaron Bono Cc: Postgres In-Reply-To: References: Content-Type: text/plain Date: Mon, 25 Feb 2008 15:42:53 +0000 Message-Id: <1203954173.4252.59.camel@ebony.site> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2 Content-Transfer-Encoding: 7bit X-Server-Quench: 326cb776-e3b8-11dc-9670-001185d377ca X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksadBtFagBba1xT HGQLW1xEUVh7XWJ/ bg0fZQBDYEtPQQZr TkxLXVBXCwUmXB1h cEhbNWJydgFBfXk+ ZERgXj5YXkIpJ0F6 RFMBFj8OeGZhPDMC WUZfdx5UcAJLdhoR aVd4ByJDAzANdhER MyoSGQV5BiRENClQ CgALZWgfSkEVEyQt DzUFEThH X-Authentic-SMTP: 61633235383639.squirrel.dmpriest.net.uk:787/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/317 X-Sequence-Number: 28391 On Mon, 2008-02-25 at 08:11 -0600, Aaron Bono wrote: > Our database was going along just fine this morning when, out of the > blue, we started getting the following errors: > > FATAL: the database system is in recovery mode > > We are using PostgreSQL 8.1.3 on CentOS. I was the only person on the > machine and had recently started a small batch that had just finished > querying and updating the database. This batch runs constantly and > has not been changed in months. Your database has crashed and is recovering. You should look at the server log to find out when and why this happened, then either correct the problem or report the bug. -- Simon Riggs 2ndQuadrant http://www.2ndQuadrant.com From postgresql@aranya.com Mon Feb 25 15:53:36 2008 Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 0CEDA2E004D for ; Mon, 25 Feb 2008 11:53:36 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 89228-01 for ; Mon, 25 Feb 2008 11:53:18 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.228]) by postgresql.org (Postfix) with ESMTP id 195C72E0046 for ; Mon, 25 Feb 2008 11:53:27 -0400 (AST) Received: by wr-out-0506.google.com with SMTP id 71so2646046wri.5 for ; Mon, 25 Feb 2008 07:53:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; bh=tOdB6vNWFzm0paxQO9D4sPi/zROifsCeXd9lWy1DTZE=; b=fqGAkzYbERCRiEIi6eXNmjf4esvcVbWl9VYc3+MaRQOhzAS46mAivu7P3qAI9uPIXZEvlKpyyuqZLW14BHmgNogvDOgKFFnkpFTccnWzynEcOeFyzCGG0+qBxzv6vNU7195qxUB1Y0ug3EbZm7ldXAr/oDbnUkGj+cmwq/LWtd8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=omiJcg1Ydq3RL38GCGOFltY9QOwWtlrD1tnDFfzuZxkVGvRBSnp7hDciro32viSj25it58tRummcM15DVBnZECo1zxZEoI/cRZ9OKI/Rj1c+Xc5p3kZsUR/ov+3GDA+9h0PZ3Mq30TtkMF1hpDGKq7TSfApckLY2dSbD43kZyzw= Received: by 10.140.251.1 with SMTP id y1mr2220653rvh.149.1203954803174; Mon, 25 Feb 2008 07:53:23 -0800 (PST) Received: by 10.140.142.20 with HTTP; Mon, 25 Feb 2008 07:53:23 -0800 (PST) Message-ID: Date: Mon, 25 Feb 2008 09:53:23 -0600 From: "Aaron Bono" To: "Simon Riggs" Subject: Re: System in Recovery Mode Cc: Postgres In-Reply-To: <1203954173.4252.59.camel@ebony.site> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_16708_4450222.1203954803166" References: <1203954173.4252.59.camel@ebony.site> X-Google-Sender-Auth: e261b6493dbbcbff X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.903 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001, NORMAL_HTTP_TO_IP=0.001, URIBL_RHS_DOB=0.901 X-Spam-Level: X-Archive-Number: 200802/316 X-Sequence-Number: 28390 ------=_Part_16708_4450222.1203954803166 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Mon, Feb 25, 2008 at 9:42 AM, Simon Riggs wrote: > On Mon, 2008-02-25 at 08:11 -0600, Aaron Bono wrote: > > Our database was going along just fine this morning when, out of the > > blue, we started getting the following errors: > > > > FATAL: the database system is in recovery mode > > > > We are using PostgreSQL 8.1.3 on CentOS. I was the only person on the > > machine and had recently started a small batch that had just finished > > querying and updating the database. This batch runs constantly and > > has not been changed in months. > > Your database has crashed and is recovering. You should look at the > server log to find out when and why this happened, then either correct > the problem or report the bug. > > Here is what I am seeing: <2008-02-25 07:15:24 CST username 127.0.0.1>ERROR: unrecognized node type: 4260493 <2008-02-25 07:15:25 CST [unknown] >LOG: connection received: host= 127.0.0.1 port=51295 <2008-02-25 07:15:25 CST username 127.0.0.1>LOG: connection authorized: user=username database=my_db <2008-02-25 07:15:25 CST username 127.0.0.1>LOG: disconnection: session time: 0:00:00.04 user=username database=my_db host=127.0.0.1 port=51295 <2008-02-25 07:15:25 CST [unknown] >LOG: connection received: host= 127.0.0.1 port=51296 <2008-02-25 07:15:25 CST username 127.0.0.1>LOG: connection authorized: user=username database=clockwork_db_prod <2008-02-25 07:15:38 CST username 127.0.0.1>ERROR: unrecognized node type: 4260493 <2008-02-25 07:15:49 CST >LOG: server process (PID 10876) was terminated by signal 11 <2008-02-25 07:15:49 CST >LOG: terminating any other active server processes <2008-02-25 07:15:49 CST username 127.0.0.1>WARNING: terminating connection because of crash of another server process <2008-02-25 07:15:49 CST username 127.0.0.1>DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory. <2008-02-25 07:15:49 CST username 127.0.0.1>HINT: In a moment you should be able to reconnect to the database and repeat your command. <2008-02-25 07:15:49 CST username 127.0.0.1>WARNING: terminating connection because of crash of another server process and it continues like this as it terminated all connections followed by: <2008-02-25 07:15:49 CST username 127.0.0.1>CONTEXT: PL/pgSQL function "get_branch_for_zip" line 61 at fetch <2008-02-25 07:15:50 CST >LOG: all server processes terminated; reinitializing <2008-02-25 07:15:50 CST >LOG: database system was interrupted at 2008-02-25 07:11:10 CST <2008-02-25 07:15:50 CST >LOG: checkpoint record is at 14/9F015F54 <2008-02-25 07:15:50 CST >LOG: redo record is at 14/9F015F54; undo record is at 0/0; shutdown FALSE <2008-02-25 07:15:50 CST >LOG: next transaction ID: 911288200; next OID: 90133045 <2008-02-25 07:15:50 CST >LOG: next MultiXactId: 27095; next MultiXactOffset: 66130 <2008-02-25 07:15:50 CST >LOG: database system was not properly shut down; automatic recovery in progress <2008-02-25 07:15:50 CST >LOG: redo starts at 14/9F015F98 <2008-02-25 07:15:50 CST >LOG: record with zero length at 14/9F08C23C <2008-02-25 07:15:50 CST >LOG: redo done at 14/9F08C214 <2008-02-25 07:15:50 CST >LOG: could not truncate directory "pg_multixact/members": apparent wraparound <2008-02-25 07:15:50 CST >LOG: database system is ready <2008-02-25 07:15:50 CST >LOG: transaction ID wrap limit is 1576224515, limited by database "another_db" <2008-02-25 07:15:56 CST [unknown] >LOG: connection received: host= 127.0.0.1 port=51987 <2008-02-25 07:15:56 CST username 127.0.0.1>LOG: connection authorized: user=onehour database=my_db <2008-02-25 07:15:56 CST >LOG: server process (PID 14433) was terminated by signal 11 <2008-02-25 07:15:56 CST >LOG: terminating any other active server processes <2008-02-25 07:15:56 CST >LOG: all server processes terminated; reinitializing <2008-02-25 07:15:56 CST >LOG: database system was interrupted at 2008-02-25 07:15:50 CST <2008-02-25 07:15:56 CST >LOG: checkpoint record is at 14/9F08C23C <2008-02-25 07:15:56 CST >LOG: redo record is at 14/9F08C23C; undo record is at 0/0; shutdown TRUE <2008-02-25 07:15:56 CST >LOG: next transaction ID: 911293548; next OID: 90133045 <2008-02-25 07:15:56 CST >LOG: next MultiXactId: 27095; next MultiXactOffset: 66130 <2008-02-25 07:15:56 CST >LOG: database system was not properly shut down; automatic recovery in progress <2008-02-25 07:15:56 CST >LOG: record with zero length at 14/9F08C280 <2008-02-25 07:15:56 CST >LOG: redo is not required <2008-02-25 07:15:56 CST >LOG: could not truncate directory "pg_multixact/members": apparent wraparound <2008-02-25 07:15:56 CST >LOG: database system is ready <2008-02-25 07:15:56 CST >LOG: transaction ID wrap limit is 1576224515, limited by database "another_db" and it then continues with this. -- ================================================================== Aaron Bono Aranya Software Technologies, Inc. http://www.aranya.com http://codeelixir.com ================================================================== ------=_Part_16708_4450222.1203954803166 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Mon, Feb 25, 2008 at 9:42 AM, Simon Riggs <simon@2ndquadrant.com> wrote:
On Mon, 2008-02-25 at 08:11 -0600, Aaron Bono wrote:
> Our database was going along just fine this morning when, out of the
> blue, we started getting the following errors:
>
> FATAL:  the database system is in recovery mode
>
> We are using PostgreSQL 8.1.3 on CentOS.  I was the only person on the
> machine and had recently started a small batch that had just finished
> querying and updating the database.  This batch runs constantly and
> has not been changed in months.

Your database has crashed and is recovering. You should look at the
server log to find out when and why this happened, then either correct
the problem or report the bug.


Here is what I am seeing:

<2008-02-25 07:15:24 CST username 127.0.0.1>ERROR:  unrecognized node type: 4260493
<2008-02-25 07:15:25 CST [unknown] >LOG:  connection received: host=127.0.0.1 port=51295
<2008-02-25 07:15:25 CST username 127.0.0.1>LOG:  connection authorized: user=username database=my_db
<2008-02-25 07:15:25 CST username 127.0.0.1>LOG:  disconnection: session time: 0:00:00.04 user=username database=my_db host=127.0.0.1 port=51295
<2008-02-25 07:15:25 CST [unknown] >LOG:  connection received: host=127.0.0.1 port=51296
<2008-02-25 07:15:25 CST username 127.0.0.1>LOG:  connection authorized: user=username database=clockwork_db_prod
<2008-02-25 07:15:38 CST username 127.0.0.1>ERROR:  unrecognized node type: 4260493
<2008-02-25 07:15:49 CST  >LOG:  server process (PID 10876) was terminated by signal 11
<2008-02-25 07:15:49 CST  >LOG:  terminating any other active server processes
<2008-02-25 07:15:49 CST username 127.0.0.1>WARNING:  terminating connection because of crash of another server process
<2008-02-25 07:15:49 CST username 127.0.0.1>DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
<2008-02-25 07:15:49 CST username 127.0.0.1>HINT:  In a moment you should be able to reconnect to the database and repeat your command.
<2008-02-25 07:15:49 CST username 127.0.0.1>WARNING:  terminating connection because of crash of another server process

and it continues like this as it terminated all connections followed by:

<2008-02-25 07:15:49 CST username 127.0.0.1>CONTEXT:  PL/pgSQL function "get_branch_for_zip" line 61 at fetch
<2008-02-25 07:15:50 CST  >LOG:  all server processes terminated; reinitializing
<2008-02-25 07:15:50 CST  >LOG:  database system was interrupted at 2008-02-25 07:11:10 CST
<2008-02-25 07:15:50 CST  >LOG:  checkpoint record is at 14/9F015F54
<2008-02-25 07:15:50 CST  >LOG:  redo record is at 14/9F015F54; undo record is at 0/0; shutdown FALSE
<2008-02-25 07:15:50 CST  >LOG:  next transaction ID: 911288200; next OID: 90133045
<2008-02-25 07:15:50 CST  >LOG:  next MultiXactId: 27095; next MultiXactOffset: 66130
<2008-02-25 07:15:50 CST  >LOG:  database system was not properly shut down; automatic recovery in progress
<2008-02-25 07:15:50 CST  >LOG:  redo starts at 14/9F015F98
<2008-02-25 07:15:50 CST  >LOG:  record with zero length at 14/9F08C23C
<2008-02-25 07:15:50 CST  >LOG:  redo done at 14/9F08C214
<2008-02-25 07:15:50 CST  >LOG:  could not truncate directory "pg_multixact/members": apparent wraparound
<2008-02-25 07:15:50 CST  >LOG:  database system is ready
<2008-02-25 07:15:50 CST  >LOG:  transaction ID wrap limit is 1576224515, limited by database "another_db"
<2008-02-25 07:15:56 CST [unknown] >LOG:  connection received: host=127.0.0.1 port=51987
<2008-02-25 07:15:56 CST username 127.0.0.1>LOG:  connection authorized: user=onehour database=my_db
<2008-02-25 07:15:56 CST  >LOG:  server process (PID 14433) was terminated by signal 11
<2008-02-25 07:15:56 CST  >LOG:  terminating any other active server processes
<2008-02-25 07:15:56 CST  >LOG:  all server processes terminated; reinitializing
<2008-02-25 07:15:56 CST  >LOG:  database system was interrupted at 2008-02-25 07:15:50 CST
<2008-02-25 07:15:56 CST  >LOG:  checkpoint record is at 14/9F08C23C
<2008-02-25 07:15:56 CST  >LOG:  redo record is at 14/9F08C23C; undo record is at 0/0; shutdown TRUE
<2008-02-25 07:15:56 CST  >LOG:  next transaction ID: 911293548; next OID: 90133045
<2008-02-25 07:15:56 CST  >LOG:  next MultiXactId: 27095; next MultiXactOffset: 66130
<2008-02-25 07:15:56 CST  >LOG:  database system was not properly shut down; automatic recovery in progress
<2008-02-25 07:15:56 CST  >LOG:  record with zero length at 14/9F08C280
<2008-02-25 07:15:56 CST  >LOG:  redo is not required
<2008-02-25 07:15:56 CST  >LOG:  could not truncate directory "pg_multixact/members": apparent wraparound
<2008-02-25 07:15:56 CST  >LOG:  database system is ready
<2008-02-25 07:15:56 CST  >LOG:  transaction ID wrap limit is 1576224515, limited by database "another_db"

and it then continues with this.


--
==================================================================
  Aaron Bono
  Aranya Software Technologies, Inc.
  http://www.aranya.com
  http://codeelixir.com
================================================================== ------=_Part_16708_4450222.1203954803166-- From scott.marlowe@gmail.com Mon Feb 25 16:39:27 2008 Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id E8FA12E003A for ; Mon, 25 Feb 2008 12:39:27 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 43297-06 for ; Mon, 25 Feb 2008 12:39:22 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.178]) by postgresql.org (Postfix) with ESMTP id 0A15E2E0046 for ; Mon, 25 Feb 2008 12:39:21 -0400 (AST) Received: by wa-out-1112.google.com with SMTP id m38so1955196waf.5 for ; Mon, 25 Feb 2008 08:39:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Vzlagdw+g18jfdyfTn9tsExuoDuq5TllChmr5lY8qWs=; b=ARibjVqxTJvZdb2WNiFXpJylM/hrZK2NDvLHA66OkS6iaZrgI5/dYqwy0CEmQliJ+OOtq4ReFALl3FnavfUve+7bWMt/oZwJw7VQ4hZLGfTC1mIJWugOqx9reF3iTAn71vNS3kDjicmdfkw2Ue0ML7P7MZP9+3yR//11qxxrp00= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oYn1VADqEcOQ2VZnrFln5hRdHCv7Rh+eNoZjuVnPXA0F1S6D9k4Lt29InDd+8Fu0UB1b6sATfm6WVlVTDL2CkN+yb0ui5gWbpXznyKN3/qstXRfCj6lR0AP6IWXEaXlZuKUJFTsMhHqjihRS7Hep4B7ajakP28jLdA57Cpn/Sf4= Received: by 10.115.89.1 with SMTP id r1mr3853689wal.8.1203957560807; Mon, 25 Feb 2008 08:39:20 -0800 (PST) Received: by 10.114.133.6 with HTTP; Mon, 25 Feb 2008 08:39:20 -0800 (PST) Message-ID: Date: Mon, 25 Feb 2008 10:39:20 -0600 From: "Scott Marlowe" To: "Aaron Bono" Subject: Re: System in Recovery Mode Cc: Postgres In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/318 X-Sequence-Number: 28392 On Mon, Feb 25, 2008 at 8:11 AM, Aaron Bono wrote: > Our database was going along just fine this morning when, out of the blue, > we started getting the following errors: > > FATAL: the database system is in recovery mode > > We are using PostgreSQL 8.1.3 on CentOS. I was the only person on the > machine and had recently started a small batch that had just finished > querying and updating the database. This batch runs constantly and has not > been changed in months. > > What are the things that could be causing this? I'm not saying it definitely is the problem, but you are missing 2 years of updates. 8.1.11 came out just last month, 8.1.3 came out 2 years ago. From simon@2ndquadrant.com Mon Feb 25 17:03:58 2008 Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 2052D2E003A for ; Mon, 25 Feb 2008 13:03:58 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 01833-08 for ; Mon, 25 Feb 2008 13:03:53 -0400 (AST) X-Greylist: delayed 00:16:30.004061 by SQLgrey-1.7.5 Received: from outmail137094.authsmtp.co.uk (outmail137094.authsmtp.co.uk [62.13.137.94]) by postgresql.org (Postfix) with ESMTP id DF43F2E0039 for ; Mon, 25 Feb 2008 13:03:53 -0400 (AST) Received: from outmail128181.authsmtp.net (outmail128181.authsmtp.net [62.13.128.181]) by punt4.authsmtp.com (8.14.1/8.14.1/Kp) with ESMTP id m1PGkWLX071692; Mon, 25 Feb 2008 16:46:32 GMT Received: from [192.168.0.3] (85-211-31-42.dyn.gotadsl.co.uk [85.211.31.42]) (authenticated bits=0) by mail.authsmtp.com (8.13.8/8.13.8/Kp) with ESMTP id m1PGlJQR058378; Mon, 25 Feb 2008 16:47:20 GMT Subject: Re: System in Recovery Mode From: Simon Riggs To: Aaron Bono Cc: Postgres In-Reply-To: References: <1203954173.4252.59.camel@ebony.site> Content-Type: text/plain Date: Mon, 25 Feb 2008 16:48:15 +0000 Message-Id: <1203958095.4252.79.camel@ebony.site> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2 Content-Transfer-Encoding: 7bit X-Server-Quench: 54d36ef2-e3c1-11dc-9670-001185d377ca X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksadBtFagBba1xT HGQLW1xEUVt7XWR/ aQofZQBDYEtPQQZr TkxLXVBXCwUmXB1h cUJkM3tycg1Ff3Y+ ZERjWj5eWBB5cxMr QFMBFj4HeGZhPDMC WUZfdx5UcAJLdhoR aVd4ByJDAzANdhER MyoSGQV5BiRENClQ CgALZWgfSkEVEyQt DzUFEThH X-Authentic-SMTP: 61633235383639.squirrel.dmpriest.net.uk:787/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/320 X-Sequence-Number: 28394 On Mon, 2008-02-25 at 09:53 -0600, Aaron Bono wrote: <2008-02-25 07:15:24 CST username 127.0.0.1>ERROR: unrecognized node type: 4260493 > ... > <2008-02-25 07:15:49 CST username 127.0.0.1>CONTEXT: PL/pgSQL > function "get_branch_for_zip" line 61 at fetch ... > <2008-02-25 07:15:56 CST >LOG: could not truncate directory > "pg_multixact/members": apparent wraparound Some interesting failures there. Is this a modified Postgres server? Are you running externally supplied C language functions? Have you had hardware problems? -- Simon Riggs 2ndQuadrant http://www.2ndQuadrant.com From postgresql@aranya.com Mon Feb 25 16:59:39 2008 Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 1E6EE2E002F for ; Mon, 25 Feb 2008 12:59:39 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 51139-01 for ; Mon, 25 Feb 2008 12:59:32 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.230]) by postgresql.org (Postfix) with ESMTP id 9BDF22E003A for ; Mon, 25 Feb 2008 12:59:31 -0400 (AST) Received: by qb-out-0506.google.com with SMTP id o12so2575430qba.17 for ; Mon, 25 Feb 2008 08:59:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; bh=bW+0SXkiXDyfbQUSlPbkaEhNWgSlHMomFIKYvC70diY=; b=HegOXDwBNgNbZRmSAej+6atG2noRibA4FKDplg80ISXD43hdB7bwbSSXSc9zItl3GG9x93xob9oobwHx3pqP8VuwKtZ6iziXHOJZRP9+auuLcCEv6+5cdKSKDpZeBrtMuvRDzUbAMd0X+tT1lmUNKYfb5cpDW7ma5D1HgpgA4go= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=mc0e/XL4qMXJLr6pSGRWU+OWYTUT4os4hfjxYsmvUEo9fUsuIwZ3eCM3LVKs1gCJmeKV47IWAV+6gcmDMw93xGeJbHvTDp9abkgy7oQPECcdmqkfs4RV93YcQ4zvAoKcp+gJuBE7KV4nAfDDcl8POVT2mVpiEL2e6Bf/q4m3Gz0= Received: by 10.140.163.3 with SMTP id l3mr2295019rve.68.1203958769182; Mon, 25 Feb 2008 08:59:29 -0800 (PST) Received: by 10.140.142.20 with HTTP; Mon, 25 Feb 2008 08:59:29 -0800 (PST) Message-ID: Date: Mon, 25 Feb 2008 10:59:29 -0600 From: "Aaron Bono" To: "Simon Riggs" Subject: Re: System in Recovery Mode Cc: Postgres In-Reply-To: <1203958095.4252.79.camel@ebony.site> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_17234_13507171.1203958769178" References: <1203954173.4252.59.camel@ebony.site> <1203958095.4252.79.camel@ebony.site> X-Google-Sender-Auth: 98008f7f991a22a2 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.903 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001, NORMAL_HTTP_TO_IP=0.001, URIBL_RHS_DOB=0.901 X-Spam-Level: X-Archive-Number: 200802/319 X-Sequence-Number: 28393 ------=_Part_17234_13507171.1203958769178 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Mon, Feb 25, 2008 at 10:48 AM, Simon Riggs wrote: > On Mon, 2008-02-25 at 09:53 -0600, Aaron Bono wrote: > > <2008-02-25 07:15:24 CST username 127.0.0.1>ERROR: unrecognized node > type: 4260493 > > > > ... > > > <2008-02-25 07:15:49 CST username 127.0.0.1>CONTEXT: PL/pgSQL > > function "get_branch_for_zip" line 61 at fetch > > ... > > > <2008-02-25 07:15:56 CST >LOG: could not truncate directory > > "pg_multixact/members": apparent wraparound > > Some interesting failures there. > > Is this a modified Postgres server? Are you running externally supplied > C language functions? Have you had hardware problems? This is NOT a modified PostgreSQL server. We are not using any externally supplied C language functions or modules. However, we did have to upgrade from what CPanel put on the server (it used version 7.x) and I don't know what CPanel has done. We did have a hard drive problem (errors on the drive) in the past and they had to swap out a drive. It is a RAID configuration so no backup/restore was necessary. We do have intermittent problems with the server and believe it is related to Postgres. Our SA assures us there are currently no system errors or other indications of hard drive problems. We want to do an upgrade but are apprehensive as this is a production server. Is there a place we can go to to get a good idea of how to perform an upgrade with as little interruption to service as possible? Thanks, Aaron -- ================================================================== Aaron Bono Aranya Software Technologies, Inc. http://www.aranya.com http://codeelixir.com ================================================================== ------=_Part_17234_13507171.1203958769178 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Mon, Feb 25, 2008 at 10:48 AM, Simon Riggs <simon@2ndquadrant.com> wrote:
On Mon, 2008-02-25 at 09:53 -0600, Aaron Bono wrote:

<2008-02-25 07:15:24 CST username 127.0.0.1>ERROR:  unrecognized node
type: 4260493
>

...

> <2008-02-25 07:15:49 CST username 127.0.0.1>CONTEXT:  PL/pgSQL
> function "get_branch_for_zip" line 61 at fetch

...

> <2008-02-25 07:15:56 CST  >LOG:  could not truncate directory
> "pg_multixact/members": apparent wraparound

Some interesting failures there.

Is this a modified Postgres server? Are you running externally supplied
C language functions? Have you had hardware problems?

This is NOT a modified PostgreSQL server.  We are not using any externally supplied C language functions or modules.  However, we did have to upgrade from what CPanel put on the server (it used version 7.x) and I don't know what CPanel has done.

We did have a hard drive problem (errors on the drive) in the past and they had to swap out a drive.  It is a RAID configuration so no backup/restore was necessary.  We do have intermittent problems with the server and believe it is related to Postgres.  Our SA assures us there are currently no system errors or other indications of hard drive problems.

We want to do an upgrade but are apprehensive as this is a production server.  Is there a place we can go to to get a good idea of how to perform an upgrade with as little interruption to service as possible?

Thanks,
Aaron


--
==================================================================
  Aaron Bono
  Aranya Software Technologies, Inc.
  http://www.aranya.com
  http://codeelixir.com
================================================================== ------=_Part_17234_13507171.1203958769178-- From postgresql@aranya.com Mon Feb 25 18:08:41 2008 Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 85FCF2E003C for ; Mon, 25 Feb 2008 14:08:41 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 74026-02 for ; Mon, 25 Feb 2008 14:08:33 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.228]) by postgresql.org (Postfix) with ESMTP id E1D142E0047 for ; Mon, 25 Feb 2008 14:08:31 -0400 (AST) Received: by qb-out-0506.google.com with SMTP id o12so2623512qba.17 for ; Mon, 25 Feb 2008 10:08:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; bh=kM7Kks5At61cua5XLqmTMBjk/UQECaX9GAZ/Gn4jgs0=; b=XZBb7jIY34HOXturFaP26GxBmd2p7n61VcWOqWhcIwedCGLe+Y9Fff1jy8vwz1RK0rFSOxD93xO/Ss0aaLqSUDhArTOSdxckUHHFE+V1YwlCi1sHCK4CmDCg04HcLpqsKhuDrhOycLsnhGEo4DiF6dDjwUYvY7triyYteMJoWWk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=Cwe76QWztbl9vtKYzMNI7xOUJnJ8bMwfK2c+aHKl6S4502R2mbB5YK3LNPBKFTYeyiPBBy1z+0Y8V92MgUDkKCQerHBbWWGvWMEwrMzzewls9moO9yQ2+pJm2XQw+1MKPHc+XJj12t0XRcybgCTZMLg1NI6hoDRdAcle1h8+oLc= Received: by 10.141.129.14 with SMTP id g14mr2357835rvn.209.1203962909338; Mon, 25 Feb 2008 10:08:29 -0800 (PST) Received: by 10.140.142.20 with HTTP; Mon, 25 Feb 2008 10:08:29 -0800 (PST) Message-ID: Date: Mon, 25 Feb 2008 12:08:29 -0600 From: "Aaron Bono" To: "Simon Riggs" Subject: Re: System in Recovery Mode Cc: Postgres In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_17729_11406129.1203962909338" References: <1203954173.4252.59.camel@ebony.site> X-Google-Sender-Auth: 7e02f440038cbc0d X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.903 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001, NORMAL_HTTP_TO_IP=0.001, URIBL_RHS_DOB=0.901 X-Spam-Level: X-Archive-Number: 200802/321 X-Sequence-Number: 28395 ------=_Part_17729_11406129.1203962909338 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Mon, Feb 25, 2008 at 9:53 AM, Aaron Bono wrote: > On Mon, Feb 25, 2008 at 9:42 AM, Simon Riggs > wrote: > > > On Mon, 2008-02-25 at 08:11 -0600, Aaron Bono wrote: > > > Now I am getting: <2008-02-25 10:51:08 CST username 127.0.0.1>LOG: unexpected EOF on client connection <2008-02-25 10:51:08 CST username 127.0.0.1>LOG: disconnection: session time: 3:17:39.14 user=username database=my_db host=127.0.0.1 port=12345 ... <2008-02-25 10:51:27 CST [unknown] >LOG: connection received: host= 127.0.0.1 port=43222 <2008-02-25 10:51:27 CST username 127.0.0.1>LOG: connection authorized: user=username database=my_db <2008-02-25 10:52:27 CST >LOG: autovacuum: processing database "postgres" <2008-02-25 10:53:18 CST [unknown] >LOG: connection received: host= 127.0.0.1 port=43284 <2008-02-25 10:53:18 CST username 127.0.0.1>LOG: connection authorized: user=username database=my_db <2008-02-25 10:53:22 CST >LOG: server process (PID 17043) was terminated by signal 11 <2008-02-25 10:53:22 CST >LOG: terminating any other active server processes <2008-02-25 10:53:22 CST username 127.0.0.1>WARNING: terminating connection because of crash of another server process <2008-02-25 10:53:22 CST username 127.0.0.1>DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory. <2008-02-25 10:53:22 CST username 127.0.0.1>HINT: In a moment you should be able to reconnect to the database and repeat your command. <2008-02-25 10:53:22 CST username 127.0.0.1>CONTEXT: PL/pgSQL function "get_branch_for_zip" line 61 at fetch <2008-02-25 10:53:22 CST username 127.0.0.1>WARNING: terminating connection because of crash of another server process <2008-02-25 10:53:22 CST username 127.0.0.1>DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory. <2008-02-25 10:53:22 CST username 127.0.0.1>HINT: In a moment you should be able to reconnect to the database and repeat your command. <2008-02-25 10:53:22 CST username 127.0.0.1>WARNING: terminating connection because of crash of another server process <2008-02-25 10:53:22 CST username 127.0.0.1>DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory. <2008-02-25 10:53:22 CST username 127.0.0.1>HINT: In a moment you should be able to reconnect to the database and repeat your command. <2008-02-25 10:53:22 CST username 127.0.0.1>WARNING: terminating connection because of crash of another server process <2008-02-25 10:53:22 CST username 127.0.0.1>DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory. <2008-02-25 10:53:22 CST username 127.0.0.1>HINT: In a moment you should be able to reconnect to the database and repeat your command. <2008-02-25 10:53:22 CST username 127.0.0.1>WARNING: terminating connection because of crash of another server process <2008-02-25 10:53:22 CST username 127.0.0.1>DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory. <2008-02-25 10:53:22 CST username 127.0.0.1>HINT: In a moment you should be able to reconnect to the database and repeat your command. <2008-02-25 10:53:22 CST >LOG: all server processes terminated; reinitializing <2008-02-25 10:53:22 CST >LOG: database system was interrupted at 2008-02-25 10:50:59 CST <2008-02-25 10:53:22 CST >LOG: checkpoint record is at 14/9F8126D8 <2008-02-25 10:53:22 CST >LOG: redo record is at 14/9F8126D8; undo record is at 0/0; shutdown FALSE <2008-02-25 10:53:22 CST >LOG: next transaction ID: 911531009; next OID: 90141237 <2008-02-25 10:53:22 CST >LOG: next MultiXactId: 27095; next MultiXactOffset: 66130 <2008-02-25 10:53:22 CST >LOG: database system was not properly shut down; automatic recovery in progress <2008-02-25 10:53:22 CST >LOG: redo starts at 14/9F81271C <2008-02-25 10:53:22 CST >LOG: record with zero length at 14/9F826D68 <2008-02-25 10:53:22 CST >LOG: redo done at 14/9F826D40 <2008-02-25 10:53:22 CST >LOG: could not truncate directory "pg_multixact/members": apparent wraparound <2008-02-25 10:53:22 CST >LOG: database system is ready <2008-02-25 10:53:22 CST >LOG: transaction ID wrap limit is 1576224515, limited by database "another_db" <2008-02-25 10:53:23 CST [unknown] >LOG: connection received: host= 127.0.0.1 port=43289 <2008-02-25 10:53:23 CST username 127.0.0.1>LOG: connection authorized: user=username database=my_db > > > > Our database was going along just fine this morning when, out of the > > > blue, we started getting the following errors: > > > > > > FATAL: the database system is in recovery mode > > > > > > We are using PostgreSQL 8.1.3 on CentOS. I was the only person on the > > > machine and had recently started a small batch that had just finished > > > querying and updating the database. This batch runs constantly and > > > has not been changed in months. > > > > Your database has crashed and is recovering. You should look at the > > server log to find out when and why this happened, then either correct > > the problem or report the bug. > > > > > Here is what I am seeing: > > <2008-02-25 07:15:24 CST username 127.0.0.1>ERROR: unrecognized node > type: 4260493 > <2008-02-25 07:15:25 CST [unknown] >LOG: connection received: host= > 127.0.0.1 port=51295 > <2008-02-25 07:15:25 CST username 127.0.0.1>LOG: connection authorized: > user=username database=my_db > <2008-02-25 07:15:25 CST username 127.0.0.1>LOG: disconnection: session > time: 0:00:00.04 user=username database=my_db host=127.0.0.1 port=51295 > <2008-02-25 07:15:25 CST [unknown] >LOG: connection received: host= > 127.0.0.1 port=51296 > <2008-02-25 07:15:25 CST username 127.0.0.1>LOG: connection authorized: > user=username database=clockwork_db_prod > <2008-02-25 07:15:38 CST username 127.0.0.1>ERROR: unrecognized node > type: 4260493 > <2008-02-25 07:15:49 CST >LOG: server process (PID 10876) was terminated > by signal 11 > <2008-02-25 07:15:49 CST >LOG: terminating any other active server > processes > <2008-02-25 07:15:49 CST username 127.0.0.1>WARNING: terminating > connection because of crash of another server process > <2008-02-25 07:15:49 CST username 127.0.0.1>DETAIL: The postmaster has > commanded this server process to roll back the current transaction and exit, > because another server process exited abnormally and possibly corrupted > shared memory. > <2008-02-25 07:15:49 CST username 127.0.0.1>HINT: In a moment you should > be able to reconnect to the database and repeat your command. > <2008-02-25 07:15:49 CST username 127.0.0.1>WARNING: terminating > connection because of crash of another server process > > and it continues like this as it terminated all connections followed by: > > <2008-02-25 07:15:49 CST username 127.0.0.1>CONTEXT: PL/pgSQL function > "get_branch_for_zip" line 61 at fetch > <2008-02-25 07:15:50 CST >LOG: all server processes terminated; > reinitializing > <2008-02-25 07:15:50 CST >LOG: database system was interrupted at > 2008-02-25 07:11:10 CST > <2008-02-25 07:15:50 CST >LOG: checkpoint record is at 14/9F015F54 > <2008-02-25 07:15:50 CST >LOG: redo record is at 14/9F015F54; undo > record is at 0/0; shutdown FALSE > <2008-02-25 07:15:50 CST >LOG: next transaction ID: 911288200; next OID: > 90133045 > <2008-02-25 07:15:50 CST >LOG: next MultiXactId: 27095; next > MultiXactOffset: 66130 > <2008-02-25 07:15:50 CST >LOG: database system was not properly shut > down; automatic recovery in progress > <2008-02-25 07:15:50 CST >LOG: redo starts at 14/9F015F98 > <2008-02-25 07:15:50 CST >LOG: record with zero length at 14/9F08C23C > <2008-02-25 07:15:50 CST >LOG: redo done at 14/9F08C214 > <2008-02-25 07:15:50 CST >LOG: could not truncate directory > "pg_multixact/members": apparent wraparound > <2008-02-25 07:15:50 CST >LOG: database system is ready > <2008-02-25 07:15:50 CST >LOG: transaction ID wrap limit is 1576224515, > limited by database "another_db" > <2008-02-25 07:15:56 CST [unknown] >LOG: connection received: host= > 127.0.0.1 port=51987 > <2008-02-25 07:15:56 CST username 127.0.0.1>LOG: connection authorized: > user=onehour database=my_db > <2008-02-25 07:15:56 CST >LOG: server process (PID 14433) was terminated > by signal 11 > <2008-02-25 07:15:56 CST >LOG: terminating any other active server > processes > <2008-02-25 07:15:56 CST >LOG: all server processes terminated; > reinitializing > <2008-02-25 07:15:56 CST >LOG: database system was interrupted at > 2008-02-25 07:15:50 CST > <2008-02-25 07:15:56 CST >LOG: checkpoint record is at 14/9F08C23C > <2008-02-25 07:15:56 CST >LOG: redo record is at 14/9F08C23C; undo > record is at 0/0; shutdown TRUE > <2008-02-25 07:15:56 CST >LOG: next transaction ID: 911293548; next OID: > 90133045 > <2008-02-25 07:15:56 CST >LOG: next MultiXactId: 27095; next > MultiXactOffset: 66130 > <2008-02-25 07:15:56 CST >LOG: database system was not properly shut > down; automatic recovery in progress > <2008-02-25 07:15:56 CST >LOG: record with zero length at 14/9F08C280 > <2008-02-25 07:15:56 CST >LOG: redo is not required > <2008-02-25 07:15:56 CST >LOG: could not truncate directory > "pg_multixact/members": apparent wraparound > <2008-02-25 07:15:56 CST >LOG: database system is ready > <2008-02-25 07:15:56 CST >LOG: transaction ID wrap limit is 1576224515, > limited by database "another_db" > > and it then continues with this. > > > -- ================================================================== Aaron Bono Aranya Software Technologies, Inc. http://www.aranya.com http://codeelixir.com ================================================================== ------=_Part_17729_11406129.1203962909338 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Mon, Feb 25, 2008 at 9:53 AM, Aaron Bono <postgresql@aranya.com> wrote:
On Mon, Feb 25, 2008 at 9:42 AM, Simon Riggs <simon@2ndquadrant.com> wrote:
On Mon, 2008-02-25 at 08:11 -0600, Aaron Bono wrote:

Now I am getting:

<2008-02-25 10:51:08 CST username 127.0.0.1>LOG:  unexpected EOF on client connection
<2008-02-25 10:51:08 CST username 127.0.0.1>LOG:  disconnection: session time: 3:17:39.14 user=username database=my_db host=127.0.0.1 port=12345

...

<2008-02-25 10:51:27 CST [unknown] >LOG:  connection received: host=127.0.0.1 port=43222
<2008-02-25 10:51:27 CST username 127.0.0.1>LOG:  connection authorized: user=username database=my_db
<2008-02-25 10:52:27 CST  >LOG:  autovacuum: processing database "postgres"
<2008-02-25 10:53:18 CST [unknown] >LOG:  connection received: host=127.0.0.1 port=43284
<2008-02-25 10:53:18 CST username 127.0.0.1>LOG:  connection authorized: user=username database=my_db
<2008-02-25 10:53:22 CST  >LOG:  server process (PID 17043) was terminated by signal 11
<2008-02-25 10:53:22 CST  >LOG:  terminating any other active server processes
<2008-02-25 10:53:22 CST username 127.0.0.1>WARNING:  terminating connection because of crash of another server process
<2008-02-25 10:53:22 CST username 127.0.0.1>DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly
corrupted shared memory.
<2008-02-25 10:53:22 CST username 127.0.0.1>HINT:  In a moment you should be able to reconnect to the database and repeat your command.
<2008-02-25 10:53:22 CST username 127.0.0.1>CONTEXT:  PL/pgSQL function "get_branch_for_zip" line 61 at fetch
<2008-02-25 10:53:22 CST username 127.0.0.1>WARNING:  terminating connection because of crash of another server process
<2008-02-25 10:53:22 CST username 127.0.0.1>DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly
 corrupted shared memory.
<2008-02-25 10:53:22 CST username 127.0.0.1>HINT:  In a moment you should be able to reconnect to the database and repeat your command.
<2008-02-25 10:53:22 CST username 127.0.0.1>WARNING:  terminating connection because of crash of another server process
<2008-02-25 10:53:22 CST username 127.0.0.1>DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly
corrupted shared memory.
<2008-02-25 10:53:22 CST username 127.0.0.1>HINT:  In a moment you should be able to reconnect to the database and repeat your command.
<2008-02-25 10:53:22 CST username 127.0.0.1>WARNING:  terminating connection because of crash of another server process
<2008-02-25 10:53:22 CST username 127.0.0.1>DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly
corrupted shared memory.
<2008-02-25 10:53:22 CST username 127.0.0.1>HINT:  In a moment you should be able to reconnect to the database and repeat your command.
<2008-02-25 10:53:22 CST username 127.0.0.1>WARNING:  terminating connection because of crash of another server process
<2008-02-25 10:53:22 CST username 127.0.0.1>DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly
 corrupted shared memory.
<2008-02-25 10:53:22 CST username 127.0.0.1>HINT:  In a moment you should be able to reconnect to the database and repeat your command.
<2008-02-25 10:53:22 CST  >LOG:  all server processes terminated; reinitializing
<2008-02-25 10:53:22 CST  >LOG:  database system was interrupted at 2008-02-25 10:50:59 CST
<2008-02-25 10:53:22 CST  >LOG:  checkpoint record is at 14/9F8126D8
<2008-02-25 10:53:22 CST  >LOG:  redo record is at 14/9F8126D8; undo record is at 0/0; shutdown FALSE
<2008-02-25 10:53:22 CST  >LOG:  next transaction ID: 911531009; next OID: 90141237
<2008-02-25 10:53:22 CST  >LOG:  next MultiXactId: 27095; next MultiXactOffset: 66130
<2008-02-25 10:53:22 CST  >LOG:  database system was not properly shut down; automatic recovery in progress
<2008-02-25 10:53:22 CST  >LOG:  redo starts at 14/9F81271C
<2008-02-25 10:53:22 CST  >LOG:  record with zero length at 14/9F826D68
<2008-02-25 10:53:22 CST  >LOG:  redo done at 14/9F826D40
<2008-02-25 10:53:22 CST  >LOG:  could not truncate directory "pg_multixact/members": apparent wraparound
<2008-02-25 10:53:22 CST  >LOG:  database system is ready
<2008-02-25 10:53:22 CST  >LOG:  transaction ID wrap limit is 1576224515, limited by database "another_db"
<2008-02-25 10:53:23 CST [unknown] >LOG:  connection received: host=127.0.0.1 port=43289
<2008-02-25 10:53:23 CST username 127.0.0.1>LOG:  connection authorized: user=username database=my_db


 

> Our database was going along just fine this morning when, out of the
> blue, we started getting the following errors:
>
> FATAL:  the database system is in recovery mode
>
> We are using PostgreSQL 8.1.3 on CentOS.  I was the only person on the
> machine and had recently started a small batch that had just finished
> querying and updating the database.  This batch runs constantly and
> has not been changed in months.

Your database has crashed and is recovering. You should look at the
server log to find out when and why this happened, then either correct
the problem or report the bug.


Here is what I am seeing:

<2008-02-25 07:15:24 CST username 127.0.0.1>ERROR:  unrecognized node type: 4260493
<2008-02-25 07:15:25 CST [unknown] >LOG:  connection received: host=127.0.0.1 port=51295
<2008-02-25 07:15:25 CST username 127.0.0.1>LOG:  connection authorized: user=username database=my_db
<2008-02-25 07:15:25 CST username 127.0.0.1>LOG:  disconnection: session time: 0:00:00.04 user=username database=my_db host=127.0.0.1 port=51295
<2008-02-25 07:15:25 CST [unknown] >LOG:  connection received: host=127.0.0.1 port=51296
<2008-02-25 07:15:25 CST username 127.0.0.1>LOG:  connection authorized: user=username database=clockwork_db_prod
<2008-02-25 07:15:38 CST username 127.0.0.1>ERROR:  unrecognized node type: 4260493
<2008-02-25 07:15:49 CST  >LOG:  server process (PID 10876) was terminated by signal 11
<2008-02-25 07:15:49 CST  >LOG:  terminating any other active server processes
<2008-02-25 07:15:49 CST username 127.0.0.1>WARNING:  terminating connection because of crash of another server process
<2008-02-25 07:15:49 CST username 127.0.0.1>DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
<2008-02-25 07:15:49 CST username 127.0.0.1>HINT:  In a moment you should be able to reconnect to the database and repeat your command.
<2008-02-25 07:15:49 CST username 127.0.0.1>WARNING:  terminating connection because of crash of another server process

and it continues like this as it terminated all connections followed by:

<2008-02-25 07:15:49 CST username 127.0.0.1>CONTEXT:  PL/pgSQL function "get_branch_for_zip" line 61 at fetch
<2008-02-25 07:15:50 CST  >LOG:  all server processes terminated; reinitializing
<2008-02-25 07:15:50 CST  >LOG:  database system was interrupted at 2008-02-25 07:11:10 CST
<2008-02-25 07:15:50 CST  >LOG:  checkpoint record is at 14/9F015F54
<2008-02-25 07:15:50 CST  >LOG:  redo record is at 14/9F015F54; undo record is at 0/0; shutdown FALSE
<2008-02-25 07:15:50 CST  >LOG:  next transaction ID: 911288200; next OID: 90133045
<2008-02-25 07:15:50 CST  >LOG:  next MultiXactId: 27095; next MultiXactOffset: 66130
<2008-02-25 07:15:50 CST  >LOG:  database system was not properly shut down; automatic recovery in progress
<2008-02-25 07:15:50 CST  >LOG:  redo starts at 14/9F015F98
<2008-02-25 07:15:50 CST  >LOG:  record with zero length at 14/9F08C23C
<2008-02-25 07:15:50 CST  >LOG:  redo done at 14/9F08C214
<2008-02-25 07:15:50 CST  >LOG:  could not truncate directory "pg_multixact/members": apparent wraparound
<2008-02-25 07:15:50 CST  >LOG:  database system is ready
<2008-02-25 07:15:50 CST  >LOG:  transaction ID wrap limit is 1576224515, limited by database "another_db"
<2008-02-25 07:15:56 CST [unknown] >LOG:  connection received: host=127.0.0.1 port=51987
<2008-02-25 07:15:56 CST username 127.0.0.1>LOG:  connection authorized: user=onehour database=my_db
<2008-02-25 07:15:56 CST  >LOG:  server process (PID 14433) was terminated by signal 11
<2008-02-25 07:15:56 CST  >LOG:  terminating any other active server processes
<2008-02-25 07:15:56 CST  >LOG:  all server processes terminated; reinitializing
<2008-02-25 07:15:56 CST  >LOG:  database system was interrupted at 2008-02-25 07:15:50 CST
<2008-02-25 07:15:56 CST  >LOG:  checkpoint record is at 14/9F08C23C
<2008-02-25 07:15:56 CST  >LOG:  redo record is at 14/9F08C23C; undo record is at 0/0; shutdown TRUE
<2008-02-25 07:15:56 CST  >LOG:  next transaction ID: 911293548; next OID: 90133045
<2008-02-25 07:15:56 CST  >LOG:  next MultiXactId: 27095; next MultiXactOffset: 66130
<2008-02-25 07:15:56 CST  >LOG:  database system was not properly shut down; automatic recovery in progress
<2008-02-25 07:15:56 CST  >LOG:  record with zero length at 14/9F08C280
<2008-02-25 07:15:56 CST  >LOG:  redo is not required
<2008-02-25 07:15:56 CST  >LOG:  could not truncate directory "pg_multixact/members": apparent wraparound
<2008-02-25 07:15:56 CST  >LOG:  database system is ready
<2008-02-25 07:15:56 CST  >LOG:  transaction ID wrap limit is 1576224515, limited by database "another_db"

and it then continues with this.





--
==================================================================
  Aaron Bono
  Aranya Software Technologies, Inc.
  http://www.aranya.com
  http://codeelixir.com
================================================================== ------=_Part_17729_11406129.1203962909338-- From michael.monnerie@it-management.at Mon Feb 25 21:09:29 2008 Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 3ADF42E003E for ; Mon, 25 Feb 2008 17:09:29 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 54318-08 for ; Mon, 25 Feb 2008 17:09:24 -0400 (AST) X-Greylist: delayed 00:20:33.185954 by SQLgrey-1.7.5 Received: from mailsrv1.zmi.at (mailsrv1.zmi.at [212.69.162.198]) by postgresql.org (Postfix) with ESMTP id 288572E002F for ; Mon, 25 Feb 2008 17:09:23 -0400 (AST) Received: from mailsrv.i.zmi.at (85-125-129-125.neutorgasse.xdsl-line.inode.at [85.125.129.125]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mailsrv.i.zmi.at", Issuer "mailsrv.i.zmi.at" (not verified)) by mailsrv1.zmi.at (Postfix) with ESMTP id C12B9CD2 for ; Mon, 25 Feb 2008 21:48:47 +0100 (CET) Received: from saturn.i.zmi.at (saturn.i.zmi.at [10.0.0.2]) by mailsrv.i.zmi.at (Postfix) with ESMTP id AE4D8BF16 for ; Mon, 25 Feb 2008 21:49:01 +0100 (CET) From: Michael Monnerie Organization: it-management http://it-management.at To: pgsql-admin@postgresql.org Subject: Re: System in Recovery Mode Date: Mon, 25 Feb 2008 21:48:47 +0100 User-Agent: KMail/1.9.6 (enterprise 20070904.708012) References: <1203958095.4252.79.camel@ebony.site> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2564717.0AQ9N7xClX"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200802252148.47760@zmi.at> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/324 X-Sequence-Number: 28398 --nextPart2564717.0AQ9N7xClX Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Montag, 25. Februar 2008 Aaron Bono wrote: > We did have a hard drive problem (errors on the drive) in the past > and they had to swap out a drive. =A0It is a RAID configuration so no > backup/restore was necessary. Even with a RAID system, a broken hard drive that doesn't show that it's=20 broken can cause severe data destroying: We've had this several times=20 already, with different RAID and drive combinations, SATA and SCSI,=20 doesn't matter. The symptom was that you write data to the drive, it=20 says OK, but upon reading you receive other data than you wrote. Even=20 RAID 1/5/6 doesn't help you here. Doesn't mean you have the same, but from what you wrote I just wanted to=20 inform you that it's a fact that a single broken drive can destroy even=20 a RAIDs data very nasty. mfg zmi =2D-=20 // Michael Monnerie, Ing.BSc ----- http://it-management.at // Tel: 0676/846 914 666 .network.your.ideas. // PGP Key: "curl -s http://zmi.at/zmi.asc | gpg --import" // Fingerprint: AC19 F9D5 36ED CD8A EF38 500E CE14 91F7 1C12 09B4 // Keyserver: www.keyserver.net Key-ID: 1C1209B4 --nextPart2564717.0AQ9N7xClX Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQBHwymvzhSR9xwSCbQRAuV4AKDVDXsEVvOkqgjx/OiX0PWvAfXy5QCg3Lyy safHvSRH5YPnX7TFEAgoN+s= =6VMo -----END PGP SIGNATURE----- --nextPart2564717.0AQ9N7xClX-- From postgresql@aranya.com Mon Feb 25 21:19:52 2008 Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 4ABED2E0053 for ; Mon, 25 Feb 2008 17:19:52 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 58735-02 for ; Mon, 25 Feb 2008 17:19:49 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.232]) by postgresql.org (Postfix) with ESMTP id 8910E2E002C for ; Mon, 25 Feb 2008 17:19:46 -0400 (AST) Received: by wx-out-0506.google.com with SMTP id r21so1656851wxc.28 for ; Mon, 25 Feb 2008 13:19:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; bh=/93GdIGgIBTuxN6IcxonKZykuI33tPzSWspgM/Lpzn4=; b=JTusgfNrKYIftjZMpE3WADWSIqVJ5qSE7abEmLW0heyaxsJ3DNtAxTDDmISEZTT98ASjNJ/QHSS+rKW6hqDNsBjb+uPQ8tdpvAA7sQe7MMbQtE565XaGP1lHpgxiAR59833Fm7BiVr8agD5tbFD2Q1kl2v/w8AWaY6rhzFOT3Z0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=wXAtbSs5fKGLWT8yWju+ih2TRs08axGtZDDBZkDu6KNhtrBhtnUE+abLqEbd5NsMXoPSPEcXbtINZUa782YN5QP2+8XPKegIpIoAw9jm9kVTvx8H6U/8qricXVE4bnotOrpfpaKte6aeC+VtkS1XjDRC2NXd8+tPWcEpVEVtsTc= Received: by 10.70.71.17 with SMTP id t17mr2456840wxa.81.1203974385701; Mon, 25 Feb 2008 13:19:45 -0800 (PST) Received: by 10.70.89.12 with HTTP; Mon, 25 Feb 2008 13:19:45 -0800 (PST) Message-ID: Date: Mon, 25 Feb 2008 15:19:45 -0600 From: "Aaron Bono" To: "Michael Monnerie" Subject: Re: System in Recovery Mode Cc: pgsql-admin@postgresql.org In-Reply-To: <200802252148.47760@zmi.at> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2068_30144702.1203974385690" References: <1203958095.4252.79.camel@ebony.site> <200802252148.47760@zmi.at> X-Google-Sender-Auth: 496520b91d68dbf5 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/325 X-Sequence-Number: 28399 ------=_Part_2068_30144702.1203974385690 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Mon, Feb 25, 2008 at 2:48 PM, Michael Monnerie < michael.monnerie@it-management.at> wrote: > On Montag, 25. Februar 2008 Aaron Bono wrote: > > We did have a hard drive problem (errors on the drive) in the past > > and they had to swap out a drive. It is a RAID configuration so no > > backup/restore was necessary. > > Even with a RAID system, a broken hard drive that doesn't show that it's > broken can cause severe data destroying: We've had this several times > already, with different RAID and drive combinations, SATA and SCSI, > doesn't matter. The symptom was that you write data to the drive, it > says OK, but upon reading you receive other data than you wrote. Even > RAID 1/5/6 doesn't help you here. > > Doesn't mean you have the same, but from what you wrote I just wanted to > inform you that it's a fact that a single broken drive can destroy even > a RAIDs data very nasty. > > mfg zmi > > If I do a pg_dump from this potentially "bad" database and then use the output to do a restore to a new DB on another server, aside from having some data corrupted, would we be able to recover from this problem? If not, what could I do to "fix" the data so the database stops having issues? Thanks! Aaron -- ================================================================== Aaron Bono Aranya Software Technologies, Inc. http://www.aranya.com http://codeelixir.com ================================================================== ------=_Part_2068_30144702.1203974385690 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Mon, Feb 25, 2008 at 2:48 PM, Michael Monnerie <michael.monnerie@it-management.at> wrote:
On Montag, 25. Februar 2008 Aaron Bono wrote:
> We did have a hard drive problem (errors on the drive) in the past
> and they had to swap out a drive.  It is a RAID configuration so no
> backup/restore was necessary.

Even with a RAID system, a broken hard drive that doesn't show that it's
broken can cause severe data destroying: We've had this several times
already, with different RAID and drive combinations, SATA and SCSI,
doesn't matter. The symptom was that you write data to the drive, it
says OK, but upon reading you receive other data than you wrote. Even
RAID 1/5/6 doesn't help you here.

Doesn't mean you have the same, but from what you wrote I just wanted to
inform you that it's a fact that a single broken drive can destroy even
a RAIDs data very nasty.

mfg zmi


If I do a pg_dump from this potentially "bad" database and then use the output to do a restore to a new DB on another server, aside from having some data corrupted, would we be able to recover from this problem?  If not, what could I do to "fix" the data so the database stops having issues?

Thanks!
Aaron

--
==================================================================
  Aaron Bono
  Aranya Software Technologies, Inc.
  http://www.aranya.com
  http://codeelixir.com
================================================================== ------=_Part_2068_30144702.1203974385690--