HiveBrain v1.2.0
Get Started
← Back to all entries
patternCritical

check storage engine from shell

Submitted by: @import:stackexchange-dba··
0
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

db.serverStatus().storageEngine


It returns the storage engine being used currently

{ "name" : "wiredTiger" }


Once it is confirmed that wiredTiger is being used then type

db.serverStatus().wiredTiger


to get all the configuration details of wiredTiger.

Code Snippets

db.serverStatus().storageEngine
{ "name" : "wiredTiger" }
db.serverStatus().wiredTiger

Context

StackExchange Database Administrators Q#96917, answer score: 68

Revisions (0)

No revisions yet.