Details
-
Bug
-
Resolution: Done
-
Blocker - P1
-
None
-
None
-
None
-
None
-
ALL
Description
I have a Mongo machine with about 1GB of disk space for mongo data but I am only able to use about 250 MB of it. The stats are below. Looks like the data files are preallocated to about 1GB - shouldn't I be able to use the entire preallocated 1GB allocated instead of just 250 MB? Writes are failing due to lack of disk space.
{
"db": "testdblarge2",
"collections": 4,
"objects": 3137000,
"avgObjSize": 76.00005100414408,
"dataSize": 238412160,
"storageSize": 394350592,
"numExtents": 25,
"indexes": 2,
"indexSize": 101807552,
"fileSize": 1056702464,
"nsSizeMB": 16,
"ok": 1,
"refreshTime": 1362595439679
}
Here is the error that I see in the log file
Wed Mar 6 04:01:46 [initandlisten] connection accepted from 176.111.108.38:47601 #58 (3 connections now open)
Wed Mar 6 04:01:51 [conn24] insert testdblarge2.testCollection2-cacd8500-7af6-49f6-92a3-5542c544625c keyUpdates:0 locks(micros) w:112106 112ms
Wed Mar 6 04:01:51 [FileAllocator] allocating new datafile /mongodb_data/testdblarge2.6, filling with zeroes...
Wed Mar 6 04:01:52 [conn24] insert testdblarge2.testCollection2-cacd8500-7af6-49f6-92a3-5542c544625c keyUpdates:0 locks(micros) w:105417 105ms
Wed Mar 6 04:01:58 [FileAllocator] FileAllocator: posix_fallocate failed: errno:28 No space left on device falling back
Wed Mar 6 04:01:58 [FileAllocator] error: failed to allocate new file: /mongodb_data/testdblarge2.6 size: 536608768 failure creating new datafile; lseek failed for fd 19 with errno: errno:28 No space left on device. will try again in 10