[SERVER-29705] mongod start fail with error: read checksum error Created: 17/Jun/17 Updated: 05/Jul/17 Resolved: 19/Jun/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Question | Priority: | Major - P3 |
| Reporter: | chenyuliang | Assignee: | Kelsey Schubert |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
hi. I have a problem with mongod. There is a replication with one primary and two secondary. I find all the three mongods can not start with this error:
How can I fix this problem? Thank you! |
| Comments |
| Comment by Kelsey Schubert [ 05/Jul/17 ] | ||||||||||||
|
Hi chenyuliang01, I've attached repair attempts for the files from the other nodes. Kind regards, | ||||||||||||
| Comment by chenyuliang [ 21/Jun/17 ] | ||||||||||||
|
Hi Thomas, Thank you! | ||||||||||||
| Comment by Kelsey Schubert [ 20/Jun/17 ] | ||||||||||||
|
Hi chenyuliang01, Unfortunately, that's correct – the error indicates the collection file has been corrupted. In cases like this, there is very little mongod can do. Therefore, I would recommend performing a clean initial sync or, if that is not possible, restoring from a backup. Kind regards, | ||||||||||||
| Comment by chenyuliang [ 20/Jun/17 ] | ||||||||||||
|
Hi @Thomas Schubert, Thank you for you reply. But when I tried to restart mongod after replace these files, I got errors like this:
And fail to restart. Does it mean that my collection data file is corrupted too? Thank you! | ||||||||||||
| Comment by Kelsey Schubert [ 19/Jun/17 ] | ||||||||||||
|
Hi chenyuliang01, Thank you for clarifying how this corruption occurred. I've attached a repair attempt of the files; would you please replace these files in your dbpath and restart mongod? If there is no additional corruption mongod should be able to successfully restart. Thank you, | ||||||||||||
| Comment by chenyuliang [ 19/Jun/17 ] | ||||||||||||
|
This problem is caused by IDC power off. So it is not a bug. |