Skip to content

Commit 85b11a6

Browse files
author
Ed Costello
committed
Address DOCS-385 by adding an explicit warning about recovery of a replica set member
1 parent 079ac75 commit 85b11a6

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 do not have journaling enabled, use the following procedure to
@@ -27,6 +27,13 @@ recover data that may be in an inconsistent state.
2727
"Control-C" (when running :program:`mongod` in interactive mode,)
2828
or ``kill $(pidof mongod)`` or ``kill -2 $(pidof mongod)``.
2929

30+
.. warning:: Recovering a member of a replica set
31+
32+
Do not use this procedure to recover a member of a :term:`replica set`.
33+
Instead you should either restore from a :doc:`backup </administration/backups>`
34+
or re-sync from an intact member of the set.
35+
36+
3037
Process
3138
-------
3239

0 commit comments

Comments
 (0)