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 1ncLwN-0000Lw-Pe for pgsql-general@arkaria.postgresql.org; Thu, 07 Apr 2022 06:48:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ncLwM-0002Lq-My for pgsql-general@arkaria.postgresql.org; Thu, 07 Apr 2022 06:48:22 +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 1ncLwM-0002G8-4L for pgsql-general@lists.postgresql.org; Thu, 07 Apr 2022 06:48:22 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ncLwI-0003t6-V2 for pgsql-general@lists.postgresql.org; Thu, 07 Apr 2022 06:48:20 +0000 Received: by mail-ed1-x52b.google.com with SMTP id p23so5227944edi.8 for ; Wed, 06 Apr 2022 23:48:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=YD9XcRRj3Dh582UNXcc8Ooh/LSKHEJ2MOF4ONXIgurY=; b=JJkxMUgIINXVps4ngGRTkMMpIgUCasfiPo4aPOfF7WFvk0drcx8NKPWR67ARlRKwo6 cz538gGmJ26+gi+z8UOg4kmjXP76if1xWrf5TH6DkLZKzgMDJxC7mhe2HG++yYdnKfnW 7+u0hocbDhslAkPkQlhVmrAM9HLWkER4GpY8m2KWqkHyKM/A13++I9zfNvrKGsFJCeEZ rnrd+J4vn6LE+AUcajKv8q3D4E1bVXSs8ZyoO5jiZQ3fg7OgFKX+YXf2T9a5LD8t3I5D POE1O3eI2k3kx7MC4/6MO3HuXTobYVgBEgByNSR094kvvInLvl5Ezfq8VZ5aBvi3ybIc Ru5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=YD9XcRRj3Dh582UNXcc8Ooh/LSKHEJ2MOF4ONXIgurY=; b=XvHLtfy0Nccc2MreHu1hyVAF5Rx7yohuPbB7ELpVafoi4ihHOYL90lAHXcvlnTouE0 /dO30lmCBFV7dM0ahpS7s89fSEwJ7YIPCOMk2kOjvJu28SrMtvsvxznlIMM9cx+AYzFf THSufi19Fsu+TrfLyvmXxf713+1bmJ5M6WzICEEKK9VrEepSbcEbgamoRrq1cVP1n1Eh I78SjktcnxOCBrm1dKuztwRjSjvMqxdOYRiU2JOuA3q3+pOwNyHVVNjvbyRXTlKsn1zp c4ESBce6NCBxNLcaGG7DOv+FSXFxWVLJ+s/KL9jlNHeZ/eavDb8Fdd/JWyHANd9I0lgy 4dEw== X-Gm-Message-State: AOAM530KMi3znfPMcVjDgQ1zLaLUg5ucqizwD/YE4zizFUVBXtIXeGTc IFD+SLBWU9CVPbEvbcl5jTS8/g== X-Google-Smtp-Source: ABdhPJyXrq4R4GAL5wfS56WyppCgJeYgT7wMaTr5bEVv9o8t24Yx7KgMrsQIyEDeME2YOoIoqf++yQ== X-Received: by 2002:a05:6402:438f:b0:41b:51ca:f541 with SMTP id o15-20020a056402438f00b0041b51caf541mr12755615edc.80.1649314097108; Wed, 06 Apr 2022 23:48:17 -0700 (PDT) Received: from localhost.localdomain ([2001:871:5e:1de5:397:ed65:99b:afff]) by smtp.gmail.com with ESMTPSA id d1-20020a50fe81000000b004197f2ecdc2sm8804535edt.89.2022.04.06.23.48.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 23:48:16 -0700 (PDT) Message-ID: <59c5904a51293bd2040c615012e201b6d060280d.camel@cybertec.at> Subject: Re: Problem with PG 11 database on OrangePi3 (ARMBIAN, ARM64) after disk disrupion (problem with USB disk connection) From: Laurenz Albe To: "W.P." , pgsql-general@lists.postgresql.org Date: Thu, 07 Apr 2022 08:48:15 +0200 In-Reply-To: <5f2de1ce-4b22-59d1-178e-71cb6a3bfc02@wp.pl> References: <9ff52fa7-a125-1225-0e23-c22f034ceb91@wp.pl> <5f2de1ce-4b22-59d1-178e-71cb6a3bfc02@wp.pl> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-3.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2022-04-06 at 18:41 +0200, 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. I see. If you have no backup, you will need an expert to try and recover what is possible. Even so, there are chances that enough data are lost that nothing can be salvaged. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com