From: Pepe TD Vo <pepevo@yahoo.com>
To: Amine Tengilimoglu <aminetengilimoglu@gmail.com>
Cc: Pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: how to fail over slave to master
Date: Mon, 28 Dec 2020 18:54:59 +0000 (UTC)
Message-ID: <611218422.3134435.1609181699910@mail.yahoo.com> (raw)
In-Reply-To: <CADTdw-yhihjbQ7VEvKtqdBEUV9XEbd6fq+JfHtesF3f+Pk7Fzw@mail.gmail.com>
References: <984856653.599807.1609180184705.ref@mail.yahoo.com>
<984856653.599807.1609180184705@mail.yahoo.com>
<CADTdw-yhihjbQ7VEvKtqdBEUV9XEbd6fq+JfHtesF3f+Pk7Fzw@mail.gmail.com>
Version 12 and can you show me step by step what needs to do? I found a document in version 10 to promote salve to master with pg_ctl and create recovery.conf. Recovery.conf is not existed in version 12 but in version 1.
Do I need to run pg_ctl in slave server? Create recovery.conf in master, but master is a failure right now.
Bach-Nga
No one in this world is pure and perfect. If you avoid people for their mistakes you will be alone. So judge less, love, and forgive more.To call him a dog hardly seems to do him justice though in as much as he had four legs, a tail, and barked, I admit he was, to all outward appearances. But to those who knew him well, he was a perfect gentleman (Hermione Gingold)
**Live simply **Love generously **Care deeply **Speak kindly.*** Genuinely rich *** Faithful talent *** Sharing success
On Monday, December 28, 2020, 01:38:10 PM EST, Amine Tengilimoglu <aminetengilimoglu@gmail.com> wrote:
You need to promote standby server, you can do that pg_ctl promote command. And also you need to use pg_rewind command for setup the old master as a standby server. So you can start with investigate pg_ctl promote and pg_rewind...
28 Ara 2020 Pzt 21:29 tarihinde Pepe TD Vo <pepevo@yahoo.com> şunu yazdı:
Hello,
I have a problem with my master's Postgresql service. I can't start up Postgresql, something corrupted and the Postgresql service is down. The slave is still up and running, I wonder how to turn slave to primary and fixing the master server. Once the master server is fixed, how can I fail it back?
Please advise.
Bach-Nga
No one in this world is pure and perfect. If you avoid people for their mistakes you will be alone. So judge less, love, and forgive more.To call him a dog hardly seems to do him justice though in as much as he had four legs, a tail, and barked, I admit he was, to all outward appearances. But to those who knew him well, he was a perfect gentleman (Hermione Gingold)
**Live simply **Love generously **Care deeply **Speak kindly.*** Genuinely rich *** Faithful talent *** Sharing success
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: pepevo@yahoo.com, aminetengilimoglu@gmail.com
Subject: Re: how to fail over slave to master
In-Reply-To: <611218422.3134435.1609181699910@mail.yahoo.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