Lab: Deploy a Replica Set

while adding replica set , getting error “errmsg” : “Our set name did not match that of 127.0.0.1:27003”

m103-rep:PRIMARY> rs.add( { host: “127.0.0.1:27003”})
{
“operationTime” : Timestamp(1613602564, 1),
“ok” : 0,
“errmsg” : “Our set name did not match that of 127.0.0.1:27003”,
“code” : 103,
“codeName” : “NewReplicaSetConfigurationIncompatible”,
“$clusterTime” : {
“clusterTime” : Timestamp(1613602564, 1),
“signature” : {
“hash” : BinData(0,“laEtP4aO6x2vuvkyKH4AtvrvMSE=”),
“keyId” : NumberLong(“6930363669821784065”)
}
}
}

All 3 conf file have key entry and below to same replica set , still not able to add other 2 to replication set.

Is replicaset name same in all the 3 config files?
Your prompt shows m103-rep
It should be m103-repl.Please check your lab requirements

1 Like

Thanks, Rama for point out that mistake. It worked!!

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.