1
votes

Background: I installed below 2 rpm packages on CentOS 6.3(Final) 64bits with Ext4 file system -

  • mongo-10gen-2.2.1-mongodb_1.x86_64.rpm
  • mongo-10gen-server-2.2.1-mongodb_1.x86_64.rpm

Symptom: When mongod starts up at first time, there are no preallocated journal files created in specified folder. As aside note, the journal option is enable by default.

Questions: Is it normal case or not? I review manual on MongoDB. It claims

If no journal files exist, when mongod starts, it MUST preallocates new journal files

I posted mongod relevant mongo.conf below -

configurations:

logpath=/drbd0/mongo/log/mongod.log
logappend=true
fork = true
port = 27017
dbpath=/drbd0/mongo/data
pidfilepath = /var/run/mongodb/mongod.pid
bind_ip=admin1_ss_nc
replSet=rstest

Thanks in advance.

1

1 Answers

2
votes

MongoDB will only pre-allocate the journal files if it believes that it'll be faster to pre-allocate files of a given size (three files 128 MB each if running with --smallfiles and three files 1 GB each if not running with --smallfiles) than to allocate them on-demand.