Skip to content

Commit 96b253e

Browse files
kevinadikay-kim
authored andcommitted
DOCS-9267 WT space requirements for repairDatabase
1 parent 01bc7c0 commit 96b253e

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

source/reference/command/repairDatabase.txt

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -96,22 +96,31 @@ Behavior
9696

9797
.. include:: /includes/warning-blocking-global.rst
9898

99-
.. note:: :dbcommand:`repairDatabase` requires free disk space equal to the size
100-
of your current data set plus 2 gigabytes. If the volume that holds dbpath
101-
lacks sufficient space, you can mount a separate volume
102-
and use that for the repair. When mounting a separate volume for
103-
:dbcommand:`repairDatabase` you must run :dbcommand:`repairDatabase`
104-
from the command line and use the
105-
:option:`--repairpath <mongod --repairpath>`
106-
switch to specify the folder in which to store
107-
temporary repair files.
108-
109-
11099
The time requirement for :dbcommand:`repairDatabase` depends on the
111100
size of the data set.
112101

113102
:dbcommand:`repairDatabase` recreates all indexes in the database.
114103

104+
MMAPv1
105+
~~~~~~
106+
107+
:dbcommand:`repairDatabase` requires free disk space equal to the size of your
108+
current data set plus 2 gigabytes.
109+
If the volume that holds dbpath lacks sufficient space, you can mount a separate volume
110+
and use that for the repair. When mounting a separate volume for
111+
:dbcommand:`repairDatabase` you must run :dbcommand:`repairDatabase`
112+
from the command line and use the
113+
:option:`--repairpath <mongod --repairpath>`
114+
switch to specify the folder in which to store
115+
temporary repair files.
116+
117+
WiredTiger
118+
~~~~~~~~~~
119+
120+
:dbcommand:`repairDatabase` performs the operation in-place and does not require
121+
additional disk space.
122+
123+
115124
``repairDatabase`` and ``compact``
116125
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
117126

0 commit comments

Comments
 (0)