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 1m07WF-0006XJ-9i for pgsql-general@arkaria.postgresql.org; Sun, 04 Jul 2021 19:11:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m07WD-0007bH-AV for pgsql-general@arkaria.postgresql.org; Sun, 04 Jul 2021 19:11:05 +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 1m07WB-0007b3-TI for pgsql-general@lists.postgresql.org; Sun, 04 Jul 2021 19:11:05 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m07W7-0005kZ-Qk for pgsql-general@lists.postgresql.org; Sun, 04 Jul 2021 19:11:02 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 22B6D5C00B1 for ; Sun, 4 Jul 2021 15:10:58 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sun, 04 Jul 2021 15:10:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=y bL55qfp7/+zifGccc1Y6jj18aKd65PAu4349gaaSLc=; b=Q93CkLNCiEQCUmZg7 Wral169E48mdzn9hSlnhpQdy/4SPTwT5YU37DWzYr/I8HbxYJ5w3dukoX4LmLdi9 3DRr+VLkuhyHJkglS5c3ODD1rjArfqGvaYMHJ7vVTZ/Y/kRMSWl/ayC/82uu0q4N RaPuX57UBEu+2hjY+s2KP13TogP3TXiqqQxdUK+lj7B+Xru8cO3dM6smO5fMcQu9 7bpvD5Fpd0kCfPhYh7r8g2JID/5XIjhWK/8QaTMaEKOiicI2XR2Cw5e7MOHrWHTx fv4gxBV6zSxS9dTUy7AnowUzGSGHIQh+lqJPklI4yWduWoXleLTKemDlJTrSmuZh KGJBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding: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=ybL55qfp7/+zifGccc1Y6jj18aKd65PAu4349gaaS Lc=; b=pJ3bSyqBGKz45fHI2qEeDGj1etUWLnDz2dkHGEc1BatKVTNHo0pr9qLDJ RETfanb1/K8a8+i5y80D6H6m49twDc2dqgMhNTfZghPGNdnw2klHoEghpTAu5EqC Tcqe4H13Z6+5VSr0bLIgJWwBqpJrYILuKCG+cmXbMat18+yL9cH1J4IIcWirHMLb PhP1DPH1BDOZzadQWWD3S6GihErhxYhj40LI3tP4ABEwWvGN2+JI2NZe6WfLfZbN YGToBNATixcRr+XdvY6acl8dz/j1EUNqXGB0r7OjB9u/kocCuPWe712ZQxSVKvOj UIglC/4YWeo//jQIRsQ0CitzwRt4A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeejvddgudefvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesth ekredttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeduudefje etveffhefgudehtdfhvdetkeeiueehfeevveduteekleeuheegudehhfenucffohhmrghi nhepphhoshhtghhrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdr tghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 4 Jul 2021 15:10:57 -0400 (EDT) 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: Adrian Klaver Message-ID: Date: Sun, 4 Jul 2021 12:10:56 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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? > > > 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 > > > Laurent > > > -- Adrian Klaver adrian.klaver@aklaver.com