[SERVER-27943] Removed WiredTiger.turtle then all databases are gone Created: 08/Feb/17  Updated: 13/Feb/17  Resolved: 13/Feb/17

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.2.12
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: zhixin tang Assignee: Kelsey Schubert
Resolution: Done Votes: 0
Labels: WiredTiger
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Cent OS


Attachments: File WiredTiger.lock     File WiredTiger.turtle     File WiredTiger.turtle.bak     File WiredTiger.turtle.bak2     File WiredTiger.wt.2     File WiredTiger.wt.3     File WiredTiger.wt.9     File WiredTiger.wt2     Text File error.output.log     File mongod.conf     Text File mongod.log    
Participants:

 Description   

I'm a mongodb beginner from Shenzhen, China, today morning , I ran into a big trouble with mongoDB

I removed the files below for `service mongod start', then everything goes wrong
rm mongod.lock
rm WiredTiger.turtle
It's really a mitaken I've ever made, then I googled it and tried to repair by command ` mongod --repair`,
it seems work, but when I try to `show dbs` via the mono shell, there is no db exits any more,
all my databases have gone...
afterwards, I google the error log many time , and I have to write to you for help, attaching some files if you need.
Please reply to me as you will , I really need your help and thank you very much. Please?

kind regards,

Tang



 Comments   
Comment by Kelsey Schubert [ 13/Feb/17 ]

Hi ninetang,

The WiredTiger.turtle file contains crucial information required by WiredTiger to understand the other data files. Unfortunately, there is no automated process to recreate this file after it has been deleted. If possible, I would recommend restoring from a backup.

Kind regards,
Thomas

Comment by zhixin tang [ 09/Feb/17 ]

FYI, I upgraded the MongoDB version from 3.0 to 3.2 before I removed the 2 files

Generated at Thu Feb 08 04:16:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.