Skip to content

DOCS-556 mongodump cannot be used while database is locked by fsync #294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 29, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions source/administration/backups.txt
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,11 @@ the snapshot has completed, use the following command in the

.. include:: /includes/note-disable-profiling-fsynclock.rst

.. warning::

:program:`mongodump` cannot be used while the database is locked
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is confusing. It can be used while in fsync/lock state. The confusion comes from replication and writes which will block reads (mongodump) and your backup. Newer version of mongod will not cause this situation but I don't think the change made it in to 2.2.0 so currently it may be true that once you fsync/lock + queue a writer that all read will block -- it was true pre 2.2.0 for sure.

If you are using mongodump then you should not use fsync/lock.

with :dbcommand:`fsync` or :method:`db.fsyncLock()`.

.. _backup-amazon-software-raid:

Amazon EBS in Software RAID 10 Configuration
Expand Down
4 changes: 3 additions & 1 deletion source/reference/mongodump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,10 @@ Options
.. warning:: Use :option:`--forceTableScan` with extreme caution
and consideration.

operations
.. warning::

:program:`mongodump` cannot be used while the database is locked
with :dbcommand:`fsync` or :method:`db.fsyncLock()`.

.. _mongodump-behavior:

Expand Down