Details
-
Task
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
Description
https://docs.mongodb.org/manual/faq/storage/#faq-reclaim-disk-space
You can only run repairDatabase on a standalone mongod instance. If the mongod instance is a member of a replica set, you will need to take the node out of a replica set and restart it as a standalone in order to run repairDatabase.
If the mongod instance is part of a replica set, you shouldn't be running repairDatabase on it, ever. You should be resyncing it, as mentioned later on in the same section