[SERVER-54303] Missing databases after unclean shutdown and repair Created: 04/Feb/21  Updated: 17/Feb/21  Resolved: 17/Feb/21

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

Type: Question Priority: Major - P3
Reporter: Stanislau Hluboki Assignee: Edwin Zhou
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File WiredTiger.turtle     File WiredTiger.wt     File repair-attempt.tar.gz    
Participants:

 Description   

After an unclean shutdown, mongod could not start due to some problems (I don't have any logs unfortunately). After googling, I've decided to use --repair, but that seems to have removed all my databases, since I can only see the default databases now (admin local etc)

I don't know what to do, it had plenty of custom data, please help



 Comments   
Comment by Stanislau Hluboki [ 17/Feb/21 ]

Fortunately, I was able to recover some data from backups, so it was a good lesson for me.

Thanks for the recommendation!

Comment by Edwin Zhou [ 17/Feb/21 ]

Hi glubokiy.stas@gmail.com,

I'm sorry to hear that. Unfortunately we aren't able to repair this corruption.

To avoid a problem like this in the future, it is our strong recommendation to:

Best,
Edwin

Comment by Stanislau Hluboki [ 17/Feb/21 ]

Thank you Edwin. Unfortunately, it did not help, I still see only the default databases.

Comment by Edwin Zhou [ 17/Feb/21 ]

Hi glubokiy.stas@gmail.com,

Please make a complete copy of the database's $dbpath directory to safeguard so that you can work off of the current $dbpath.

The ideal resolution is to perform a clean resync from an unaffected node.

I've attached a repair attempt of the files you provided as repair-attempt.tar.gz. Please extract these files, replace them in your $dbpath, and let us know if it resolves the issue.

Thanks,
Edwin

Generated at Thu Feb 08 05:33:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.