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 1i2ViI-0007tX-N2 for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Aug 2019 07:16:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i2ViH-0007X9-9b for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Aug 2019 07:16:21 +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 1i2ViF-0007X2-PG for pgsql-bugs@lists.postgresql.org; Tue, 27 Aug 2019 07:16:21 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i2ViC-0005yb-IC for pgsql-bugs@lists.postgresql.org; Tue, 27 Aug 2019 07:16:19 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 5A6BE758; Tue, 27 Aug 2019 03:16:13 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 27 Aug 2019 03:16:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=sbMjwUaCneEYbcUPFvtJKbTQD8O WNw4zwkiwy+G0ZV4=; b=VzDOCkU4Ghbn81EM/FLaXjQHAZcKqrAcrYu1VDrnvK8 KVdTEybe5PWWol8toOSWGWxqClRqg03DtNIkQXyaa0063UPzZJXVxrwDXl3EXh/i iuZYYPGA+MCkxQSxwd2MR5je6eakb7DiodMICD79TexZDcjXZtR7Lf5jQadhu6D3 ygFH1nzbEv2DK0EYFZHn21o5thl0faC9zcS/mpoV4KxxJnFbKgMygv//efCAHB/H 76MOQ2eMn6Bhe5pMH3M9ds17D0XXSgpoDMUfNUmwuHWDs8Tu4EU983FZYevdR3xF J/HO/69bdFLTWSZOw9XjbxgbDbFFJ9pkixJo0MovkRg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=fm3; bh=sbMjwU aCneEYbcUPFvtJKbTQD8OWNw4zwkiwy+G0ZV4=; b=ObGWheaZziSgCaxpwwMLyd 3EoLLy1jzVJjvZltFOnvaZoKgljC89bY6AgSpNBDa2N8/9ypsaRSJoz6JaLv2VE0 mqHgFzsFwtvABRvz3kNcbfC6bHsMIhzjBe0LDbkUKjDjLum69zc2lzGupxbSDUVA Vf3Nbby5VhnzwxuqlAIarMlgqhSAcimftwQsKz/4bdS1JsD1jhMinXedZgiyBdMf iQv3ZlMfJciGAqLldcDwJU3XebH4cEuAknf9hp+NpVXfF7lPley7kEUdtgoq2uCL cqVLa1wFSr8XD487t+DnGx5q7OyC5jlMvkkfcmbiwOIKZriqTE5hs+eOaKAyCk3Q == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudehhedguddvudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdefhedmnecujfgurhepff fhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghq uhhivghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuffhomhgrihhnpe hpohhsthhgrhgvshhqlhdrohhrghenucfkphepudduuddruddtvddrudektddrudekheen ucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii enucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 3497980060; Tue, 27 Aug 2019 03:16:07 -0400 (EDT) Date: Tue, 27 Aug 2019 16:15:58 +0900 From: Michael Paquier To: maheshetty20@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15979: PG_VERSION , pg_tblspc got deleted automatically & postgres server creased. Message-ID: <20190827071558.GI7422@paquier.xyz> References: <15979-dc92adbf321d43c4@postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cVp8NMj01v+Em8Se" Content-Disposition: inline In-Reply-To: <15979-dc92adbf321d43c4@postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --cVp8NMj01v+Em8Se Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 26, 2019 at 12:33:38PM +0000, PG Bug reporting form wrote: > -bash-4.1$ /usr/pgsql-9.4/bin/postgres -D /var/lib/pgsql/9.4/data < > 2019-08-20 00:13:29.353 CDT >FATAL: "/var/lib/pgsql/9.4/data" is not a > valid data directory < 2019-08-20 00:13:29.353 CDT >DETAIL: File > "/var/lib/pgsql/9.4/data/PG_VERSION" is missing. =20 > There was missing PG_VERSION which was created manually =20 > =20 > -bash-4.1$ postmaster -D /var/lib/pgsql/9.4/data/ < 2019-08-20 00:27:35.2= 75 > CDT >FATAL: could not open directory "pg_tblspc": No such file or direct= ory > -bash-4.1$ =20 > There was missing pg_tblspc which was created manually Those first two problems point out that you may have much more problems than you think, so you should be careful with the way you do things if you have a corrupted cluster and not employ shortcuts you think may work. Here are some guidelines from the wiki: https://wiki.postgresql.org/wiki/Corruption This is hard to qualify as a bug by the way, and 9.4.4 is utterly outdated. You should consider upgrading to a newer version as well as 9.4 is going to be EOL'd by community in a couple of months. -- Michael --cVp8NMj01v+Em8Se Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl1k2K4ACgkQnvQgOdby QH329BAAgjlqBBbdIoF1Lf4+1/TaxvB6HVnpIvJdJPojP3eEnwjsj1PgZI8qiJzE sTa/9scgygdyuvisq+yvvEZF94w37sWfhtnWiE0jPjAXcx+4EqtN48LjxQwgFy0A 7f6wsf68tZFOPqRLeFxjbed3s2VFqvjjJE/SvLSnKyzB+DBLBXlfa4C1vonYBFr6 dix5wKHfaDBUDvzP9R6xUXiaFLXEH1J36XJGTzWauQtsmiF4Qb5Nxe2KJw14lR6i mClfqVwSpSDFESJhf+tilUkZWJuj/tnV3DEPMFPD884e3YIdvvq0X9lla+sYKrqO vUMP99YdrOifObgvj0biFco+i9Ym60fUCc2foFFjw4EJSM3PKfSEjg4fyn2KkoZl +ZTMgAMeHe/70er9oEJ2913ledRtJgDEQ6UTEU27mGlV6qYM3m4JVUzhKUg4GwPj hcz9YmYyx7keHgCxZazBM2mB6uUPeqo1HTdt4K1gSumkM1saSc2nEUFKy9TpC93c OKAbTXXBN0MAeOgNGJl5QOONijWvNeUyleXlxKV3AtjG+mI8LpGiHSHHnegd5Hvu XaS+0NBjAHQAyTG1PIr1UDgSmd+PF0WLIPfK38uXq3PBPasEjA72HZGtBdLFeyNf EQy0NfufGjrj4kr1ab6tvAvvvt/7OsiLPY43EUULoVCDY/cr+ng= =15EU -----END PGP SIGNATURE----- --cVp8NMj01v+Em8Se--