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

How to remove a damage shard in mongo shard cluster

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 3.4.2
    • None
    • None

    Description

      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
      }

      Attachments

        Activity

          People

            mark.agarunov Mark Agarunov
            Eric Lee Eric Lee
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: