Open dboyliao opened 9 years ago
Run without --smallfiles: mongod --port 27017 --dbpath /data/db --logpath /share/db.log --fork
mongod --port 27017 --dbpath /data/db --logpath /share/db.log --fork
2015-01-05T06:15:37.031+0000 [initandlisten] MongoDB starting : pid=48 port=27017 dbpath=/data/db 64-bit host=100d0cd09324 2015-01-05T06:15:37.031+0000 [initandlisten] db version v2.6.6 2015-01-05T06:15:37.032+0000 [initandlisten] git version: 608e8bc319627693b04cc7da29ecc300a5f45a1f 2015-01-05T06:15:37.032+0000 [initandlisten] build info: Linux build10.nj1.10gen.cc 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49 2015-01-05T06:15:37.032+0000 [initandlisten] allocator: tcmalloc 2015-01-05T06:15:37.032+0000 [initandlisten] options: { net: { port: 27017 }, processManagement: { fork: true }, storage: { dbPath: "/data/db" }, systemLog: { destination: "file", path: "/share/db.log" } } 2015-01-05T06:15:37.084+0000 [initandlisten] journal dir=/data/db/journal 2015-01-05T06:15:37.084+0000 [initandlisten] recover : no journal files present, no recovery needed 2015-01-05T06:15:37.084+0000 [initandlisten] 2015-01-05T06:15:37.084+0000 [initandlisten] ERROR: Insufficient free space for journal files 2015-01-05T06:15:37.085+0000 [initandlisten] Please make at least 3379MB available in /data/db/journal or use --smallfiles 2015-01-05T06:15:37.085+0000 [initandlisten] 2015-01-05T06:15:37.085+0000 [initandlisten] exception in initAndListen: 15926 Insufficient free space for journals, terminating 2015-01-05T06:15:37.085+0000 [initandlisten] dbexit: 2015-01-05T06:15:37.085+0000 [initandlisten] shutdown: going to close listening sockets... 2015-01-05T06:15:37.085+0000 [initandlisten] shutdown: going to flush diaglog... 2015-01-05T06:15:37.085+0000 [initandlisten] shutdown: going to close sockets... 2015-01-05T06:15:37.085+0000 [initandlisten] shutdown: waiting for fs preallocator... 2015-01-05T06:15:37.085+0000 [initandlisten] shutdown: lock for final commit... 2015-01-05T06:15:37.085+0000 [initandlisten] shutdown: final commit... 2015-01-05T06:15:37.085+0000 [initandlisten] shutdown: closing all files... 2015-01-05T06:15:37.085+0000 [initandlisten] closeAllFiles() finished 2015-01-05T06:15:37.085+0000 [initandlisten] journalCleanup... 2015-01-05T06:15:37.085+0000 [initandlisten] removeJournalFiles 2015-01-05T06:15:37.087+0000 [initandlisten] shutdown: removing fs lock... 2015-01-05T06:15:37.087+0000 [initandlisten] dbexit: really exiting now
Run with --smallfiles mongod --port 27017 --dbpath /data/db --logpath /share/db.log --fork --smallfiles
mongod --port 27017 --dbpath /data/db --logpath /share/db.log --fork --smallfiles
about to fork child process, waiting until server is ready for connections. forked process: 56 child process started successfully, parent exiting
Trying build mongo from binary. https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.6.6.tgz
Run without --smallfiles:
mongod --port 27017 --dbpath /data/db --logpath /share/db.log --fork
Run with --smallfiles
mongod --port 27017 --dbpath /data/db --logpath /share/db.log --fork --smallfiles
Goal: Get rid of --smallfiles