I have a 3 node shard cluster mongoDB with replica set, and want to add (single node replica set) a un-sharded Replica set to collect all data in one node.

Can I create an unshard Replica set for a sharded cluster?

  • Can you edit your question with more detail on what you are trying to achieve? For example, is your goal to backup your sharded cluster to a single node replica set or perhaps add another shard for unsharded collections?
    – Stennie
    Commented Jan 4, 2019 at 23:37

1 Answer 1


mongodb: Can I create an unshard Replica set for a sharded cluster?

As per MongoDB documentation here Starting in MongoDB 3.6, all shards must be replica sets. Before you can upgrade your 3.4 sharded cluster to version 3.6, you must convert any shards that are running as standalone mongod instances to replica set shards.

Note: To converts a standalone shard to a single-member replica set shard. The procedure assumes that the single member runs on the same host and port as before.

  • Thanks for your answer but I have 2 replica set for each shard and I want collect all data in one single node replica and use it as another independent mongodb Database without timeout in my site
    – raminrt
    Commented Jan 6, 2019 at 16:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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