Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1609

repair should clear lock file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.6.0
    • Fix Version/s: 1.9.0
    • Component/s: Storage
    • Labels:
      None
    • Operating System:
      ALL

      Description

      Someone asked if repair can automatically clear the lock file. Do we want to implement that?

      aaron-staples-macbook-pro:mongo3 aaron$ ./mongod --repair
      Tue Aug 10 10:48:53 MongoDB starting : pid=61129 port=27017 dbpath=/data/db/ 64-bit
      Tue Aug 10 10:48:53 db version v1.6.0, pdfile version 4.5
      Tue Aug 10 10:48:53 git version: 2c7f164b653f0d703947572ede064aed41cc2185
      Tue Aug 10 10:48:53 sys info: Darwin aaron-staples-macbook-pro.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386 BOOST_LIB_VERSION=1_42

                                • old lock file: /data/db/mongod.lock. probably means unclean shutdown
                                  recommend removing file and running --repair
                                  see: http://dochub.mongodb.org/core/repair for more information
                                  *************

        Attachments

          Activity

            People

            • Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: