RE: failover database replication failing!

Поиск
Список
Период
Сортировка
От Ashok kumar Mani
Тема RE: failover database replication failing!
Дата
Msg-id AM0P191MB070856E189D4086ACAEB3B09AEAC0@AM0P191MB0708.EURP191.PROD.OUTLOOK.COM
обсуждение исходный текст
Ответ на failover database replication failing!  (Ashok kumar Mani <amani@accelaero.com>)
Список pgsql-admin

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

 

В списке pgsql-admin по дате отправления:

Предыдущее
От: Rui DeSousa
Дата:
Сообщение: Re: Req for some help in figuring out table create grants
Следующее
От: Holger Jakobs
Дата:
Сообщение: Re: PostgreSQL CHARACTER VARYING vs CHARACTER VARYING (Length)