How to add a replica set's member into the sharding's shards

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Critical - P2
    • None
    • Affects Version/s: 2.0.6
    • Component/s: Sharding
    • None
    • ALL
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      Hi, a sharding cluster has two shard groups:

      shards:

      { "_id" : "shard1", "host" : "shard1/10.136.16.67:27032,10.136.16.68:27032" } { "_id" : "shard2", "host" : "shard2/10.136.16.69:27032,10.136.16.70:27032" }

      The shard shard1 is consisted by three nodes: two mongod nodes and a arbiter node. Then, a new secondary nodes was added. Like below.

      shard1:
      PRIMARY> rs.config()
      {
      "_id" : "youninameshard1",
      "version" : 3,
      "members" : [

      { "_id" : 0, "host" : "10.136.16.67:27032", "priority" : 2 }

      ,

      { "_id" : 1, "host" : "10.136.16.68:27032" }

      ,

      { "_id" : 2, "host" : "10.136.16.68:37032", "arbiterOnly" : true }

      ,

      { "_id" : 3, "host" : "10.136.16.73:27032" }

      ]
      }

      Now, how to add the member 3 node into the shard shard1?

        1. mongos.log
          109 kB
          Jianfeng Xu

            Assignee:
            William Zola (Inactive)
            Reporter:
            Jianfeng Xu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: