pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Антон Степаненко <zlobnynigga@yandex.ru>
To: Kevin Grittner <kevin.grittner@wicourts.gov>
Cc: pgsql-bugs@postgresql.org
Subject: Re: could not read block XXXXX in file "base/YYYYY/ZZZZZZ": read only 160 of 8192 bytes
Date: Fri, 17 Jun 2011 17:51:00 +0400
Message-ID: <438511308318660@web144.yandex.ru> (raw)
In-Reply-To: <4DFA2130020000250003E76A@gw.wicourts.gov>
References: <1208551308255001@web137.yandex.ru>
	<4DFA2130020000250003E76A@gw.wicourts.gov>



17.06.2011, 00:28, "Kevin Grittner" <Kevin.Grittner@wicourts.gov>:
> ***** **********<zlobnynigga@yandex.ru>; wrote:
>
>>  [4-1] 2011-06-16 17:40:27 UTC LOG:  startup process (PID 15292)
>>  was terminated by signal 7: Bus error
>>  Signal 7 means  hardware problems. But all 10 replicas crashed
>>  within 10 minutes, say from 13:35 to 13:45.
>>  One important thing - all replicas and master are running on
>>  openvz
>
> Were the PostgreSQL clusters sharing any hardware?
>
>>  there is no way to reject virtualization (it is a long story =))
>>
>>  Please, I do not want to discuss my decision to set buffers to
>>  12Gb and postgresql optimization at all. I just want to undestand
>>  why I'm getting such errors.
>
> On the face of it, the most likely cause would seem to be hardware
> or the virtual environment.  Without knowing more about the exact
> messages on the replicas and how they compared to each other and the
> master it's hard to know whether any of the replica failures were
> from passing corrupted data from the master to the replicas, versus
> having a common hardware/vm flaw.
>
> -Kevin

I noticed that crash takes place when shared buffers are almost full, i.e. SELECT SUM(size)  FROM adm.buffercache() returns 11670 at about one minute before crash. Furthermore, last night I set buffers  to 11Gb, at it is working, no crash, all buffers are used (11120).
I still do not believe that this is hardware problem. Each replica and master runs on dedicated server, no hardware is shared. There is only postgresql on each server, no any other software(just crond, zabbix, atop).
Actually openvz is used only for portability(easily add new replicas or migrate one of them to new server).
Messages on replicas are all the same: "could not read block", then "signal 7". I copypasted error log as is, that is all I know.
Master did not crash, I think because it processes less SELECT queries, therefore his buffers do not reach limit.



view thread (13+ messages)  latest in thread

Message-ID: <438511308318660@web144.yandex.ru>
Permalink:  ../438511308318660@web144.yandex.ru/
Also on:    postgresql.org/message-id/438511308318660@web144.yandex.ru

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: zlobnynigga@yandex.ru, kevin.grittner@wicourts.gov
  Subject: Re: could not read block XXXXX in file "base/YYYYY/ZZZZZZ": read only 160 of 8192 bytes
  In-Reply-To: <438511308318660@web144.yandex.ru>
  References: <1208551308255001@web137.yandex.ru> <4DFA2130020000250003E76A@gw.wicourts.gov> <438511308318660@web144.yandex.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox