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

Repair process fails with a mount folder volume on Windows

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.4.1
    • Component/s: Diagnostics
    • Environment:
      db version v2.4.1
      build info: windows sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1') BOOST_LIB_VERSION=1_49
    • ALL
    • Hide

      1) Start a mongod instance with dbpath: "E:\mongodb\data\db" and directoryperdb: true parameters.
      2) Create a database "cacheagg", insert some data and stop instance
      3) Rename folder "E:\mongodb\data\db\cacheagg" to "E:\mongodb\data\db\cacheagg_migrate"
      3) Create a mounted folder on "E:\mongodb\data\db\cacheagg"
      4) Move all files from "E:\mongodb\data\db\cacheagg_migrate" to "E:\mongodb\data\db\cacheagg"
      5) Start instance and you review that everything is ok and then stop instance
      6) Start repair process
      options:

      { auth: true, dbpath: "E:\mongodb\data\db", directoryperdb: true, keyFile: "C:\mongodb\bin\keyfilecacheagg.txt", logpath: "E:\mongodb\log\mongo.log", repair: true, repairpath: "E:\mongodb\data\db\mongodb_repair" }
      Show
      1) Start a mongod instance with dbpath: "E:\mongodb\data\db" and directoryperdb: true parameters. 2) Create a database "cacheagg", insert some data and stop instance 3) Rename folder "E:\mongodb\data\db\cacheagg" to "E:\mongodb\data\db\cacheagg_migrate" 3) Create a mounted folder on "E:\mongodb\data\db\cacheagg" 4) Move all files from "E:\mongodb\data\db\cacheagg_migrate" to "E:\mongodb\data\db\cacheagg" 5) Start instance and you review that everything is ok and then stop instance 6) Start repair process options: { auth: true, dbpath: "E:\mongodb\data\db", directoryperdb: true, keyFile: "C:\mongodb\bin\keyfilecacheagg.txt", logpath: "E:\mongodb\log\mongo.log", repair: true, repairpath: "E:\mongodb\data\db\mongodb_repair" }

      We create use a mounted folder on Windows to use a database on a different volume for improve performance disk.
      I tried to use repair option, the repair process fails with a error to access to the mounted folder (see logs).

        1. mongo_mount_folder.PNG
          mongo_mount_folder.PNG
          12 kB
        2. repair_error_mount_folder.txt
          23 kB

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            david.verdejo@logitravel.com David Verdejo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: