Thanks for your reply to my post. Your instructions worked great!! I
was able to change roles for both the Master and the Slave members.
However, I have a question about the synching of the two data bases during
this process. Is it possible that a series of pending write operations on
the original Master member could be lost during the role reversal process?
The reason that I ask this is because the old Master/Slave documentation
for "Inverting Master and Slave" talks about halting writes on the original
master using the fsync command, creating a new set of local files on the
new Master, shutting down the original Master and copying the new Master's
local files to the original Master's dbpath, and then restarting the
original Master as a slave with the fastsync option. So, it seems like
there should be some mechanism to flush out the original Masters write
operation buffer to completion, synch the changes to the original slave and
then change roles. Is that what the rs.stepDown() function does?
On Wednesday, May 4, 2016 at 2:44:15 AM UTC-7, Rhys Campbell wrote:
Just a related note...
In cfg.members[X] make sure you are accessing the intended member. The
order in your array might be different.
You received this message because you are subscribed to the Google Groups "mongodb-user"