Skip to content

improve wording in 'recover data following unexpected shutdown' instruct... #1074

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions source/tutorial/recover-data-following-unexpected-shutdown.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ output:

Unclean shutdown detected.

This indicates that you need to remove the lockfile and run repair. If
This indicates that you need to run mongod with the --repair option. If
you run repair when the ``mongodb.lock`` file exists without the
:option:`mongod --repairpath` option, you will see a message that
contains the following line:
Expand All @@ -70,8 +70,10 @@ contains the following line:

old lock file: /data/db/mongod.lock. probably means unclean shutdown

You must remove the lockfile **and** run the repair operation before
starting the database normally using the following procedure:
It is recommended that you first run repair with the --repairpath option
pointing to this lockfile. If this fails, as a last resort you may
remove the lockfile **and** run the repair operation before
starting the database normally. These procedures are detailed below:

Overview
~~~~~~~~
Expand All @@ -87,7 +89,7 @@ Overview
There are two processes to repair data files that result from an
unexpected shutdown:

#. Use the :option:`--repair <mongod --repair>` option in
#. (Recommended) Use the :option:`--repair <mongod --repair>` option in
conjunction with the :option:`--repairpath <mongod --repairpath>`
option. :program:`mongod` will read the existing data files, and
write the existing data to new data files. This does not modify or
Expand Down