Want to use journaling enabled DB in 32 bit system-MongoDB

流过昼夜 提交于 2019-12-08 09:38:48

问题


I want to run an existing application, that was developed earlier on 64 bit machine. It already has an existing database mongoDB with journaling enabled for 64 bit.

In 32 bit system journaling is not enabled, so when I try to run MongoDB service with this DB, it does not work

How can i reuse this DB and able to run this application in my 32 bit system?


回答1:


You can manually enable journaling in 32bit MongoDB by starting mongod with the command line parameter --journal.

When it still doesn't work, you can use the mongodump utility on the 64bit database to export your database to a file. Then you can use mongorestore to import it into your 32bit database.

However, keep in mind that MongoDB has severe limitations in 32bit mode, the most critical one being that your total database size is restricted to about 2GB of data, even less when you have journaling enabled (you can reduce the impact of journaling a bit with the additional parameter --smallfile). When your database is larger than this, it will not work on a 32bit system.



来源:https://stackoverflow.com/questions/26922914/want-to-use-journaling-enabled-db-in-32-bit-system-mongodb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!