From: W.P. <laurentp@wp.pl>
To: pgsql-general@lists.postgresql.org
Subject: Re: Damaged (during upgrade?) table, how to repair?
Date: Sun, 4 Jul 2021 21:30:44 +0200
Message-ID: <04e67ade-34df-c91b-4680-8236d671876a@wp.pl> (raw)
In-Reply-To: <b20dacdb-67dd-5181-361e-3f28900ffdb2@aklaver.com>
References: <7a242c24-6bc7-2800-a857-6fbe8633382b@wp.pl>
<0c827ef91e60470588d5ff4fe4394abb2ec8509d.camel@cybertec.at>
<7775fcc7-b41a-394f-3c58-8960b23dee40@wp.pl>
<e8399909-85db-af68-3bd3-febdbc4bfd72@aklaver.com>
<e7f5cf4f-0150-f870-92c4-c2aa193be95e@wp.pl>
<fddafac2-f811-4c31-76af-f8f04e014d18@aklaver.com>
<cd686a45-8a27-a1a0-da79-b2fec00d6d9b@wp.pl>
<a0cc123d-c673-d909-ac90-3d6ac1d9842b@aklaver.com>
<c7bce313-802d-ec16-602c-a14d3eb7726a@wp.pl>
<2b2ce173-d445-844c-935d-3531264453ac@aklaver.com>
<ab8f3885-ef7c-0495-42b6-6940f3ef0375@wp.pl>
<b20dacdb-67dd-5181-361e-3f28900ffdb2@aklaver.com>
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
>>
>>
>>
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: laurentp@wp.pl
Subject: Re: Damaged (during upgrade?) table, how to repair?
In-Reply-To: <04e67ade-34df-c91b-4680-8236d671876a@wp.pl>
References: <7a242c24-6bc7-2800-a857-6fbe8633382b@wp.pl> <0c827ef91e60470588d5ff4fe4394abb2ec8509d.camel@cybertec.at> <7775fcc7-b41a-394f-3c58-8960b23dee40@wp.pl> <e8399909-85db-af68-3bd3-febdbc4bfd72@aklaver.com> <e7f5cf4f-0150-f870-92c4-c2aa193be95e@wp.pl> <fddafac2-f811-4c31-76af-f8f04e014d18@aklaver.com> <cd686a45-8a27-a1a0-da79-b2fec00d6d9b@wp.pl> <a0cc123d-c673-d909-ac90-3d6ac1d9842b@aklaver.com> <c7bce313-802d-ec16-602c-a14d3eb7726a@wp.pl> <2b2ce173-d445-844c-935d-3531264453ac@aklaver.com> <ab8f3885-ef7c-0495-42b6-6940f3ef0375@wp.pl> <b20dacdb-67dd-5181-361e-3f28900ffdb2@aklaver.com> <04e67ade-34df-c91b-4680-8236d671876a@wp.pl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox