简体   繁体   English

恢复缺少的WiredTiger.wt

[英]Recovering a missing WiredTiger.wt

Is there a way to regenerate a missing WiredTiger.wt ? 有没有办法重新生成缺少的WiredTiger.wt Our MongoDB instance stopped working (bizarrely), and that file got missing from the dbpath folder—Seems like this behaviour is known . 我们的MongoDB实例停止工作(奇怪),并且dbpath文件夹中缺少该文件 - 看起来这种行为是已知的

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. 谢谢。

PS We still got all the other .wt files. PS我们仍然拥有所有其他.wt文件。

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. WiredTiger.wt文件包含有关MongoDB数据目录的基本元数据:存在哪些集合和索引以及每个文件中的最新检查点。 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. 如果WiredTiger.wt dbPath完全删除WiredTiger.wt ,则当前没有任何进程或工具可以重新创建此元数据, dbPath从备份副本还原完整的dbPath While you do have data files, you've unfortunately lost the catalog describing what these files contain and how they relate. 虽然你有数据文件,但遗憾的是你丢失了描述这些文件包含的内容以及它们之间的关系。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM