From: Alban Hertroys <haramrae@gmail.com>
To: Sherrylyn Branchaw <sbranchaw@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: What to do when dynamic shared memory control segment is corrupt
Date: Tue, 19 Jun 2018 09:02:23 +0200
Message-ID: <0CA43180-0A86-4E3E-8637-56438A2FE36C@gmail.com> (raw)
In-Reply-To: <CAB_myF4jBABkHXjLSRnMvM5PCFSNhXfYtNqxw0PrdkGZywhxnQ@mail.gmail.com>
References: <CAB_myF4jBABkHXjLSRnMvM5PCFSNhXfYtNqxw0PrdkGZywhxnQ@mail.gmail.com>
> On 18 Jun 2018, at 17:34, Sherrylyn Branchaw <sbranchaw@gmail.com> wrote:
>
> In the other case, the logs recorded
>
> LOG: all server processes terminated; reinitializing
> LOG: dynamic shared memory control segment is corrupt
> LOG: incomplete data in "postmaster.pid": found only 1 newlines while trying to add line 7
>
> In that case, the database did not restart on its own. It was 5 am on Sunday, so the on-call SRE just manually started the database up, and it appears to have been running fine since.
That rings a bell. Some versions of systemd apparently clean up shared memory belonging to a user when it detects the user logs out. ISTR that we had to disable that on our CentOS 7 server to stop crashes from happening.
More details here: https://wiki.postgresql.org/wiki/Systemd
Alban Hertroys
--
If you can't see the forest for the trees,
cut the trees and you'll find there is no forest.
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-general@postgresql.org
Cc: haramrae@gmail.com, sbranchaw@gmail.com
Subject: Re: What to do when dynamic shared memory control segment is corrupt
In-Reply-To: <0CA43180-0A86-4E3E-8637-56438A2FE36C@gmail.com>
References: <CAB_myF4jBABkHXjLSRnMvM5PCFSNhXfYtNqxw0PrdkGZywhxnQ@mail.gmail.com> <0CA43180-0A86-4E3E-8637-56438A2FE36C@gmail.com>
* 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