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

Should be a way to run mongodump without requiring lock file

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 2.2.3
    • Tools
    • None
    • ALL

    Description

      I have created a EBS volume from a snapshot and mounted the volume read-only. I want to be able to dump the database contained on that read-only file system. I can't, because "mongodump --dbpath" insists on creating a lock file!

      There should be a way to run mongodump in a "trust me, I know what I'm doing" mode where it doesn't try to create the lock file.

      -----------------------------------

      $ sudo mongodump --dbpath /mongorestore
      [sudo] password for roy:

      If you are running a mongod on the same path you should connect to that instead of direct data file access

      Wed Jun 19 01:14:31 dbexit:
      Wed Jun 19 01:14:31 [tools] shutdown: going to close listening sockets...
      Wed Jun 19 01:14:31 [tools] shutdown: going to flush diaglog...
      Wed Jun 19 01:14:31 [tools] shutdown: going to close sockets...
      Wed Jun 19 01:14:31 [tools] shutdown: waiting for fs preallocator...
      Wed Jun 19 01:14:31 [tools] shutdown: closing all files...
      Wed Jun 19 01:14:31 [tools] closeAllFiles() finished
      Wed Jun 19 01:14:31 [tools] shutdown: removing fs lock...
      Wed Jun 19 01:14:31 [tools] couldn't remove fs lock errno:9 Bad file descriptor
      Wed Jun 19 01:14:31 dbexit: really exiting now

      Attachments

        Activity

          People

            Unassigned Unassigned
            roysmith Roy Smith
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: