Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-14530

--dbpath does not support drive root properly

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major - P3 Major - P3
    • None
    • 2.6.3
    • Storage
    • None
    • Windows 7 x64
    • Windows
    • Hide

      Attempt to have MongoDB use a drive root as dbpath and run it as a Windows Service.

      Show
      Attempt to have MongoDB use a drive root as dbpath and run it as a Windows Service.

    Description

      Configured a mongod instance where I had dedicated a separate drive for storage and assigned it the drive letter M.

      While trying to setup mongod as a Windows service, it would not take "M:\" as a valid dbpath, But it would take "M:". For simplicity's sake (nothing else would be using the drive) I wanted to store all data at the root directory.

      Things appeared to be working correctly because files were being allocated in M:\ as the databases grew. However, upon inspection, all data was actually being written to C:\Windows\System32\m_<db name>.x and the files on M:\ were zeroed out and empty.

      I created a directory on M for data and moved the datafiles from C to M with no apparent loss of data.

      Attachments

        Activity

          People

            mark.benvenuto@mongodb.com Mark Benvenuto
            peter.graening Peter Graening
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: