Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

Primary and standby server at different timelines in postgres

$
0
0

I am very new to postgres and being new I got stuck at a point and need some help, please pardon if you find it silly.

I am doing a pgpool HA and at postgres level i have streaming replication between 3 nodes of postgresql-9.5 - 1 master and 2 slaves I was trying to configure auto failover but when i switched back to my original master, and restarted the postgres service, I am getting the following error:

  • slave 1-highest timeline 1 of the primary is behind recovery timeline 11
  • slave 2-highest timeline 1 of the primary is behind recovery timeline 10
  • slave 3-highest timeline 1 of the primary is behind recovery timeline 3

I tried deleting pg_xlog files in slaves and copying all the files from master pg_xlog into the slaves and then did a rsync. i also did a pg_rewind but it says:

target server needs to use either data checksums or wal_log_hints = on

(I have wal_log_hints = on set in postgresql.conf already) I've tried doing a pg_basebackup but since the data base server in slaves are still starting up its not able to connect to the server

Is there any way to bring the master and the slave at a same timeline?


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>