3

I use MongoDB 3.0.3 with Wired Tiger engine on Cent OS 6.4.
I have a sharded cluster of 4 shards each of which has about a quarter of total data.

One of the shard called "shard2" corrupted and can't start.
Without this shard, the cluster can't work.

I can bear losing data on this shard, How can I remove this shard to make the cluster work??
What parameters should I modify in "config" collection?

migrated from stackoverflow.com Jun 30 '15 at 1:47

This question came from our site for professional and enthusiast programmers.

1

You can use below commands to remove the shards, though I havn't tried ever but looks straight forward.

use admin
db.runCommand( { removeShard: "mongodb0" } )

--Response
{
    "msg" : "draining started successfully",
    "state" : "started",
    "shard" : "mongodb0",
    "ok" : 1
}

link: http://docs.mongodb.org/manual/tutorial/remove-shards-from-cluster

  • you didn't understand my problem but still thank you @Sachin – tottishi05 Jun 26 '15 at 17:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.