How to remove a damage shard in mongo shard cluster

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.4.2
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The data of that shard server has lost, how can I remove it directly from my cluster?
      I have tried "db.runCommand(

      { removeshard: "shard0002" }

      )" , however, it made no sense, the response is always:
      {
      "msg" : "draining ongoing",
      "state" : "ongoing",
      "remaining" :

      { "chunks" : NumberLong(612), "dbs" : NumberLong(0) }

      ,
      "note" : "you need to drop or movePrimary these databases",
      "dbsToMove" : [ ],
      "ok" : 1
      }

            Assignee:
            Mark Agarunov (Inactive)
            Reporter:
            Eric Lee
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: