Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hXEUO-0005RW-GQ for pgsql-general@arkaria.postgresql.org; Sun, 02 Jun 2019 00:36:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hXEUN-0006H1-5f for pgsql-general@arkaria.postgresql.org; Sun, 02 Jun 2019 00:36:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hXEUL-00063I-E8 for pgsql-general@lists.postgresql.org; Sun, 02 Jun 2019 00:36:42 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hXEUH-00025g-3c for pgsql-general@lists.postgresql.org; Sun, 02 Jun 2019 00:36:41 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 416CD20319; Sat, 1 Jun 2019 20:36:35 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sat, 01 Jun 2019 20:36:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=F RVLtDgaLMv3fdzkDIIweuG10WY4wL4T1iRH8qd/8JM=; b=D9NZeHDWyvr2uIwx5 f+S46YerDKqHjdKsUgLCiI0VyJLzg8BfpUUw6YBqGTPbV1OjZJ8gCI7GPpBU5+UT Xg4QOhW5WvALx/MsXVDh0A76AwUFMPKbq0YWe5yR+UZJhYnZhIq1nXcWJraeQNym wcHoZtnHMsBcjsKA5AH1tUu2FaXEoYmkX0Hfp+ng8FlhtG+gpDANY+1FSExmk9QW 0Ly8xciyp5hd2+OeGvMNM1TmO2Vwx+ST6QbCMVCltXOmw5M0I5OlXw3rPuHRWVyx 9//i+uDu2JZXec4qpUWgxDU2spdiK+H+Ks5cUo6x5geLgVrhd2PaXQ/41jd7L0R7 hzx9g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=FRVLtDgaLMv3fdzkDIIweuG10WY4wL4T1iRH8qd/8 JM=; b=xAzra/i/PHLmFeOfdyKT/hLoaObAMmpxRE8n8TWz67SRs239LfL0fjcjI F2CpDzzliLW66wc5+/b0dzTluqlrrn8Q1vYmY7qAmYOoAFHebWjSGS+rbhOrx1u7 AtstCsUy34WH4kxt9NLx+P/qa7deMv9XN/B56ZKjwMK2YQXSXK7MQMEhsqhxD+Qj au3LUuDr9Csv4/nx7aIKLhy3qRKgqf6ruzHGj49E+5CcxKhDU2k2OPY+7HvCvqaR maI7Tyyyy+x07rPW3dMVsSOLMMhJwD40hbjdPJ1z4Hlo1P9I4jJQkc53nRd5RszN pEg9GPYr7AJx4+xfkeGZys8FWMVVA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudefgedgfeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuffhomhgrihhnpeduledvrdduieekrd dtrdduvdegnecukfhppeejuddrvdduvddrudehtddrvddtvdenucfrrghrrghmpehmrghi lhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlh hushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 7E9AB380084; Sat, 1 Jun 2019 20:36:34 -0400 (EDT) Subject: Re: psql: FATAL: the database system is starting up To: Tom K Cc: pgsql-general@lists.postgresql.org References: <1bf8035e-006e-d026-e213-04f5b87cb686@aklaver.com> <6e09cc96-ecc1-be79-fda7-694fc91f6986@aklaver.com> From: Adrian Klaver Message-ID: <2a8309a5-df17-cb8b-840c-278f2d0ac422@aklaver.com> Date: Sat, 1 Jun 2019 17:36:33 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 6/1/19 5:21 PM, Tom K wrote: > > > On Sat, Jun 1, 2019 at 7:34 PM Adrian Klaver > wrote: > > On 6/1/19 4:22 PM, Tom K wrote: > > > > > > > > > Looks like this crash was far more catastrophic then I thought. > By the > > looks of things, thinking on psql02 would be my best bet. > > > > The more I look at it the more I think the replication was not doing > what you thought it was doing. That psql02 was the primary and that > psql01 and psql03 where out of sync and/or defunct standbys. > > > Now that I look at the files myself, that's the conclusion I was coming > to myself.  Sample config: The below would be for someone that uses and understands Patroni. That would not be me:) > > [root@psql02 base]# cat /etc/patroni.yml > scope: postgres > namespace: /db/ > name: postgresql1 > > restapi: >     listen: 192.168.0.124:8008 >     connect_address: 192.168.0.124:8008 > > Or perhaps when the system crashed, the filesystem check simply moved > the folders out due to corruption. That would leave the cluster in an inconsistent state and you would not have been able to start the one you got going. -- Adrian Klaver adrian.klaver@aklaver.com