patternCritical
check storage engine from shell
Viewed 0 times
enginecheckstorageshellfrom
Problem
I'm upgrading to 3.0 and ran into some issues with the upgrade. Specifically, I got an error when trying to start up
mongod via ssh, it tried to use the default dbpath instead of the one I specified in my new YAML config file. I went ahead and rebooted the machine and now mongod is up and running again. I'm a bit paranoid at this point and would like to know if there's a way to make sure the storage engine is wiredtiger from the shell.Solution
Easiest way to find the storage engine being used currently.
Inside mongo console type
It returns the storage engine being used currently
Once it is confirmed that wiredTiger is being used then type
to get all the configuration details of wiredTiger.
Inside mongo console type
db.serverStatus().storageEngineIt returns the storage engine being used currently
{ "name" : "wiredTiger" }Once it is confirmed that wiredTiger is being used then type
db.serverStatus().wiredTigerto get all the configuration details of wiredTiger.
Code Snippets
db.serverStatus().storageEngine{ "name" : "wiredTiger" }db.serverStatus().wiredTigerContext
StackExchange Database Administrators Q#96917, answer score: 68
Revisions (0)
No revisions yet.