Hie to All,
I want to create replication on different network for fault torlerance. Here below i have mention the scenario.
I have two system both are in LAN, my system contains two node one primary replica and another secondary and another pc has ip 192.168.0.58. I have to make this has secondary replica.
This is my secondary Replica config file contents:
dbpath=d:\Data\db\
logpath=d:\Data\log\mongo.log
logappend=true
port = 27017
replSet = replicaset
bind_ip = 127.0.0.1
When i add to add this replica in my system using this below command on mongo shell then its give me following error.
{
"errmsg" : "exception: can't use localhost in repl set member names exce
pt when using it for all members",
"code" : 13393,
"ok" : 0
}
Any one has solution about this.
Thanks in Advance