From f0806fc6dc1fcf4bcbfa8f8bca0bca3aba1b8c95 Mon Sep 17 00:00:00 2001 From: Joseph Dougherty Date: Tue, 8 Dec 2020 11:20:09 -0500 Subject: [PATCH] DOCSP-13116 oplog space reclamation might require restart --- source/tutorial/change-oplog-size.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/tutorial/change-oplog-size.txt b/source/tutorial/change-oplog-size.txt index 4b5d910ab5e..43afc316e0f 100644 --- a/source/tutorial/change-oplog-size.txt +++ b/source/tutorial/change-oplog-size.txt @@ -122,7 +122,13 @@ The following operation runs the ``compact`` command against the .. code-block:: javascript use local - db.runCommand({ "compact" : "oplog.rs" } ) + db.runCommand({ "compact" : "oplog.rs" }) + +If the disk space allocated to the original oplog size is not +reclaimed, restart :binary:`~bin.mongod` and run the above commands +again. Restarting :binary:`~bin.mongod` runs recalculations in +:doc:`WiredTiger ` that might allow ``compact`` to +release more space to the OS. For clusters enforcing :ref:`authentication `, authenticate as a user with the :authaction:`compact` privilege