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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v1.3.14
    • Component/s: manual
    • Labels:
      None
    • Last comment by Customer:
      true
    • Actual Time:
      4

      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

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

              Dates

              Created:
              Updated:
              Resolved:
              Days since reply:
              7 years, 10 weeks, 2 days ago
              Date of 1st Reply: