[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: |
|
| 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 ] |
|
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, |
| 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 ] |
|
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 Thanks, |