I recently had to fail my master over and promote a slave due to a network outage. All of that worked fine. Now that the network is back, I'd like to add my old master as a slave of the new master.
Unfortunately when trying to get the old master to replicate from the new master I'm getting the following error:
Last_IO_Error: error connecting to master
I'm guessing this is because the old master has never been a slave so doesn't know anything about the bin logs and where to start reading.
Are there any docs on how to add a downed master (that has never been a slave in the past) back to a replica set?