Does `CleanupOrphaned` exist in MongoDB 3.0.2?
I am deploying shard cluster with MongoDB version 3.0.2. I check MongoDB 3.0 manual and find a command cleanupOrphaned
.
http://docs.mongodb.org/manual/reference/command/cleanupOrphaned/#log-files
When I type this command from the mongos' admins database in the following format: db.runCommand({cleanupOrphaned:"mydb.mycol"})
it returns:
{"ok": 0, "errmsg": "no such cmd: cleanupOrphaned", "code": 59}
Does anyone know why this is happening?
+3
tottishi05
source
to share
1 answer
Run cleanupOrphaned on the admin database directly on the mongod instance, which is the master of the shard replica set. Don't run cleanupOrphaned on the mongos instance. It is listed in the same link.
+4
madhu
source
to share