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 1hXDBS-0001rh-Jt for pgsql-general@arkaria.postgresql.org; Sat, 01 Jun 2019 23:13:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hXDBR-0006CN-A6 for pgsql-general@arkaria.postgresql.org; Sat, 01 Jun 2019 23:13:05 +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 1hXDBQ-00069G-Vf for pgsql-general@lists.postgresql.org; Sat, 01 Jun 2019 23:13:05 +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 1hXDBI-00009w-RG for pgsql-general@lists.postgresql.org; Sat, 01 Jun 2019 23:13:04 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4E70C20782; Sat, 1 Jun 2019 19:12:54 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sat, 01 Jun 2019 19:12:54 -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=D 0tEXgLfve7jyUzG2WlDtvTPdSzlimzcvC9pm67sNMU=; b=wCx3k8yIpRW0NoGKV 6AK06tmzTW/yzKUEHcqm/oh/jQFdA6sl9Cv1JBcJY5Zmc7L/3VNZasgJKx69ijFK pdlfj7g5f42VL69eRftLQt4uUeg7peZkaetUeGu81cwB7uAm8/c8FoarbiNX3kt1 KkZk1zmel0g+uq5vSVlrqTy2jUVw5SOx6Ozm1L00CYw3HbDXRE41Q0X/o9bSEbZ1 pQhS6x5xF1WAaXOb3HWSru9tA2UHWB39zGUIzrDFffeLVQg6D+Rtf1yVVvHZoPM9 vRlSlLANiIfoaLQJIzESxs+LGRmOBYLBj/dxmJb0IGZ7+ZRCRqfBbG4g/7eTu6Rw PVOSg== 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=D0tEXgLfve7jyUzG2WlDtvTPdSzlimzcvC9pm67sN MU=; b=IGqtsRKFniQvdkUj+VN8M3ng/e6D5CTD2AnZXlradmh4Q6CHeM3CFH9D/ 5l25iCAtXM2dKXpHB5pS0s6+oT/FCgUcJoZNI8LWoscZVDAJfkt/9Ur6B0x/ukJF 2feQnWSmGprVPoj1TqWEyBzdmF243DQUc5j3JjgVUg9UjPahGY+CYhGE6Ag3HE+5 /YSnTjcMOCfQ5oNm9mbDwubeQoJndvvvjqYq0dvz08zRFT++g7DI+hwbKE5v6SFR 2GQa+f3Vu6DBidiMLe+/Hv7QFJerLO0T7LoQwThE/ueHyXN/Oa+JKY7KkiSksjoW YnLARTVw1V8b+qT+QX77zajJT5AtQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudefgedgudelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuffhomhgrihhnpehpohhsthhgrhgvsh hqlhdrohhrghenucfkphepjedurddvuddvrdduhedtrddvtddvnecurfgrrhgrmhepmhgr ihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuve hluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 8232E380073; Sat, 1 Jun 2019 19:12:53 -0400 (EDT) Subject: Re: psql: FATAL: the database system is starting up To: Tom K Cc: pgsql-general@lists.postgresql.org References: <76851993-4826-f300-85ac-42d8b705a56f@aklaver.com> <43b5c459-6ee4-c8ec-c402-47ea92738c86@aklaver.com> From: Adrian Klaver Message-ID: <1bf8035e-006e-d026-e213-04f5b87cb686@aklaver.com> Date: Sat, 1 Jun 2019 16:12:52 -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 3:56 PM, Tom K wrote: > > > > postgres=# select oid, datname from pg_database ; >   oid  |  datname > -------+----------- >  13806 | postgres >      1 | template1 >  13805 | template0 > (3 rows) > So there are only the system databases available > -bash-4.2$ cd /data/patroni/ > -bash-4.2$ ls -altri > total 144 >  69085037 drwxr-xr-x.  3 root     root        20 Oct 23  2018 .. > 135316997 -rw-------.  1 postgres postgres   206 Oct 29  2018 > backup_label.old > 201708781 drwx------.  2 postgres postgres     6 Oct 29  2018 pg_commit_ts >   1502746 drwx------.  2 postgres postgres     6 Oct 29  2018 pg_dynshmem >  68994449 drwx------.  2 postgres postgres     6 Oct 29  2018 pg_twophase >   1502749 drwx------.  2 postgres postgres     6 Oct 29  2018 pg_snapshots > 201708785 drwx------.  2 postgres postgres     6 Oct 29  2018 pg_serial >   1502747 drwx------.  4 postgres postgres    34 Oct 29  2018 pg_multixact >  67677559 drwx------.  5 postgres postgres    38 Oct 29  2018 base base/ is the directory you need to look in. I'm guessing it is only going to show the oid/ for the three db's above and pgsql_tmp/ For more info on this see: https://www.postgresql.org/docs/10/storage-file-layout.html The below looks like the RH package installed data directory. Also looks like it either has never had initdb run against or the files where removed. I thought you said you had copied in data directories from the other nodes, did I remember correctly? > -bash-4.2$ cd > -bash-4.2$ cd 10 > -bash-4.2$ ls > backups  data > -bash-4.2$ pwd > /var/lib/pgsql/10 > -bash-4.2$ cd data/ > -bash-4.2$ ls -altri > total 0 > 134734937 drwx------. 4 postgres postgres 31 May  8 06:25 .. >    245519 drwx------. 2 postgres postgres  6 May  8 06:25 . > -bash-4.2$ cd .. > -bash-4.2$ pwd > /var/lib/pgsql/10 > -bash-4.2$ cd .. > -bash-4.2$ -- Adrian Klaver adrian.klaver@aklaver.com