I cannot use wiredTiger
as a service for MongoDB
.
I followed this step by step guide;
http://docs.mongodb.org/manual/release-notes/3.0-upgrade/
Step-1: Start 3.0 mongod.OK, I did.
Step-2: Export the data using mongodump. OK
Step-3: Create data directory for WiredTiger. OK – user permissions were adjusted.
Step-4: Restart the mongod with WiredTiger. OK
mongod --storageEngine wiredTiger --dbpath <newWiredTigerDBPath>
And yes, mongod
worked. But the Step-5
says that "Upload the exported data using mongorestore." However my console remains busy and says "waiting for connections on port 27017" because the last command does not include a service like service mongod start
.
Then I tried editing my /etc/mongod.conf
file to run as a service. But I couldn't. I added wiredTiger directory as dbpath but I guess I need to edit /etc/init/mongod.conf
file because it contains some codes that change the permissions of the db directory.
After spending 8 hours, I don't think there's sufficient documentation to help,
so I'd like to ask;
What should I do in order to be able to use wiredTiger with MongoDB?
I'm wondering if there's anybody who has managed to achieve this?
console
Edit on 2015-04-01:
I tried change-storage-engine-to-wiredtiger section that is on the documentation.
Best Answer
I wasn't able to use wiredTiger upgrading MongoDB. However, at
May 17
I uninstalled MongoDB 2.6 then installed MongoDB 3.0.3 . Immediate after the installation, I addedstorageEngine=wiredTiger
on top of my mongod.conf file. Then I gavesudo service mongod start
command and eventually I could.Edit:
For fresh installed as directed by official documentation;
sudo nano /etc/mongod.conf
# engine
line toengine: wiredTiger
like the belowsudo service mongod start
.
Edit:
If the current version is supported the wiredTiger;
sudo service mongod stop
commandstorageEngine=wiredTiger
text as the first line ofmongod.conf
file/var/lib/mongodb
(or/data/db
folder if used)[This is important. Because MongoDB cannot convert the current MMAP db files to wiredTiger format]
sudo service mongod start
command