From: | Kashif Zeeshan <kashi(dot)zeeshan(at)gmail(dot)com> |
---|---|
To: | Domen Šetar <domen(dot)setar(at)izum(dot)si> |
Cc: | "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Re: wal seams to be corrupted |
Date: | 2024-07-19 06:09:46 |
Message-ID: | CAAPsdhdmjOW8tApxYo0WT5vwJCS3=CSFdBrROUG3zbbDTuubuw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Hi Domen
On Fri, Jul 19, 2024 at 10:57 AM Domen Šetar <domen(dot)setar(at)izum(dot)si> wrote:
> Hi admins,
>
>
>
> The number of wal files on my postgresql server is rising, because it
> seams that one wal is corrupted. Postgrsql is running normaly. I see this
> in postgresql log file:
>
>
>
> 2024-07-19 07:44:12 CEST [2205]: [32288-1] user=,db=,app=,client= DETAIL:
> The failed archive command was: test ! -f
> /var/lib/pgsql/ArchiveDir/000000010000044E0000009D && cp
> pg_wal/000000010000044E0000009D
> /var/lib/pgsql/ArchiveDir/000000010000044E0000009D
>
>
>
> Usualy helped if I deleted wal in ArchiveDir directory. But not this time.
> Wal is copied again from pg_wal to ArchiveDir directory and error message
> continues.
>
> What can I do to solve this problem? Is pg_resetwal solution fort his
> problem? If it is, how to use it?
>
Yes you should use the pg_resetwal what it does is clears the write-ahead
log (WAL) and optionally resets some other control information stored in
the pg_control file. This function is sometimes needed if these files have
become corrupted. It should be used only as a last resort, when the server
will not start due to such corruption.
You can find the help from the following link
https://www.postgresql.org/docs/current/app-pgresetwal.html
Regards
Kashif Zeeshan
>
>
> Best regards!
>
> [image: izum]
>
> Domen Šetar
> *Computer Systems Support*
> IZUM – Institute of Information Science | Prešernova ulica 17 | 2000
> Maribor | Slovenia
> T: +386 2 25 20 339 | M: +386 41 676 342 | www.izum.si |
> domen(dot)setar(at)izum(dot)si
>
>
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Muhammad Ikram | 2024-07-19 06:09:47 | Re: wal seams to be corrupted |
Previous Message | Domen Šetar | 2024-07-19 05:57:44 | wal seams to be corrupted |