X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id AA7E75372E for ; Fri, 15 Apr 2005 22:29:39 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 86652-07 for ; Sat, 16 Apr 2005 01:29:31 +0000 (GMT) Received: from mail.travelamericas.com (unknown [206.130.134.147]) by svr1.postgresql.org (Postfix) with SMTP id C434D5294A for ; Fri, 15 Apr 2005 22:29:29 -0300 (ADT) Received: (qmail 3281 invoked from network); 16 Apr 2005 01:29:33 -0000 Received: from unknown (HELO ?10.0.0.253?) (10.0.0.253) by verkiel.travelamericas.com with SMTP; 16 Apr 2005 01:29:33 -0000 Message-ID: <42606A69.9010102@travelamericas.com> Date: Fri, 15 Apr 2005 18:29:13 -0700 From: Chris Travers User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ian Westmacott , pgsql-admin@postgresql.org Subject: Re: database corruption References: <1113598532.8214.175.camel@spectre.intellivid.com> In-Reply-To: <1113598532.8214.175.camel@spectre.intellivid.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.037 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200504/211 X-Sequence-Number: 17224 Hi Ian; I think it is important to figure out why this is happening. I would not want to run any production databases on systems that were failing like this. I am trying to figure out what are the likely causes of the errors... 1) Any other computers suffer random application crashes, power downs, etc. in your building? 2) I take it there are no Raid controllers involved? 3) RAM is non-ECC? 4) Are the systems on UPS's? If I could make a wild (and probably wrong) guess, I would wonder if something external to the system (like electrical supply) was introducing glitches into memory, causing bad data to be written. I am only mentioning it because I have implicated electrical supply in other cases where rare computer failurres weer affecting many systems... Ian Westmacott wrote: >For several weeks now we have been experiencing fairly >severe database corruption upon clean reboot. It is very >repeatable, and the corruption is of the following forms: > >ERROR: could not access status of transaction foo >DETAIL: could not open file "bar": No such file or directory > >ERROR: invalid page header in block foo of relation "bar" > >ERROR: uninitialized page in block foo of relation "bar" > > >At first, we believed this was related to XFS, and have >been pursuing investigations along those lines. However, >we have now experienced the exact same problem with JFS. > >Here are some details: > >- Postgres 7.4.2 >- 2.6.6 kernel.org kernel >- dedicated database partition >- repeatable with XFS and JFS (have not seen on ext3) >- repeatable with and without Linux software RAID 0 >- repeatable with IDE and SATA >- repeatable with and without fsync, and with fdatasync >- repeatable on multiple systems > > >I have two questions: > >- any known reason why this might be occurring? (we must > have something wrong, for this high rate of severe > error). > >- if I don't care about losing data, and am not interested > in trying to recover anything, how can I arrange for > Postgres to proceed normally? I know about > zero_damaged_pages, but this doesn't help with missing > transaction files and such. Is there any way to get > Postgres to chuck anything bad and proceed? > >Thanks, > > --Ian > > > >---------------------------(end of broadcast)--------------------------- >TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) > > > >