Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-31693

I cannot remove an unreachable shard server in a mongo shard cluster

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Server Triage
    • ALL

    Description

      The data of that shard server has lost, the server is down, 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
      }
      

      I just want to remove the damage shard (unreachable), and let the cluster run normally.
      However, I couldn't find a way to finish it...
      Who can help me?
      Thanks in advance!

      Attachments

        Activity

          People

            backlog-server-triage Backlog - Triage Team
            Eric Lee Eric Lee
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: