Unrecognized option: storage.directoryperdb

1,007 views
Skip to first unread message

Edward L

unread,
Nov 4, 2016, 12:28:37 PM11/4/16
to mongodb-user
I have installed MongoDB 3.2.4 on Red Hat 6.6. I use YAML format configuration file as below:

$ vi /etc/mongod.conf
storage:
    dbPath: "/var/data/mongodb"
    directoryperdb: true
    journal:
        enabled: true
systemLog:
    destination: file
    path: "/var/log/mongodb/mongod.log"
    logAppend: true
    timeStampFormat: iso8601-local
processManagement:
    fork: true
    pidFilePath: "/var/data/mongodb/mongod.pid"
net:
    port: 27017

When I started mongod, I got "Unrecognized option: storage.directoryperdb" error. Please note that I do have a space after "directoryperdb:"

$ /opt/mongo-3.2.4/bin/mongod -f /etc/mongod.conf
Unrecognized option: storage.directoryperdb

Can anyone helps?

Thanks,
Ed

Kevin Adistambha

unread,
Nov 6, 2016, 5:40:59 PM11/6/16
to mongodb-user

Hi,

When I started mongod, I got “Unrecognized option: storage.directoryperdb” error. Please note that I do have a space after “directoryperdb:”

The config keys are case-sensitive, so it should be directoryPerDB instead of directoryperdb (as perstorage.directoryPerDB page)

Please note that currently the latest MongoDB version is 3.2.10. If applicable, you could follow the procedure outlined in Install MongoDB Community Edition on Red Hat Enterprise or CentOS Linux to install the latest version for bugfixes and improvements.

Best regards,
Kevin

Message has been deleted

Edward L

unread,
Nov 8, 2016, 10:17:51 AM11/8/16
to mongodb-user

Edward L

unread,
Nov 9, 2016, 1:39:32 PM11/9/16
to mongodb-user
Hi Kevin,

Looks my post on yesterday didn't show up.

My issue was resolved by the correct case sensitive option in mongod.conf.

Thank you for your help!
Ed


On Tuesday, November 8, 2016 at 10:16:25 AM UTC-5, Edward L wrote:


On Friday, November 4, 2016 at 12:28:37 PM UTC-4, Edward L wrote:
Reply all
Reply to author
Forward
0 new messages