Skip to content

Commit 28fa095

Browse files
Isabella SiuIsabella Siu
authored andcommitted
DOCS-11987 repaired node can't rejoin replica set
1 parent e0bb382 commit 28fa095

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

source/includes/warning-repair.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,20 @@
66
- Avoid running :dbcommand:`repairDatabase` against a replica set.
77
If you are trying to repair a :term:`replica set` member, and you
88
have access to an intact copy of your data (e.g. a recent backup
9-
or an intact member of the :term:`replica set`), you should
10-
restore from that intact copy (see
9+
or an intact member of the :term:`replica set`), you must restore
10+
from that intact copy (see
1111
:doc:`/tutorial/resync-replica-set-member`), and **not** use
12-
:dbcommand:`repairDatabase`.
12+
:dbcommand:`repairDatabase`. A mongod started with the
13+
:dbcommand:`repairDatabase` command or associated wrappers and
14+
modified by the operation cannot rejoin its original replica set
15+
without a full resync.
1316

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

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

source/tutorial/resync-replica-set-member.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ resynchronize the member by removing its data and performing an
1818
:ref:`initial sync <replica-set-initial-sync>`.
1919

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

2627
MongoDB provides two options for performing an initial sync:
2728

0 commit comments

Comments
 (0)