Skip to content

Commit 059076b

Browse files
Isabella Siukay-kim
authored andcommitted
DOCS-11987 repaired node can't rejoin replica set
1 parent 20dfadd commit 059076b

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

source/includes/warning-repair.rst

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,22 @@
33
- Before using :dbcommand:`repairDatabase`, make a backup copy of
44
the dbpath directory.
55

6-
- Avoid running :dbcommand:`repairDatabase` against a replica set.
7-
If you are trying to repair a :term:`replica set` member, and you
8-
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
11-
:doc:`/tutorial/resync-replica-set-member`), and **not** use
12-
:dbcommand:`repairDatabase`.
6+
- Avoid running :dbcommand:`repairDatabase` and its wrappers against
7+
a replica set. To repair a replica set member when you have access
8+
to an intact copy of your data (e.g. a recent backup or an intact
9+
member of the :term:`replica set`), restore from that intact copy
10+
(see :doc:`/tutorial/resync-replica-set-member`). Specific to
11+
:option:`mongod --repair` and replica set members, if you run
12+
:option:`mongod --repair` against a replica set member and the
13+
operation modifies the data or the metadata, you must also perform
14+
a full resync of the member to rejoin the replica set.
1315

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

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

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)