Is there a way to regenerate a missing WiredTiger.wt
? Our MongoDB instance stopped working (bizarrely), and that file got missing from the dbpath
folder—Seems like this behaviour is known.
BTW, the repair utility doesn't succeed:
file:WiredTiger.wt, connection: .//WiredTiger.wt: handle-open: open: No such file or directory
Losing the database is hard to stomach...
Any idea? Thanks.
P.S. We still got all the other .wt
files.
wt files contain the data of the MongoDB collections and indexes that you observe as a client connected to a MongoDB instance. Once you've identified the WT ident value for the collection or index you want to inspect you can use that in the URI argument to the wt dump command.
You need a suitable software like WildTangent to open a WT file. Without proper software you will receive a Windows message "How do you want to open this file?" or "Windows cannot open this file" or a similar Mac/iPhone/Android alert.
WiredTiger is the default storage engine starting in MongoDB 3.2. It is well-suited for most workloads and is recommended for new deployments. WiredTiger provides a document-level concurrency model, checkpointing, and compression, among other features. In MongoDB Enterprise, WiredTiger also supports Encryption at Rest.
wt backup. Perform a backup of a database or set of data sources. The backup command performs a backup of the database, copying the underlying files to a specified directory, which can be subsequently opened as a WiredTiger database.
The WiredTiger.wt
file includes essential metadata about a MongoDB data directory: which collections & indexes exist as well as the latest checkpoints in each of those files. If WiredTiger.wt
has been completely removed from your dbPath
there is currently no process or tool to recreate this metadata, short of restoring the full dbPath
from a backup copy. While you do have data files, you've unfortunately lost the catalog describing what these files contain and how they relate.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With