Details
-
Question
-
Resolution: Done
-
Major - P3
-
None
-
3.2.12
-
None
-
CentOS
Description
I would like to know how do you attemt to repair a corrupted WiredTiger.wt file. I am facing the checksum error in the attached log file. I have noticed similar issues that got fixed by repairing the WiredTiger.wt & WiredTiger.turtle files.
I have installed Wired Tiger tools with snappy as per the link: http://www.alexbevi.com/blog/2016/02/10/recovering-a-wiredtiger-collection-from-a-corrupt-mongodb-installation/
But I am not sure how to attempt to repair the checksum problem with WiredTiger.wt file itself.
I am not even sure this is meaningful, but I tried:
./wt -h ../ -v -C "extensions=[./ext/compressors/snappy/.libs/libwiredtiger_snappy.so]" -R salvage ../WiredTiger.wt |
and got
[1488449862:382161][18727:0x7fdbd7239700], file:WiredTiger.wt, connection: read checksum error for 4096B block at offset 49152: block header checksum of 3921565147 doesn't match expected checksum of 3944682197 |
[1488449862:382221][18727:0x7fdbd7239700], file:WiredTiger.wt, connection: WiredTiger.wt: encountered an illegal file format or internal value |
[1488449862:382238][18727:0x7fdbd7239700], file:WiredTiger.wt, connection: the process must exit and restart: WT_PANIC: WiredTiger library panic |
lt-wt: WT_PANIC: WiredTiger library panic
|
How do I proceed with the repair attempt?