I am having a space problem with mongoDB and my current ubuntu 12.04 desktop computer. I always used the default setting which means that the data is physically stored under /var/lib/mongodb. By the time the database size grew vastly and now I would like to drop some collections to have some empty space in my hard drive. I have checked this and other methods But whenever I run the remove function I keep getting the following error message:
Can't take a write lock while out of disk space
The first solution came to my mind is to set the path of mongodb to an external harddisk or a usb disk and physically remove the folder using rm -rf
. Would that be a safe solution? Are there any other solutions to this problem?