Re: could not open file "global/pg_filenode.map": Operation not permitted

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Nick Renders <postgres(at)arcict(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: could not open file "global/pg_filenode.map": Operation not permitted
Date: 2024-03-11 15:04:23
Message-ID: a08f7e54-0a6f-466b-b3fc-08165076c605@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 3/11/24 03:11, Nick Renders wrote:
> Thank you for your reply Laurenz.
> I don't think it is related to any third party security software. We have several other machines with a similar setup, but this is the only server that has this issue.
>
> The one thing different about this machine however, is that it runs 2 instances of Postgres:
> - cluster A on port 165
> - cluster B on port 164
> Cluster A is actually a backup from another Postgres server that is restored on a daily basis via Barman. This means that we login remotely from the Barman server over SSH, stop cluster A's service (port 165), clear the Data folder, restore the latest back into the Data folder, and start up the service again.
> Cluster B's Data and service (port 164) remain untouched during all this time. This is the cluster that experiences the intermittent "operation not permitted" issue.
>
> Over the past 2 weeks, I have suspended our restore script and the issue did not occur.
> I have just performed another restore on cluster A and now cluster B is throwing errors in the log again.

Since it seems to be the trigger, what are the contents of the restore
script?

>
> Any idea why this is happening? It does not occur with every restore, but it seems to be related anyway.
>
> Thanks,
>
> Nick Renders
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Sabino Mullane 2024-03-11 16:23:08 Re: alter table xxx alter column yyy set (n_distinct=nnnn );
Previous Message Laurenz Albe 2024-03-11 14:45:13 Re: alter table xxx alter column yyy set (n_distinct=nnnn );