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 1nc8vi-0001pM-Kb for pgsql-general@arkaria.postgresql.org; Wed, 06 Apr 2022 16:54:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nc8vf-0007k4-DL for pgsql-general@arkaria.postgresql.org; Wed, 06 Apr 2022 16:54:47 +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 1nc8ve-0007fn-Vz for pgsql-general@lists.postgresql.org; Wed, 06 Apr 2022 16:54:47 +0000 Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nc8vb-0005R7-O7 for pgsql-general@lists.postgresql.org; Wed, 06 Apr 2022 16:54:45 +0000 Received: by mail-ot1-x32e.google.com with SMTP id i11-20020a9d4a8b000000b005cda3b9754aso2089522otf.12 for ; Wed, 06 Apr 2022 09:54:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=9wuCBcXKjWB8+cvPi/roa6cA0qIdRf+mYocTTzdXGcw=; b=RJJb6O3b9zamEMhKYEhyBFuV2rVh+6vRZNB++0ZLlleHJ7Uzi6zKybP4t+erkvE+6z xQt429vL7HmuFO7mJWTJvOVMQ018PwGYEk4z2doJuDtuvlBMdRMPfccrHGV/EuruFdXF BYnrHW1zP/U6BsdMCPbC6I0rs5Q40W5jQWXQomdncIWSeU7IqbhIooTmbop6S7HDHHJW oKWegXcAMBxvZkNayZOHIAvnzncrgSHCb7T17bsLBPFvzzh4tqZLreRK+AaevT1F14J+ 7x7CV3VKTfp1OaDQl2Mfv4JxG6TNx/7SBsc++vGvWSTRRg7v1vbxai3QmgduzrqlgkJ4 Ae0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=9wuCBcXKjWB8+cvPi/roa6cA0qIdRf+mYocTTzdXGcw=; b=nAQFMRSjr4K/IP1BSH3NDr3gdGwaD4kOj6poyYaKQkODIaYP4HFfnqut3v/AMIdW80 BH49A6mKh9x8G2vocT7ZnxGG/2CFy+cK6ecUDjyIyoTEYuYcLjBeL7TtpB05Mg5P6k7+ BMBq4lEUe85KRLaawcqFYJhozqkPAOsPRSmiS8KbVlaVt8o5lwJsEYnsycB9fVdxsKm1 EhIWk30Cv2DkP3TXqYm7yxIcmQxg7DvviukMS2URqUZPOpDx1Pp/vC0NIUenAMx2wVUl daozJmRBzvNQZWnlOrzzMRy+pztU9NzX1ZvgTQNPP6snsAt89jYPyM5JXz9Zu2XqCGXO +KOg== X-Gm-Message-State: AOAM532JOoI8p3dLgsq2FVc30NyGd1ZiNL58guZS5abkOZXL74a0POGg BqCD3ka97RQjBwOhUAixS5izksQYb5o= X-Google-Smtp-Source: ABdhPJz4Ja4/p2XyWTR6G2i0xAeC+Fd14zC/DJpl1ScFzxO6oYhWShPI8y9bYn3jagy3EISlUI5ZNA== X-Received: by 2002:a05:6830:1f26:b0:5c9:2515:85f with SMTP id e6-20020a0568301f2600b005c92515085fmr3344004oth.274.1649264082042; Wed, 06 Apr 2022 09:54:42 -0700 (PDT) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id f16-20020a0568301c3000b005c92a656cb5sm6956414ote.58.2022.04.06.09.54.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Apr 2022 09:54:41 -0700 (PDT) Message-ID: Date: Wed, 6 Apr 2022 11:54:40 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: Problem with PG 11 database on OrangePi3 (ARMBIAN, ARM64) after disk disrupion (problem with USB disk connection) Content-Language: en-US To: pgsql-general@lists.postgresql.org References: <9ff52fa7-a125-1225-0e23-c22f034ceb91@wp.pl> <5f2de1ce-4b22-59d1-178e-71cb6a3bfc02@wp.pl> From: Ron In-Reply-To: <5f2de1ce-4b22-59d1-178e-71cb6a3bfc02@wp.pl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 4/6/22 11:41, W.P. wrote: > W dniu 06.04.2022 o 12:37, Laurenz Albe pisze: >> On Wed, 2022-04-06 at 10:57 +0200, W.P. wrote: >>> Is it possible to repair this? >> Not unless you tell us what exactly you did, command by command. >> >> Yours, >> Laurenz Albe >> >> >> > That was not a "command". PG was working ok, DB on encrypted (LUKS on > LVM2, ext4) USB drive. > > Then simply I disconnected cable by accident. > > After OPi restart, with filesystem on USB mounted again and fsck'ed first, > PG refuses to start. With a message about replication error in log. > > But I did not configured relication. The disk got corrupted, and one part that got corrupted is where Postgresql's replication (or not) is configured. Delete the data/ directory and restore from backups (including config files). -- Angular momentum makes the world go 'round.