Skip to content

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

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

Closed
wants to merge 1 commit into from
Closed
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
11 changes: 8 additions & 3 deletions source/includes/warning-repair.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@

- 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`).
or an intact member of the :term:`replica set`), you must restore
from that intact copy (see
:doc:`/tutorial/resync-replica-set-member`). A mongod started with
:option:`mongod --repair` and modified by the operation cannot
rejoin its original replica set without a full resync.

- Only use :option:`mongod --repair` if you have no other options.

- Make a backup copy of the dbpath directory before running repair.
The operation removes without saving 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