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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -