Skip to content

Commit 47fd243

Browse files
author
Sam Kleinman
committed
merge: DOCS-385 clarification about repairing replica sets
2 parents 1087015 + 85b11a6 commit 47fd243

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

source/tutorial/recover-data-following-unexpected-shutdown.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ To prevent data inconsistency and corruption, always shut down the
1212
database cleanly, and use the :ref:`durability journaling
1313
<setting-journal>`. The journal writes data to disk every 100
1414
milliseconds by default, and ensures that MongoDB will be able to
15-
recover a constant state even in the case of an unclean shutdown due to
15+
recover to a consistent state even in the case of an unclean shutdown due to
1616
power loss or other system failure.
1717

1818
If you are *not* running as part of a :term:`replica set` **and** do
@@ -31,6 +31,13 @@ allow MongoDB to resync the data.
3131
"Control-C" (when running :program:`mongod` in interactive mode,)
3232
or ``kill $(pidof mongod)`` or ``kill -2 $(pidof mongod)``.
3333

34+
.. warning:: Recovering a member of a replica set
35+
36+
Do not use this procedure to recover a member of a :term:`replica set`.
37+
Instead you should either restore from a :doc:`backup </administration/backups>`
38+
or re-sync from an intact member of the set.
39+
40+
3441
Process
3542
-------
3643

0 commit comments

Comments
 (0)