Skip to content

Added a note about how to restore the backup of oplog.rs #556

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
Jan 14, 2013
Merged
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
12 changes: 8 additions & 4 deletions source/tutorial/change-oplog-size.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ The examples in this procedure use the following configuration:
of ``/srv/mongodb``.

To change the size of the oplog for a replica set, use the following
procedure for every member of the set that may become primary.
procedure for every member of the set that may become primary.

1. Shut down the :program:`mongod` instance and restart it in
"standalone" mode running on a different port.
"standalone" mode running on a different port.

.. note::
.. note::

Shutting down the :term:`primary` member of the set will trigger
a failover situation and another member in the replica set will
Expand Down Expand Up @@ -77,6 +77,10 @@ procedure for every member of the set that may become primary.

mongodump --db local --collection 'oplog.rs' --port 37017

.. note::

Restore the backup using the `mongorestore` command.

Connect to the instance using the :program:`mongo` shell:

.. code-block:: sh
Expand Down