Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVAf0-0003Cz-EX for pgsql-general@arkaria.postgresql.org; Tue, 19 Jun 2018 07:02:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fVAey-00052s-Nd for pgsql-general@arkaria.postgresql.org; Tue, 19 Jun 2018 07:02:36 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVAey-00052i-5k for pgsql-general@lists.postgresql.org; Tue, 19 Jun 2018 07:02:36 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fVAeq-0001YD-JR for pgsql-general@postgresql.org; Tue, 19 Jun 2018 07:02:34 +0000 Received: by mail-wm0-x243.google.com with SMTP id n5-v6so19857670wmc.5 for ; Tue, 19 Jun 2018 00:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=WqT+BN/ZuVfdPukWPCVzeiqL6ucbxOtHC5P93K+RU54=; b=eT17lep3lBADZOdW9fjNdn52ivFP5Jt99BZepVjdIq3aovPffU8+rMsleidSNCx0A8 lL1vdLBUUqR8GK/PUAaXoaKp1Jpt2KkhOsiosaCV4Jx4r2kUsEPqroReRwDb64V0Yq+9 TmJ/fvGK1sp9KilXa92gQs6ZADVhnETnPT4aqZhxXw+dEfCHz+zClD8hNxxSKmIse15H CqVQQsxKb9EZSrHELHMi7CxjT6HwrJyD/XTbHUCZPki9nt5BMXbL6Cx/KmEPoHGBPWwj fbo7kiKRxRbQGkrV3qnxciWpfCjFdiNPT+BVHwDztspV9ohk5MGCXnAHRaqV55Awc5ZE VAbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=WqT+BN/ZuVfdPukWPCVzeiqL6ucbxOtHC5P93K+RU54=; b=j4x0b9CANmFQyVVTzzR4ZEFRgvw0MmaY9yeLmVjejuGlfyLaBooE22UGA4viYvfxR5 tznIsa9e6l7+RTY8BBA673pI9CjHiYzDR/bVfaMXFFiri1E3FxxTmANq+avevTtYL+jX NoIvO8zAtVqChxbA36OaAjDUfEHC0BLxRazdd1ohq3efZ0qGCX4t8b8VyHqZqnw4nkCg RDMMSVgWR2sLag010nCZD6hArWzfMF915xNwpRoz9Lhbzkv4y8x0t6+jcFtBs42Nt2Qg zhcfdIFD6Qpxv0C2m1oAbE16LoTys6u5dTxAWwLpnQmIpRwpulJjciF9H5muS1EP/oIb 0q3w== X-Gm-Message-State: APt69E1oSCA8F91bOHyIP8l+/TqenHTL3u4VtnAa+ch0Z/+Fd6elpcC9 NklAN08i69Ey2zJbpx+Mzvs= X-Google-Smtp-Source: ADUXVKJnBU6c42U1ZfOcgcxfOVAGwPlXcVEo8pWUo4bkN7wtPFP/Y6c4/CYAv3yp5RIJyZbgr0B/bg== X-Received: by 2002:a50:ec19:: with SMTP id g25-v6mr13565390edr.242.1529391746101; Tue, 19 Jun 2018 00:02:26 -0700 (PDT) Received: from hollewijn.internal (84-245-13-9.dsl.cambrium.nl. [84.245.13.9]) by smtp.gmail.com with ESMTPSA id m12-v6sm11357149edd.86.2018.06.19.00.02.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jun 2018 00:02:25 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\)) Subject: Re: What to do when dynamic shared memory control segment is corrupt From: Alban Hertroys In-Reply-To: Date: Tue, 19 Jun 2018 09:02:23 +0200 Cc: pgsql-general@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <0CA43180-0A86-4E3E-8637-56438A2FE36C@gmail.com> References: To: Sherrylyn Branchaw X-Mailer: Apple Mail (2.3445.8.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On 18 Jun 2018, at 17:34, Sherrylyn Branchaw = wrote: >=20 > In the other case, the logs recorded >=20 > 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 >=20 > 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.