Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-8231

Clarify the steps regarding repair data files and preserve original files

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • Server
    • None
    • 0.25

    Description

      This is for the following document:

      This document describes repairing the data files using the --repairpath option to preserve the original data files unmodified.

      However, from the docs for --repairpath:

      Specifies a working directory that MongoDB will use during the --repair operation. After --repair completes, the data files in option: --dbpath and the --repairpath directory is empty.

      There will be no data under the --repairpath directory after repair completes. So Step 2 to start mongod with the new data directory doesn't make sense.

      --repairpath is only to specify the tmp directory used for repair and it cannot used to preserve the original data files for repairing. User should take a backup of the data files before repairing, rather than relying on --repairpath.

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            linda.qin@mongodb.com Linda Qin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 24 weeks, 2 days ago