[DOCS-1878] FAQ on MongoDB Storage incorrectly states that compact reclaims disk space Created: 03/Sep/13  Updated: 11/Jan/17  Resolved: 03/Sep/13

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Thomas Rueckstiess Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 10 years, 24 weeks, 1 day ago

 Description   

In this section

http://docs.mongodb.org/manual/faq/storage/#why-are-the-files-in-my-data-directory-larger-than-the-data-in-my-database

under "Empty Records", the page says:

MongoDB can reuse this space, but will never return this space to the operating system.

To reclaim deleted space, use either of the following:

  • compact, which de-fragments deleted space. [...]

This to me reads as if I could use compact to reclaim deleted space, which is not correct. There is a little yellow warning box below that states that compact won't reclaim disk space, but the two statements contradict each other, which is confusing.

This should be clarified and compact should not be listed under

"To reclaim deleted space, ..."



 Comments   
Comment by auto [ 03/Sep/13 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-1878 refactor recomedation in faq about reclaiming disk space
Branch: v2.2
https://github.com/mongodb/docs/commit/af8cb93231b20605f52d152ccb9f9f5bb85565f3

Comment by auto [ 03/Sep/13 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-1878 refactor recomedation in faq about reclaiming disk space
Branch: master
https://github.com/mongodb/docs/commit/fa34cdaf780e9b9cce2a51b5c2efb69f77b83462

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