[SERVER-9961] Should be a way to run mongodump without requiring lock file Created: 19/Jun/13  Updated: 10/Dec/14  Resolved: 19/Jun/13

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 2.2.3
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Roy Smith Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 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



 Comments   
Comment by Eliot Horowitz (Inactive) [ 19/Jun/13 ]

SERVER-593

Generated at Thu Feb 08 03:21:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.