Can't add member into MongoDB replica-set -


i using mongodb 2.4.3, , following wizard: http://docs.mongodb.org/manual/tutorial/deploy-replica-set/

but when adding other members replica-set, following error:

root@vm3:~# mongo mongodb shell version: 2.4.3 connecting to: test rs1:primary> rs.add("vm1") {     "errmsg" : "exception: set name not match set name host vm1:27017 expects",     "code" : 13145,     "ok" : 0 } rs1:primary> rs.add("vm4") {     "errmsg" : "exception: set name not match set name host vm4:27017 expects",     "code" : 13145,     "ok" : 0 } 

vm1, vm3 , vm4 know each other because configured /etc/hosts files correctly.

any idea? don't understand error message mean!

after restarting vms, works now.

root@vm3:~# mongo mongodb shell version: 2.4.3 connecting to: test rs1:primary> rs.add("vm4") { "ok" : 1 } rs1:primary> rs.add("vm1") { "ok" : 1 } 

Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -