By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,950 Members | 1,032 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,950 IT Pros & Developers. It's quick & easy.

pg_rewind failing to sync second database

P: 1
I have a postgresql cluster with following databases with user myuser:

I have setup a replication with one master( and slave( I failover to slave and when i try to failback to original master using pg_rewind for every database, pg_rewind gets succeed for first database but fails for second database.

For database1, running following command and getting succeed

/usr/pgsql-11/bin/pg_rewind -D "data_dir_path_here" --source-server="port=pg_port_here user=myuser dbname=database1 host="

For database2, running following command but getting error:

/usr/pgsql-11/bin/pg_rewind -D "data_dir_path_here" --source-server="port=pg_port_here user=myuser dbname=database2 host="

Error: target server must be shut down cleanly Failure, exiting
Apr 27 '19 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.