Not able to start replication between 2 ubuntu 14.04 LTS servers

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Critical - P2
    • None
    • Affects Version/s: 3.0.1
    • Component/s: Replication
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      errmsg“ : ”No host described in new configuration 1 for replica set rs0 maps to this node",
      I am getting this message every time I do rs.initiate() This is how my /etc/hosts/ file looks on both the replica sets.

      Server 1 and server 2 "hosts" file

      127.0.0.1 localhost

      aa.bb.cc.dd DataMongo1

      ee.ff.gg.hh DataMongo2

      Server 1-mongod.conf file

      bind-ip aa.bb.cc.dd

      Server 2 -mongod.conf file

      bind-ip ee.ff.gg.hh

      changed server1 hostname to DataMongo1 and server2 to DataMongo2

      $hostname DataMongo1

      Port 27071 is uncommented on both servers

      Please help me with this issue.

            Assignee:
            Unassigned
            Reporter:
            Shashank Kaw [X]
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: