I'm tesign failover senario on EFM 3.2. I've killed postgress process to bring down the Masterd database, as expected one out of two Slave databases are promoted to Master, but now the new master and second slave databases are not in sync. Could you help me to understand/trouble shoot to make new master and slave2 in sync without bringing up the crashed (old) Master DB.
One of the resason should be for slave2 server to be out of sync is that, In slave2 server in recovery.conf file the parameter
primary_conninfo the host='<might be pointing to old master server>' and not the new master server. Could you please chnage this accordingly and restart the slave2 server. If this is not the case then could you please share the database logs from slave2 server for further investigation.
Thank you very much for the response, I've verified recovery.conf file on Slave-2, the host IP is automatically updated.
Unfortunately I could not see any content in edb log file located in /var/log/edb/as-9.6/edb-as-9.6.log
Where else can I look for the errors. pls suggest.
Could you please provide the below details along with EFM logs from the slave2 server.
1) show logging_collector ;
2) show log_directory ;
I'm able to resolve the error by adding below parameter in recovery.conf on Slave-2 database, now the new Master and Slave-2 databases are in sync.
recovery_target_timeline = 'latest'
Still I could not able to locate my database logs, please find below screenshots. Pls suggest.