From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Daniel Hahler <postgresql@thequod.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #9721: Fatal error on startup: no free slots in PMChildFlags array
Date: Tue, 25 Mar 2014 12:26:06 -0300
Message-ID: <20140325152606.GG9567@eldon.alvh.no-ip.org> (raw)
In-Reply-To: <53319E20.9030006@thequod.de>
References: <20140325115930.17060.24684@wrigleys.postgresql.org>
<13133.1395757616@sss.pgh.pa.us>
<20140325143647.GE9567@eldon.alvh.no-ip.org>
<53319E20.9030006@thequod.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Daniel Hahler wrote:
> On 25.03.2014 15:36, Alvaro Herrera wrote:
> > Here's my guess --- this is a virtualized system that somehow dumped
> > some state to disk to hibernate while the host was being rebooted; and
> > then, when the host was up again, it tried to resurrect the virtual
> > machine and found things to be all inconsistent.
>
> Yes, the container was frozen during reboot:
>
> From the host:
> Mar 25 11:54:48 HN kernel: [ 76.237452] CT: 144: started
> Mar 25 11:55:03 HN kernel: [ 91.201145] CT: 144: restored
>
> OpenVZ uses "suspend" by default to stop containers on host reboots.
> I will change this to "stop" for the PostgreSQL container, but still this seems like something PostgreSQL should handle better.
Of course. We will accept your patch as soon as you discover the bug.
Thanks for the offer.
> FWIW, I have just suspended and started the container manually, and
> PostgreSQL kept running (upgraded to 9.3.4 in the meantime).
>
> Maybe it's a bug with OpenVZ and how it restores some resources after rebooting the host?
Maybe it forgot to restore the shared memory state.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: alvherre@2ndquadrant.com, postgresql@thequod.de, tgl@sss.pgh.pa.us
Subject: Re: BUG #9721: Fatal error on startup: no free slots in PMChildFlags array
In-Reply-To: <20140325152606.GG9567@eldon.alvh.no-ip.org>
References: <20140325115930.17060.24684@wrigleys.postgresql.org> <13133.1395757616@sss.pgh.pa.us> <20140325143647.GE9567@eldon.alvh.no-ip.org> <53319E20.9030006@thequod.de> <20140325152606.GG9567@eldon.alvh.no-ip.org>
* 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