[SERVER-8406] There are no preallocated journal files created in specified folder when mongod start up at first time Created: 30/Jan/13  Updated: 04/Feb/13  Resolved: 30/Jan/13

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Question Priority: Critical - P2
Reporter: jameszhou Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Backgrouds:
I installed below 2 rpm packages on CentOS 6.3(Final) 64bits
mongo-10gen-2.2.1-mongodb_1.x86_64.rpm
mongo-10gen-server-2.2.1-mongodb_1.x86_64.rpm

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

Questions:
It is normal case or not? I review manual in www.mongodb.org site. It claims "If no journal files exist, when mongod starts, it MUST preallocates new journal files"

I posted mongod relevant configurations:
#################################################################################################

  1. mongo.conf

#where to log
logpath=/drbd0/mongo/log/mongod.log

logappend=true

  1. fork and run in background
    fork = true

port = 27017

dbpath=/drbd0/mongo/data

  1. location of pidfile
    pidfilepath = /var/run/mongodb/mongod.pid
  1. Disables write-ahead journaling
  2. nojournal = true
  1. Enables periodic logging of CPU utilization and I/O wait
    #cpu = true
  1. Turn on/off security. Off is currently the default
    #noauth = true
    #auth = true
  1. Verbose logging output.
    #verbose = true
  1. Inspect all client data for validity on receipt (useful for
  2. developing drivers)
    #objcheck = true
  1. Enable db quota management
    #quota = true
  1. Set oplogging level where n is
  2. 0=off (default)
  3. 1=W
  4. 2=R
  5. 3=both
  6. 7=W+some reads
    #diaglog = 0
  1. Ignore query hints
    #nohints = true
  1. Disable the HTTP interface (Defaults to localhost:27018).
    #nohttpinterface = true
  1. Turns off server-side scripting. This will result in greatly limited
  2. functionality
    #noscripting = true
  1. Turns off table scans. Any query that would do a table scan fails.
    #notablescan = true
  1. Disable data file preallocation.
    #noprealloc = true
  1. Specify .ns file size for new databases.
  2. nssize = <size>
  1. Accout token for Mongo monitoring server.
    #mms-token = <token>
  1. Server name for Mongo monitoring server.
    #mms-name = <server-name>
  1. Ping interval for Mongo monitoring server.
    #mms-interval = <seconds>
  1. Replication Options
  1. in replicated mongo databases, specify here whether this is a slave or master
    #slave = true
    #source = master.example.com
  2. Slave only: specify a single database to replicate
    #only = master.example.com
  3. or
    #master = true
    #source = slave.example.com

bind_ip=admin1_ss_nc

replSet=rstest
#################################################################################################

Thanks in advanced!
James Zhou



 Comments   
Comment by jameszhou [ 04/Feb/13 ]

Thank you Eliot! Appreciate!

Comment by Eliot Horowitz (Inactive) [ 03/Feb/13 ]

This is normal if your disk is fast.
Preallocation only happens on slower disks.

Comment by jameszhou [ 03/Feb/13 ]

Thank you for your recommand!

Comment by Ian Whalen (Inactive) [ 31/Jan/13 ]

James, the MongoDB community on Stack Overflow (www.stackoverflow.com) is a very active one and a good place to ask questions.

Comment by jameszhou [ 31/Jan/13 ]

Hi Ian,
Thank you for your QUICK reply.Unfortunately, I can't access to groups.google.com/group/mongodb-user due to some reasons. Have any other alternative way to solve?

Comment by Ian Whalen (Inactive) [ 30/Jan/13 ]

Hi James, the SERVER project is intended for bug fixes and features requests - could you please open a new thread with your question in the mongodb-user forums at groups.google.com/group/mongodb-user and then open a ticket here if this is confirmed as a bug or feature request?

Thanks!

Comment by jameszhou [ 30/Jan/13 ]

Add information:
I deploy ext4 file system on CentOS 6.3

Generated at Thu Feb 08 03:17:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.