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

Running mongod with --repair and --repairpath does alter the existing data files.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • v1.3.14
    • manual
    • None
    • 4
    • true

    Description

      To fix:

      See the last sentence here:
      http://docs.mongodb.org/manual/reference/program/mongod/#cmdoption--repair
      and the Note at the bottom of the "Definition" block:
      http://docs.mongodb.org/manual/reference/command/repairDatabase/#definition

      Basically the --repairpath is only used for storing temporary files while the repair is running. Once finished the --repairpath folder will be empty and the original files in the dbpath will be replaced.

      Usually --repairpath is used when somebody is trying to reclaim disk space and it's using another volume with sufficient space to run the repair.

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            gianfranco Gianfranco Palumbo
            Jonathan Dahl Jonathan Dahl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 33 weeks, 6 days ago