[SERVER-31692] How to remove a damage shard in mongo shard cluster Created: 24/Oct/17  Updated: 16/Nov/17  Resolved: 24/Oct/17

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.4.2
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: Eric Lee Assignee: Mark Agarunov
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-31693 I cannot remove an unreachable shard ... Closed
Participants:

 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
}



 Comments   
Comment by Eric Lee [ 24/Oct/17 ]

Got it, thanks.
I don't know whether it should be a bug and thus I create two tickets.

Comment by Mark Agarunov [ 24/Oct/17 ]

Hello Eric Lee,

Thank you for the report. As this ticket appears to be a duplicate of SERVER-31693, I've closed this ticket. Please follow SERVER-31693 for updates.

Thanks,
Mark

Comment by Eric Lee [ 24/Oct/17 ]

Who can help me?
Thanks in advance!
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...

Generated at Thu Feb 08 04:27:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.