From: Julien Rouhaud <rjuju123@gmail.com>
To: Silaparasetti, Ramesh <Ramesh.Silaparasetty@dell.com>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Cc: Kishore, Nanda - Dell Team <Nanda.Kishore@dellteam.com>
Cc: Mahendrakar, Prabhakar - Dell Team <Prabhakar.Mahendraka@dellteam.com>
Cc: Agarwal, Pragati - Dell Team <Pragati.A@dellteam.com>
Subject: Re: Very URGENT REQUEST - Postgresql error : PANIC: could not locate a valid checkpoint record
Date: Thu, 10 Feb 2022 22:44:50 +0800
Message-ID: <20220210144450.o5nd6gcdt7qlittt@jrouhaud> (raw)
In-Reply-To: <BYAPR19MB2712FC65381EC6A1B1E3CCAFE02F9@BYAPR19MB2712.namprd19.prod.outlook.com>
References: <BYAPR19MB2712FC65381EC6A1B1E3CCAFE02F9@BYAPR19MB2712.namprd19.prod.outlook.com>
On Thu, Feb 10, 2022 at 01:13:27PM +0000, Silaparasetti, Ramesh wrote:
>
> 1. Below is the output of the command : "<DPA_INSTALL_DIRECTORY>\services\datastore\engine\bin\pg_controldata.exe -D "<DPA_INSTALL_DIRECTORY>\services\datastore\data""
> C:\Program Files\EMC\DPA\services\datastore\engine\bin>pg_controldata.exe -D "F:\datastore\data\data"
> pg_control-Versionsnummer: 1300
> Katalogversionsnummer: 202007201
> Datenbanksystemidentifikation: 7054941472659574120
> Datenbank-Cluster-Status: heruntergefahren
> pg_control zuletzt geƤndert: 07.02.2022 14:57:30
> Position des letzten Checkpoints: 9/C80000D8
> REDO-Position des letzten Checkpoints: 9/C80000D8
> REDO-WAL-Datei des letzten Checkpoints: 0000000100000009000000C8
> [...]
> 2. As you suggested, we verified the value of Latest checkpoint's REDO WAL file: 0000000100000009000000C8.
>
> This WAL file does not exist at the pg_wal directory.
> We have enabled debug logging and below is the logging information from Postgres.
>
> 2022-02-10 11:38:05.675 CET [7916] LOG: starting PostgreSQL 13.1, compiled by Visual C++ build 1900, 64-bit
> 2022-02-10 11:38:05.679 CET [7916] LOG: listening on IPv4 address "127.0.0.1", port 9003
> 2022-02-10 11:38:05.681 CET [7916] LOG: listening on IPv4 address "10.91.198.36", port 9003
> 2022-02-10 11:38:06.756 CET [348] LOG: database system was shut down at 2022-02-07 14:57:30 CET
> 2022-02-10 11:38:06.756 CET [348] DEBUG: mapped win32 error code 2 to 2
> 2022-02-10 11:38:06.757 CET [348] DEBUG: mapped win32 error code 2 to 2
> 2022-02-10 11:38:06.757 CET [348] DEBUG: could not open file "pg_wal/0000000100000009000000C8": No such file or directory
So, unless you can find that 0000000100000009000000C8 file (and all the files
after that), your instance is corrupted and you lost data. If you have WAL
archiving or streaming to another location you should be able to recover from
that, assuming that no other files are damaged. Otherwise your best shot is
restoring from a backup.
> 4. Is it ok to execute "pg_resetwal" to recover from this situation? Does it pose any data loss ?
pg_resetwal will make the situation worse. The server will start but in a
totally inconsistent state. This should be your last choice, and understand
that it will irremediably corrupt your system even more.
At that point you should probably consider hiring some company with postgres
expertise to:
- try to recover some data if possible (it depends on what was the problem,
what other wals you have and the state of the rest of the files)
- understand what happened
- fix the root problem
- help you setup monitoring, alerting, archiving, backup, HA and other things
you might need
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-bugs@postgresql.org
Cc: rjuju123@gmail.com, Ramesh.Silaparasetty@dell.com, Nanda.Kishore@dellteam.com, Prabhakar.Mahendraka@dellteam.com, Pragati.A@dellteam.com
Subject: Re: Very URGENT REQUEST - Postgresql error : PANIC: could not locate a valid checkpoint record
In-Reply-To: <20220210144450.o5nd6gcdt7qlittt@jrouhaud>
References: <BYAPR19MB2712FC65381EC6A1B1E3CCAFE02F9@BYAPR19MB2712.namprd19.prod.outlook.com> <20220210144450.o5nd6gcdt7qlittt@jrouhaud>
* 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