Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

MongoDB uses the WiredTiger storage engine, which provides a repair command.
The repair command in MongoDB with the WiredTiger storage engine checks for inconsistencies, rebuilds indexes, and compacts data by removing unused space, potentially reducing the database's size on disk.
It also attempts to recover as much data as possible from corrupted or damaged files.


Procedure


  • Stop all BVQ-Services
  • Windows Command line:

    Code Block
    themeMidnight
    "C:\Program Files\SVA\BVQ\bvq-core\bvq-mongodb\bin\mongod.exe" --dbpath "C:\ProgramData\SVA\BVQ\bvq-mongodb\db" --directoryperdb --wiredTigerDirectoryForIndexes --repair
    
    


...