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 1jwd0t-0008Fk-25 for pgsql-general@arkaria.postgresql.org; Sat, 18 Jul 2020 02:55:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jwd0s-0002yM-1e for pgsql-general@arkaria.postgresql.org; Sat, 18 Jul 2020 02:55:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jwd0r-0002yF-O4 for pgsql-general@lists.postgresql.org; Sat, 18 Jul 2020 02:55:45 +0000 Received: from mail-oi1-x242.google.com ([2607:f8b0:4864:20::242]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jwd0m-0001rY-QU for pgsql-general@lists.postgresql.org; Sat, 18 Jul 2020 02:55:44 +0000 Received: by mail-oi1-x242.google.com with SMTP id t4so9643955oij.9 for ; Fri, 17 Jul 2020 19:55:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=+xQPgUCgxybLb+P3F4ogBbQIv0pPVZmdCLBnsRnNfqI=; b=lTbQxeFKSrDSmfpaYt/SNRGHn1ig/rCNj2GHciaXdD5gCSIBWQcOEjpgRbQ3YyQ56V e8iUF09EmlMOiZjcqSfSn/emJlLsCSLTGJYoFwN2rh9YjWGZHH2fPx2naZxvXYZKrWrr rpHRSgdAWen2mUPn3zuuXhUT0+oZB5Z+YcZaCbF4Hix7FV7AHpMHb5VUOPYtLYygaqoX ICCcklzOFrSG+RhvzehXbX5QE1GekEbPvcPOpF6xkQgJjyNHQa8vUlcCbQ7agJG7JRAU FIw5BR/JAsDKqwb2NUfJwhv3h0CSYZgkX5EFomi8Hbs/YqWrp3c1rHh2xLsM9D+WJ511 /KxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+xQPgUCgxybLb+P3F4ogBbQIv0pPVZmdCLBnsRnNfqI=; b=Q0Svwap6gA/2NlgWPbfkpjFeZPBP4tuDdUHA00aAqbyhSgpvaVu/barATtFn6vhGW7 wPkyHnhzg0EEh3dmjtcnYPWBLORc2K1ZME4LNWxwHCiVIj1kdbxp1ovdsic3QKznJ+8r 7AUCrxDdhOZaJyOHfQpeTlKdwBZ6UrtTLF2qXypU0YJq3eafi52hFo3dcxDxQssSapF0 mfvbv2atCNx52HwVgRrMjyeKlx+ooR4mSKVtvKV1z5wIiB2Fq8UyrQUhVcaCf/j9QhK7 YZhFlUwels4bs9HmmhpKZ9eYv5tk5TfCWsvsD5K1cgt9kr2ffj4vqwd0yUdtraK8jO2b P/qA== X-Gm-Message-State: AOAM5332iREJiqHuK27KZbDxFOIGD0SST9Ui+99hNNE+0aOhta46/5AH DCdmHhmWS975gAy1eY2PMQMMU4yy11Q= X-Google-Smtp-Source: ABdhPJzBpJdcGvHHVGV7MuJOXYiWnAKmnZDS8ikUfcXC39aKJ92z/lZSwa0lM9n3lDhEr1rTA6+TyQ== X-Received: by 2002:aca:3146:: with SMTP id x67mr10143726oix.114.1595040939745; Fri, 17 Jul 2020 19:55:39 -0700 (PDT) Received: from ?IPv6:2601:681:5500:dde0:4460:1217:4d3:aa5d? ([2601:681:5500:dde0:4460:1217:4d3:aa5d]) by smtp.gmail.com with ESMTPSA id i5sm2454633ool.1.2020.07.17.19.55.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Jul 2020 19:55:39 -0700 (PDT) Subject: Re: Errors after cloning OS to new disk under Hyper-V To: pgsql-general@lists.postgresql.org References: <000901d65cae$49ca2de0$dd5e89a0$@1nar.com.tr> From: Rob Sargent Message-ID: <7935483b-8baa-fb7a-b6eb-58402bacb5f9@gmail.com> Date: Fri, 17 Jul 2020 20:55:38 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <000901d65cae$49ca2de0$dd5e89a0$@1nar.com.tr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 7/17/20 8:51 PM, ertan.kucukoglu@1nar.com.tr wrote: > 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ğunda beklenmeyen boş sayfa > 2020-07-16 12:28:17.598 +03 [3964] İPUCU:Lütfen onu REINDEX'leyin. > 2020-07-16 12:29:02.065 +03 [2744] LOG: istemciden veri alınamamıştır: unrecognized winsock error 10054 > 2020-07-16 12:29:17.699 +03 [3748] HATA (ERROR): "pg_opclass_oid_index" indeksinde 0 bloğunda beklenmeyen boş sayfa > 2020-07-16 12:29:17.699 +03 [3748] İPUCU:Lütfen onu REINDEX'leyin. > 2020-07-16 12:30:17.805 +03 [1456] HATA (ERROR): "pg_opclass_oid_index" indeksinde 0 bloğunda beklenmeyen boş sayfa > 2020-07-16 12:30:17.805 +03 [1456] İPUCU:Lütfen onu REINDEX'leyin. > 2020-07-16 12:30:47.363 +03 [7460] ÖLÜMCÜL (FATAL): base/16394/2684 nesnesinin 0 bloğunda geçersiz sayfa > 2020-07-16 12:31:04.009 +03 [1240] ÖLÜMCÜL (FATAL): base/16394/2684 nesnesinin 0 bloğunda geçersiz sayfa > 2020-07-16 12:31:11.261 +03 [2396] ÖLÜMCÜL (FATAL): base/16394/2684 nesnesinin 0 bloğunda geçersiz 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: ÖLÜMCÜL (FATAL): "pg_opclass_oid_index" indeksinde 0 bloğunda beklenmeyen boş sayfa > İPUCU: Lütfen onu REINDEX'leyin. > > PS C:\Program Files\PostgreSQL\10 - Kopya\bin> .\psql.exe -U postgres -h localhost > psql: ÖLÜMCÜL (FATAL): "pg_opclass_oid_index" indeksinde 0 bloğunda beklenmeyen boş sayfa > İPUCU: Lütfen 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şivleyici (db)] sorgu başarısız oldu: HATA (ERROR): base/16394/2684 nesnesinin 0 bloğunda geçersiz sayfa > pg_dump: [arşivleyici (db)] sorgu şu idi: SELECT pg_catalog.set_config('search_path', '', false) > pg_dumpall: pg_dump "ZEntegre" veritabanında başarısız oldu, çıkılıyor > > I wonder if there is anything that can be done here. > > Thanks & Regards, > Ertan > > > Have you tried to REINDEX as suggested?