From: Ashok kumar Mani <amani@accelaero.com>
To: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
To: 'pgsql-admin@lists.postgresql.org' <pgsql-admin@lists.postgresql.org>
Subject: RE: failover database replication failing!
Date: Tue, 28 Apr 2020 12:53:12 +0000
Message-ID: <AM0P191MB070856E189D4086ACAEB3B09AEAC0@AM0P191MB0708.EURP191.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <AM0P191MB0708D19310A988832C835991AEAC0@AM0P191MB0708.EURP191.PROD.OUTLOOK.COM>
References: <AM0P191MB0708D19310A988832C835991AEAC0@AM0P191MB0708.EURP191.PROD.OUTLOOK.COM>
Classification: External
Hi All
I am unable to start the new standby after updating the archive_command (with new ip)
[postgres@ log]$ cat postgresql-2020-04-28_124617.log
2020-04-28 12:46:17 GMT LOG: database system was shut down in recovery at 2020-04-28 12:36:41 GMT
2020-04-28 12:46:17 GMT LOG: restored log file "00000002.history" from archive
cp: cannot stat '/data/ARCHIVELOG/00000003.history': No such file or directory
2020-04-28 12:46:17 GMT LOG: entering standby mode
2020-04-28 12:46:17 GMT LOG: restored log file "00000002.history" from archive
2020-04-28 12:46:17 GMT LOG: restored log file "000000020000001D000000DA" from archive
2020-04-28 12:46:17 GMT LOG: invalid xl_info in primary checkpoint record
2020-04-28 12:46:17 GMT PANIC: could not locate a valid checkpoint record
2020-04-28 12:47:47 GMT [unknown] [unknown]LOG: connection received: host=[local]
2020-04-28 12:47:47 GMT postgres postgresFATAL: the database system is starting up
2020-04-28 12:47:49 GMT [unknown] [unknown]LOG: connection received: host=[local]
2020-04-28 12:47:49 GMT postgres postgresFATAL: the database system is starting up
2020-04-28 12:48:15 GMT LOG: startup process (PID 24654) was terminated by signal 6: Aborted
2020-04-28 12:48:15 GMT LOG: aborting startup due to startup process failure
2020-04-28 12:48:15 GMT LOG: database system is shut down
[postgres@de284194 log]$ psql
psql.bin: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
[postgres@ log]$
From: Ashok kumar Mani
Sent: Tuesday, April 28, 2020 4:36 PM
To: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>; 'pgsql-admin@lists.postgresql.org' <pgsql-admin@lists.postgresql.org>
Subject: failover database replication failing!
Classification: External
Dear All,
I have converted primary into slave today. After converting I made new slave as well but when I create new database in new database
Which is not replicating in new standby .
Could you please confirm do I need update archive command and archive mode as well because in new standby it is still referring old ip address.
Can any one help on this?
Regards,
Ashok
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-admin@postgresql.org
Cc: amani@accelaero.com
Subject: Re: failover database replication failing!
In-Reply-To: <AM0P191MB070856E189D4086ACAEB3B09AEAC0@AM0P191MB0708.EURP191.PROD.OUTLOOK.COM>
References: <AM0P191MB0708D19310A988832C835991AEAC0@AM0P191MB0708.EURP191.PROD.OUTLOOK.COM> <AM0P191MB070856E189D4086ACAEB3B09AEAC0@AM0P191MB0708.EURP191.PROD.OUTLOOK.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