pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Johnathan Tiamoh <johnathantiamoh@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Unable to start postgresql-14
Date: Sat, 23 Dec 2023 14:35:04 -0800
Message-ID: <a2590587-f848-4924-8fce-e5087609cb0c@aklaver.com> (raw)
In-Reply-To: <CACoPQdZYfhO0P1nugVsR-sK-3Sdb4XgZUPCNH5Vac1m38Atwxg@mail.gmail.com>
References: <CACoPQdbEoQrusU4RC1o2zEC8CEm4PVdhy6xbH2x_hQPwPOdO=Q@mail.gmail.com>
	<ed9823a0-a2e4-468a-b129-7128dea2bdec@aklaver.com>
	<CACoPQdZYfhO0P1nugVsR-sK-3Sdb4XgZUPCNH5Vac1m38Atwxg@mail.gmail.com>

On 12/23/23 10:05, Johnathan Tiamoh wrote:
> More information needed:
> 
> 1) Exact Postgres version e.g 14.x
> 
> Postgresql Version 14. 10
> 
> 2) Is it community version or fork?
> 
> Community version
> 
> 3) What was the command you used to start the cluster?
> 
> systemctl start postgresql-14
> 
> 4) Do you have replication/WAL archiving set up?
> 
> Yes.
> 
> 
> Just to add. The data directory was accidentally deleted. At the time of 
> deletion. The secondary was broken.

So that is the cause of the issue.

> I restore from backup and it couldn't start.

Was this backup taken before the data directory was deleted?

If so how was the backup done?

> 
> I ended up doing a pg_resetwal to start it and ended up with lots of 
> data corruption.

Does this mean you recreated the data directory from some source and 
then ran pg_resetwal?

> 
> I have try a pg_dumpall to restore in a new server and it has equally 
> failed.

Do you mean you did a pg_dumpall from the Postgres instance running on 
the restored data directory?


-- 
Adrian Klaver
adrian.klaver@aklaver.com






view thread (7+ messages)  latest in thread

Message-ID: <a2590587-f848-4924-8fce-e5087609cb0c@aklaver.com>
Permalink:  ../a2590587-f848-4924-8fce-e5087609cb0c@aklaver.com/
Also on:    postgresql.org/message-id/a2590587-f848-4924-8fce-e5087609cb0c@aklaver.com

 · 

reply

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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, johnathantiamoh@gmail.com
  Subject: Re: Unable to start postgresql-14
  In-Reply-To: <a2590587-f848-4924-8fce-e5087609cb0c@aklaver.com>
  References: <CACoPQdbEoQrusU4RC1o2zEC8CEm4PVdhy6xbH2x_hQPwPOdO=Q@mail.gmail.com> <ed9823a0-a2e4-468a-b129-7128dea2bdec@aklaver.com> <CACoPQdZYfhO0P1nugVsR-sK-3Sdb4XgZUPCNH5Vac1m38Atwxg@mail.gmail.com> <a2590587-f848-4924-8fce-e5087609cb0c@aklaver.com>

* 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