> For the complete documentation index, see [llms.txt](https://docs.percona.com/percona-monitoring-and-management/3/llms.txt).

# MongoDB journal enabled

## Description

This advisor warns if the journal is explicitly disabled with `storage.journal.enabled: false` on MongoDB versions before 7.0. A `mongod` that does not set the option is not reported, and MongoDB 7.0 and later are never reported because they always journal. Disabled journal is dangerous because you could have a serious issue for data durability in case of a failure.

For Production systems, enable journal to ensure that data files are valid/recoverable.

It is always recommended to enable the journal.

MongoDB enables journaling by default. Before 7.0, you can turn it off only by setting `storage.journal.enabled: false` explicitly, which is the only case this advisor reports. MongoDB 7.0 and later always journal and ignore the option.

For more information, see the [Journaling section](https://docs.mongodb.com/manual/core/journaling/) in the MongoDB documentation.

## Resolution

To enable journaling:

1. Enable journal.

1. Edit **mongod.conf** and set the following parameter:

   ```text
   storage:
     journal:
       enabled: true
   ```

1. Roll-restart your `mongod` (data bearing) nodes.

## Need more support from Percona?

Percona experts bring years of experience in tackling tough database performance issues and design challenges.
