[DOCS-5247] Storage FAQ has conflicting information about repairDatabase Created: 20/Apr/15  Updated: 30/Oct/23  Resolved: 09/Jun/15

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Improvement Priority: Major - P3
Reporter: Joanna Cheng Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Participants:
Days since reply: 8 years, 36 weeks, 1 day ago

 Description   

http://docs.mongodb.org/manual/faq/storage/#empty-records

If you must reclaim disk space, you can use repairDatabase. This command rebuilds the database, de-fragmenting the associated storage in the process. This may release space to the operating system. repairDatabase requires up to 2 gigabytes of extra disk space to run. Do not use repairDatabase if you are critically low on disk space.

Then immediately afterwards:

repairDatabase requires enough free disk space to hold both the old and new database files while the repair is running. Be aware that repairDatabase will block all other operations and may take a long time to complete.

Can we follow the wording on http://docs.mongodb.org/manual/reference/command/repairDatabase/

repairDatabase requires free disk space equal to the size of your current data set plus 2 gigabytes. If the volume that holds dbpath lacks sufficient space, you can mount a separate volume and use that for the repair. When mounting a separate volume for repairDatabase you must run repairDatabase from the command line and use the --repairpath switch to specify the folder in which to store temporary repair files.



 Comments   
Comment by Githook User [ 09/Jun/15 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-5247 update wording for repairDatabase disk space to match command reference page wording
Branch: master
https://github.com/mongodb/docs/commit/08dc3af36bd7d9ebe614ae2022bd52aec4b5fae7

Comment by Githook User [ 09/Jun/15 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-5247 update wording for repairDatabase disk space to match command reference page wording
Branch: v2.6
https://github.com/mongodb/docs/commit/2883acccb197b0c4764731e2c8425edc4acaad27

Generated at Thu Feb 08 07:49:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.