[SERVER-31693] I cannot remove an unreachable shard server in a mongo shard cluster Created: 24/Oct/17 Updated: 06/Dec/22 Resolved: 15/Dec/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Eric Lee | Assignee: | Backlog - Triage Team |
| Resolution: | Incomplete | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Server Triage
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| 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
I just want to remove the damage shard (unreachable), and let the cluster run normally. |
| Comments |
| Comment by Kelsey Schubert [ 15/Dec/21 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi Eric Lee, Sorry this issue fell through the cracks. I'm going to resolve it, since I assume the issue has been resolved or is no longer relevant, but let me know if I'm mistaken. Thanks, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Eric Lee [ 25/Oct/17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I got a new device, and use the same ip to build the shard server, but the data was gone.
However, it didn't count the damage shard, the result is wrong. The output of db.UserGps.stats():
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Eric Lee [ 24/Oct/17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Output of sh.status(true):
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Eric Lee [ 24/Oct/17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Here's some logs from mongos server:
In my opinion, 'db.runCommand( { removeshard: "shard0002" })' cannot be executed.. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Eric Lee [ 24/Oct/17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi Mark,
and it always return:
I know the draining couldn't be success, cause the shard server 10.112.18.13 is unreachable. Regards, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Mark Agarunov [ 24/Oct/17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hello Eric Lee, Thank you for the report. To get a better idea of why this might be happening, could you please provide the following:
This should give some insight into why you are seeing this error when trying to remove the shard. Thanks, |