hi,
we are planning to migrate from MongoDB enterprise to percona server for MongoDB (PSMDB) with the replica set method (we will add the new node to the replica set and when replication is completed we will remove the old ones).
While I have been testing the migration method in a staging environment, I was faced with an awkward problem.
When I configured the new PSMDB node and started the node, replication started and data have been copied from the primary /secondary to the new node after the initial data was completed but after initial sync replication has crushed with the below error :
2021-12-10T23:02:36.167+0300 I REPL [replication-6] initial sync done; took 960s.
2021-12-10T23:02:36.168+0300 F - [replication-6] Invariant failure getMemberState().startup2() src/mongo/db/repl/replication_coordinator_impl.cpp 748
2021-12-10T23:02:36.168+0300 F - [replication-6]
***aborting after invariant() failure
2021-12-10T23:02:36.199+0300 F - [replication-6] Got signal: 6 (Aborted).
when I checked the rs.status command in the new node, the result is :
xxxx_st:OTHER> rs.status();
{
“ok” : 0,
“errmsg” : “Our replica set config is invalid or we are not a member of it”,
“code” : 93,
“codeName” : “InvalidReplicaSetConfig”
}
also when I added the new node to the replica from primary after a while the new node was removed from the replica automatically.
we are using mongoDB ops manager and think that this can be occurred from the ops manager configuration but I’m not sure about this situation and is there a way to add the new node to the cluster or is there an easy way of migrating from ops manager MongoDB to PSMDB.
thank you for your help,
Muammer