-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.2.3
-
Component/s: Tools
-
None
-
ALL
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