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 1m07pL-0007Fp-Lw for pgsql-general@arkaria.postgresql.org; Sun, 04 Jul 2021 19:30:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m07pJ-00082d-Tp for pgsql-general@arkaria.postgresql.org; Sun, 04 Jul 2021 19:30:49 +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 1m07pJ-00082V-L6 for pgsql-general@lists.postgresql.org; Sun, 04 Jul 2021 19:30:49 +0000 Received: from mx4.wp.pl ([212.77.101.12]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m07pH-0005st-Cp for pgsql-general@lists.postgresql.org; Sun, 04 Jul 2021 19:30:48 +0000 Received: (wp-smtpd smtp.wp.pl 22930 invoked from network); 4 Jul 2021 21:30:44 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1625427044; bh=IYaOpysOZugvkD3FMHqJ4918Y591vVM9tIBoxvDq4NQ=; h=Subject:To:From; b=xLKkSbDLK9ju2x2sg3DABkdE2+cfYwmJv2wvqvNf9LqcN/IRgC2STQmIijBmOt18i cA9qY4JfvYJcS9mLzvGNIy+CMwmHpU5yntJObaNJwP2T3uTSXiR6Vr9du1OA2WgmwS TNB6Pq3V5xVQLdwT9zpLBqvKI+A9pBJrdV1+G/Dg= 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 21:30:44 +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: <04e67ade-34df-c91b-4680-8236d671876a@wp.pl> Disposition-Notification-To: "W.P." Date: Sun, 4 Jul 2021 21:30:44 +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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-WP-MailID: 492944080c90ba217c8ef081ed71b9ee X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000009 [YPNE] List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk W dniu 04.07.2021 o 21:10, Adrian Klaver pisze: > On 7/4/21 11:59 AM, W.P. wrote: >> 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"."... > > I thought the 1TB disk was copied over before you did any of the > upgrades and experimentation? > >> >> 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... > > Dumped from what Postgres instance 9.5 or 11? > 9.5, the only one on 1TB. >> >> >> BTW, pls respond only to list. > > Afraid that will be hard to achieve as I my muscle memory is hard > wired to hit Reply All. If you want to eliminate duplicate copies got > to here: > > https://lists.postgresql.org/manage/ > > and check: > > Don't receive an extra copy of mails when listed in To or CC fields > > and then: > > Save THX :) > >> >> >> Laurent >> >> >> > >