Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jwcwb-00086Q-0t for pgsql-general@arkaria.postgresql.org; Sat, 18 Jul 2020 02:51:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jwcwZ-0006lu-LQ for pgsql-general@arkaria.postgresql.org; Sat, 18 Jul 2020 02:51:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jwcwZ-0006ln-DY for pgsql-general@lists.postgresql.org; Sat, 18 Jul 2020 02:51:19 +0000 Received: from mta13.5.doruk.net.tr ([81.21.172.169] helo=mta13.doruk.net.tr) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jwcwS-0006AJ-EO for pgsql-general@lists.postgresql.org; Sat, 18 Jul 2020 02:51:18 +0000 Received: from cmail19.webkontrol.doruk.net.tr ([212.58.6.99]:54572) by mta13.doruk.net.tr with esmtp (Exim 4.90_1) (envelope-from ) id 1jwcwO-0006gp-Vx for pgsql-general@lists.postgresql.org; Sat, 18 Jul 2020 05:51:08 +0300 Received: from DESKTOPERTAN ([31.206.45.188]) by cmail19.webkontrol.doruk.net.tr (IceWarp 11.1.2.0) with ASMTP (SSL) id 202007180551082054 for ; Sat, 18 Jul 2020 05:51:08 +0300 From: To: Subject: Errors after cloning OS to new disk under Hyper-V Date: Sat, 18 Jul 2020 05:51:07 +0300 Message-ID: <000901d65cae$49ca2de0$dd5e89a0$@1nar.com.tr> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdZcNAYOJCI534XpQZiarLkbDD5Sdw== Content-Language: tr List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello, This is PostgreSQL v10.10 64Bit, running on Windows 10 64Bit. One user, by himself, without asking for help, cloned his OS from one = disk to Hyper-V disk. Old disk was not accessed, OS was shutdown while = he is doing the cloning. He used some kind of tool that I do not know = for that purpose. New server is running under Hyper-V. Once he saw Hyper-V server is up and running he deleted old disk for = good. Unfortunately, new system has more than brief problems. He has no = backup of the database cluster or particular database(s) in it. I see in log following errors: 2020-07-16 12:28:17.598 +03 [3964] HATA (ERROR): "pg_opclass_oid_index" = indeksinde 0 blo=C4=9Funda beklenmeyen bo=C5=9F sayfa 2020-07-16 12:28:17.598 +03 [3964] =C4=B0PUCU:L=C3=BCtfen onu = REINDEX'leyin. 2020-07-16 12:29:02.065 +03 [2744] LOG: istemciden veri = al=C4=B1namam=C4=B1=C5=9Ft=C4=B1r: unrecognized winsock error 10054 2020-07-16 12:29:17.699 +03 [3748] HATA (ERROR): "pg_opclass_oid_index" = indeksinde 0 blo=C4=9Funda beklenmeyen bo=C5=9F sayfa 2020-07-16 12:29:17.699 +03 [3748] =C4=B0PUCU:L=C3=BCtfen onu = REINDEX'leyin. 2020-07-16 12:30:17.805 +03 [1456] HATA (ERROR): "pg_opclass_oid_index" = indeksinde 0 blo=C4=9Funda beklenmeyen bo=C5=9F sayfa 2020-07-16 12:30:17.805 +03 [1456] =C4=B0PUCU:L=C3=BCtfen onu = REINDEX'leyin. 2020-07-16 12:30:47.363 +03 [7460] =C3=96L=C3=9CMC=C3=9CL (FATAL): = base/16394/2684 nesnesinin 0 blo=C4=9Funda ge=C3=A7ersiz sayfa=20 2020-07-16 12:31:04.009 +03 [1240] =C3=96L=C3=9CMC=C3=9CL (FATAL): = base/16394/2684 nesnesinin 0 blo=C4=9Funda ge=C3=A7ersiz sayfa=20 2020-07-16 12:31:11.261 +03 [2396] =C3=96L=C3=9CMC=C3=9CL (FATAL): = base/16394/2684 nesnesinin 0 blo=C4=9Funda ge=C3=A7ersiz sayfa Basic translation to English is: ERROR: "pg_opclass_oid_index" index 0 block unexpected empty page HINT:Please REINDEX it. LOG: cannot read fata from client: unrecognized winsock error 10054 FATAL: base/16394/2684 object 0 block invalid page When I try to connect server on command line using psql I get same = error: PS C:\Program Files\PostgreSQL\10 - Kopya\bin> .\psql.exe -U postgres psql: =C3=96L=C3=9CMC=C3=9CL (FATAL): "pg_opclass_oid_index" indeksinde = 0 blo=C4=9Funda beklenmeyen bo=C5=9F sayfa =C4=B0PUCU: L=C3=BCtfen onu REINDEX'leyin. PS C:\Program Files\PostgreSQL\10 - Kopya\bin> .\psql.exe -U postgres -h = localhost psql: =C3=96L=C3=9CMC=C3=9CL (FATAL): "pg_opclass_oid_index" indeksinde = 0 blo=C4=9Funda beklenmeyen bo=C5=9F sayfa =C4=B0PUCU: L=C3=BCtfen onu REINDEX'leyin. I am told that some databases in cluster can be accessed, not all. They = are accessed from an application and not by admin tools. I do not know = how many databases exists in the cluster or their names. I have tried to dump everything and that also failed: PS C:\logs> & 'C:\Program Files\PostgreSQL\10 - = Kopya\bin\pg_dumpall.exe' -f dump.bak -U postgres pg_dump: [ar=C5=9Fivleyici (db)] sorgu ba=C5=9Far=C4=B1s=C4=B1z oldu: = HATA (ERROR): base/16394/2684 nesnesinin 0 blo=C4=9Funda ge=C3=A7ersiz = sayfa pg_dump: [ar=C5=9Fivleyici (db)] sorgu =C5=9Fu idi: SELECT = pg_catalog.set_config('search_path', '', false) pg_dumpall: pg_dump "ZEntegre" veritaban=C4=B1nda = ba=C5=9Far=C4=B1s=C4=B1z oldu, =C3=A7=C4=B1k=C4=B1l=C4=B1yor I wonder if there is anything that can be done here. Thanks & Regards, Ertan