1

I'm running a 7 node mongodb sharded cluster (version 2.4...).

I would like to merge this into a standalone shard with 7 times the disk-space.

I've tried to create the single shard instance and running:

db.copyDatabase('dbname', 'dbname', 'hostname_of_mongos:27017')

On it. And it starts ok, and the just hangs with no progress.

I've also tried:

db.runCommand({ copydb: 1, fromdb: "dbame", todb: "dbname", fromhost: 'hostname_of_mongos:27017' })

with no succes. Can it be done, and how should I do it?

HopelessN00b
  • 53,795
  • 33
  • 135
  • 209

0 Answers0