Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 1E51EB5DBEE for ; Fri, 17 Jun 2011 10:51:09 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 44066-01 for ; Fri, 17 Jun 2011 13:51:02 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from forward13.mail.yandex.net (forward13.mail.yandex.net [95.108.130.120]) by mail.postgresql.org (Postfix) with ESMTP id 95A3CB5DBCB for ; Fri, 17 Jun 2011 10:51:02 -0300 (ADT) Received: from web144.yandex.ru (web144.yandex.ru [95.108.131.159]) by forward13.mail.yandex.net (Yandex) with ESMTP id 71BD6142696; Fri, 17 Jun 2011 17:51:01 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1308318661; bh=/bquwyqYKl4MMzfCM114nbfVn5Mf/Cx8rsPgtFdBaqA=; h=From:To:Cc:In-Reply-To:References:Subject:MIME-Version:Message-Id: Date:Content-Transfer-Encoding:Content-Type; b=Vgar122rRPyX1x3LrVuG6KXwj1vcLVX2vylZRJzax7n9Y7er5VWXfI9JDrAPfhyYm p/y1zYnz0PTRdiltexpObq185PR5jDzpQHtxIKa1yWhlYBkhwnA5iKdkk6CKshqGbl DWO4RaOkxpZnlkUkAKe58j4pZ5ELoSJ9Wxne0E1I= Received: from localhost (localhost.localdomain [127.0.0.1]) by web144.yandex.ru (Yandex) with ESMTP id 5CB633858037; Fri, 17 Jun 2011 17:51:01 +0400 (MSD) X-Yandex-Spam: 1 Received: from dhcp174-219-red.yandex.net (dhcp174-219-red.yandex.net [95.108.174.219]) by web144.yandex.ru with HTTP; Fri, 17 Jun 2011 17:51:00 +0400 From: =?koi8-r?B?4c7Uz84g89TF0MHOxc7Lzw==?= To: Kevin Grittner Cc: pgsql-bugs@postgresql.org In-Reply-To: <4DFA2130020000250003E76A@gw.wicourts.gov> References: <1208551308255001@web137.yandex.ru> <4DFA2130020000250003E76A@gw.wicourts.gov> Subject: Re: could not read block XXXXX in file "base/YYYYY/ZZZZZZ": read only 160 of 8192 bytes MIME-Version: 1.0 Message-Id: <438511308318660@web144.yandex.ru> Date: Fri, 17 Jun 2011 17:51:00 +0400 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=koi8-r X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.372 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, FSL_RU_URL=2.271 X-Spam-Level: X-Archive-Number: 201106/145 X-Sequence-Number: 30524 17.06.2011, 00:28, "Kevin Grittner" : > ***** **********; 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.