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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • v1.3.14
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved:
              9 years, 23 weeks, 1 day ago