File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 6
6
- Avoid running :dbcommand: `repairDatabase ` against a replica set.
7
7
If you are trying to repair a :term: `replica set ` member, and you
8
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
9
+ or an intact member of the :term: `replica set `), you must restore
10
+ from that intact copy (see
11
11
: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.
13
16
14
17
- Only use the :dbcommand: `repairDatabase ` command and associated
15
18
wrappers, including :method: `db.repairDatabase() ` and
16
19
:option: `mongod --repair `, if you have no other options. These
17
20
operations remove and do not save any corrupt data during the
18
21
repair process.
19
22
23
+ - If repair fails to complete for any reason, you must restart the
24
+ instance using the :option: `--repair <mongod --repair> ` option.
25
+
Original file line number Diff line number Diff line change @@ -18,10 +18,11 @@ resynchronize the member by removing its data and performing an
18
18
:ref:`initial sync <replica-set-initial-sync>`.
19
19
20
20
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.
25
26
26
27
MongoDB provides two options for performing an initial sync:
27
28
You can’t perform that action at this time.
0 commit comments