@@ -15,8 +15,12 @@ milliseconds by default, and ensures that MongoDB will be able to
15
15
recover a constant state even in the case of an unclean shutdown due to
16
16
power loss or other system failure.
17
17
18
- If you do not have journaling enabled, use the following procedure to
19
- recover data that may be in an inconsistent state.
18
+ If you are *not* running as part of a :term:`replica set` **and** do
19
+ *not* have journaling enabled use the following procedure to recover
20
+ data that may be in an inconsistent state. If you are running as part
21
+ of a replica set, you should *always* restore from a backup or restart
22
+ the :program:`mongod` instance with an empty :setting:`dbpath` and
23
+ allow MongoDB to resync the data.
20
24
21
25
.. seealso:: The ":doc:`/administration`" documents and the
22
26
documentation of the :setting:`repair`, :setting:`repairpath`, and
@@ -34,8 +38,10 @@ Indications
34
38
~~~~~~~~~~~
35
39
36
40
When you are aware of a :program:`mongod` instance running without
37
- journaling that stops unexpectedly, you should always run the repair
38
- operation before starting MongoDB again.
41
+ journaling that stops unexpectedly **and** you're not running with
42
+ replication, you should always run the repair operation before
43
+ starting MongoDB again. If you're using replication, then restore from
44
+ a backup and allow replication to synchronize your data.
39
45
40
46
If the ``mongod.lock`` file in the data directory specified by
41
47
:setting:`dbpath`, ``/data/db`` by default, is *not* a zero-byte file,
0 commit comments