Skip to content

DOCS-11987 repaired node can't rejoin replica set #3416

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 9, 2018
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
19 changes: 12 additions & 7 deletions source/includes/warning-repair.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,22 @@
- Before using :dbcommand:`repairDatabase`, make a backup copy of
the dbpath directory.

- Avoid running :dbcommand:`repairDatabase` against a replica set.
If you are trying to repair a :term:`replica set` member, and you
have access to an intact copy of your data (e.g. a recent backup
or an intact member of the :term:`replica set`), you should
restore from that intact copy (see
:doc:`/tutorial/resync-replica-set-member`), and **not** use
:dbcommand:`repairDatabase`.
- Avoid running :dbcommand:`repairDatabase` and its wrappers against
a replica set. To repair a replica set member when you have access
to an intact copy of your data (e.g. a recent backup or an intact
member of the :term:`replica set`), restore from that intact copy
(see :doc:`/tutorial/resync-replica-set-member`). Specific to
:option:`mongod --repair` and replica set members, if you run
:option:`mongod --repair` against a replica set member and the
operation modifies the data or the metadata, you must also perform
a full resync of the member to rejoin the replica set.

- Only use the :dbcommand:`repairDatabase` command and associated
wrappers, including :method:`db.repairDatabase()` and
:option:`mongod --repair`, if you have no other options. These
operations remove and do not save any corrupt data during the
repair process.

- If repair fails to complete for any reason, you must restart the
instance using the :option:`--repair <mongod --repair>` option.

9 changes: 5 additions & 4 deletions source/tutorial/resync-replica-set-member.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ resynchronize the member by removing its data and performing an
:ref:`initial sync <replica-set-initial-sync>`.

This tutorial addresses both resyncing a stale member and creating a
new member using seed data from another member. When syncing a member,
choose a time when the system has the bandwidth to move a large amount
of data. Schedule the synchronization during a time of low usage or
during a maintenance window.
new member using seed data from another member, both of which can be
used to restore a replica set member. When syncing a member, choose a
time when the system has the bandwidth to move a large amount of data.
Schedule the synchronization during a time of low usage or during a
maintenance window.

MongoDB provides two options for performing an initial sync:

Expand Down