Getting : conflicts with current storage engine option for directoryPerDB

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.0.4
    • Component/s: Admin
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I am trying to start mongod but getting below error:

      ===================================
      config file :

      systemLog:
         destination: file
         path: "/var/log/mongodb/mongod.log"
         quiet: true
         logAppend: true
      storage:
         dbPath: "/data/db"
         directoryPerDB: true
         journal:
            enabled: true
         smallFiles: true
      processManagement:
         fork: true
         pidFilePath: "/usr/lib/mongodb/mongod.pid"
      net:
         #bindIp: 127.0.0.1
         port: XXXX
         http:
            enabled: false
      replication:
       replSetName: "rs1"
       oplogSizeMB: 100
      security:
        keyFile: "/usr/lib/mongodb/keyFile/secretKey.key"
        authorization: enabled
      

      When i run I am getting error.

      mongod --config /usr/lib/mongodb/conf/rs_member.conf
      2016-01-06T04:59:49.227-0600 W CONTROL  Option: storage.smallFiles is deprecated. Please use storage.mmapv1.smallFiles instead.
      about to fork child process, waiting until server is ready for connections.
      forked process: 27368
      ERROR: child process failed, exited with error number 100
      

      Mongod.log says...

      2016-01-06T04:59:49.270-0600 I STORAGE  [initandlisten] exception in initAndListen: 72 Requested option conflicts with current storage engine option for directoryPerDB; you requested true but the current server storage is already set to false and cannot be changed, terminating
      2016-01-06T04:59:49.270-0600 I CONTROL  [initandlisten] dbexit:  rc: 100
      2016-01-06T05:08:22.011-0600 I CONTROL  ***** SERVER RESTARTED *****
      

        1. image-2018-08-08-20-47-39-525.png
          128 kB
          Harshad More
        2. image-2018-08-08-20-50-32-671.png
          127 kB
          Harshad More
        3. image-2018-08-08-20-50-52-053.png
          140 kB
          Harshad More

            Assignee:
            Kelsey Schubert
            Reporter:
            ASHISH FRANCIS
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: