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 1m07Kz-00066t-RD for pgsql-general@arkaria.postgresql.org; Sun, 04 Jul 2021 18:59:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m07Kx-0003LT-16 for pgsql-general@arkaria.postgresql.org; Sun, 04 Jul 2021 18:59:27 +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 1m07Kw-0003LK-K4 for pgsql-general@lists.postgresql.org; Sun, 04 Jul 2021 18:59:26 +0000 Received: from mx4.wp.pl ([212.77.101.11]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m07Ks-0003Q6-D5 for pgsql-general@lists.postgresql.org; Sun, 04 Jul 2021 18:59:24 +0000 Received: (wp-smtpd smtp.wp.pl 23849 invoked from network); 4 Jul 2021 20:59:18 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1625425158; bh=WVVJOfPdVGBNYgvz8TI2M5YSrL1WdK5OYqa1baxeXW4=; h=Subject:To:From; b=fIZ2uCxKX4NlaJY1LV6g34l9PJqbkVwrZDPswHaACjJGmP30ezEtWnY2E4LX7WaFT hlE7Op9TI2TVxTjmf0RNlVW9FmA4zJKK+jF5ENk/3OeofS+nE3QgauM8endtN31BlR 8OKDlVHAMJv/cwqiFxhm45DYKc+YBrdh0J46PsYs= Received: from afqv86.neoplus.adsl.tpnet.pl (HELO [192.168.1.210]) (laurentp@wp.pl@[178.42.177.86]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 4 Jul 2021 20:59:18 +0200 Subject: Re: Damaged (during upgrade?) table, how to repair? To: pgsql-general@lists.postgresql.org References: <7a242c24-6bc7-2800-a857-6fbe8633382b@wp.pl> <0c827ef91e60470588d5ff4fe4394abb2ec8509d.camel@cybertec.at> <7775fcc7-b41a-394f-3c58-8960b23dee40@wp.pl> <2b2ce173-d445-844c-935d-3531264453ac@aklaver.com> From: "W.P." Message-ID: Disposition-Notification-To: "W.P." Date: Sun, 4 Jul 2021 20:59:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <2b2ce173-d445-844c-935d-3531264453ac@aklaver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-WP-MailID: f3b9901d7d5f4d4fc93506f1e591b390 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000009 [4NOE] List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk W dniu 04.07.2021 o 19:48, Adrian Klaver pisze: > On 7/4/21 9:33 AM, W.P. wrote: >> W dniu 02.07.2021 o 21:05, Adrian Klaver pisze: >>> On 7/2/21 10:18 AM, W.P. wrote: >>>> W dniu 02.07.2021 o 17:16, Adrian Klaver pisze: >>> >>>>> >>>>> So you have backup of the failed machine's disk stored somewhere >>>>> else? >>>> >>>> >>>> No, I have disc from this machine, looks not damaged (random >>>> files). Only problem that OS does not boot beyond "emergency mode". >>> >>> I would say your second sentence contradicts your first. >> >> Nope ;). There was 1 500GB disc, with Fedora24 and Postgres 9.5. Then >> copied "sector by sector" (and resized partitions, volumes, fs) to >> 1TB one. This was my "working" disc. >> > > Just dawned on me, why aren't you working directly from the 1TB disk? > > It has the presumably intact files from before the OS/Postgres > upgrades and the power experiment. > "Only problem that OS does not boot beyond "emergency mode"."... But I made some progress: - booted up into single user, bring up Ethernet, now CAN start Postgres but only using pg_ctl directly, does NOT work using systemctl... So problem is (possibly) with systemd. Dumped base, pg_dump worked fine, dump gzipped is < 600MB, so I assume that somehow Postgres recovered from my (stupid) move... BTW, pls respond only to list. Laurent