Re: [mongodb-user] How to check journalling is enabled

2,831 views
Skip to first unread message

Scott Hernandez

unread,
Jul 1, 2012, 10:28:49 AM7/1/12
to mongod...@googlegroups.com
If there a journal directory with files in it? If so, you are using journaling.

On Sun, Jul 1, 2012 at 3:07 PM, Mark <mhud...@googlemail.com> wrote:
Hi ,

I am not sure if journalling is enabled for my Mongo server. How do I go about doing that? I haven't been able to locate a command which details settings of a running server instance. If it isn't enabled can I enable it through a command without having to take the server down?

Thanks

Mark

--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb

Stephen Steneker

unread,
Jul 1, 2012, 10:36:19 PM7/1/12
to mongod...@googlegroups.com
> I am not sure if journalling is enabled for my Mongo server. How do I go
> about doing that? I haven't been able to locate a command which details
> settings of a running server instance.

Hi Mark,

If you run db.serverStatus() from the mongo shell you should see a
'dur' section if journaling is enabled:
http://www.mongodb.org/display/DOCS/serverStatus+Command

Journaling should be enabled by default for 64-bit platforms as of
MongoDB 1.9.2 (or 2.0.0 stable):
http://www.mongodb.org/display/DOCS/Journaling

> If it isn't enabled can I enable it through a command without having to take the server down?

No, you need to restart mongod to change the journal setting.

Cheers,
Stephen
Reply all
Reply to author
Forward
0 new messages