We have implemented MongoDB master-slave replication on sunday.
last backup was on sunday , database got corrupted to
we restored deleted files from Mongo data directory using Ext Delete command.
We wanted to restore one collection for which we have WT (wiredtiger) file. We are trying to restore that file using the following commands
[login to view URL]
wget [login to view URL]
tar xvf [login to view URL]
cd wiredtiger-2.7.0
sudo apt-get install libsnappy-dev build-essential
./configure --enable-snappy
make
./wt -v -h ../mongo-bak -C "extensions=[./ext/compressors/snappy/.libs/[login to view URL]]" -R salvage [login to view URL]
and we are getting the following errors-
./wt -v -h ../mongo-bak -C "extensions=[./ext/compressors/snappy/.libs/[login to view URL]]" -R salvage [login to view URL]
[1488888117:36780][13536:0x7f7b633cd740], file:[login to view URL], connection: read checksum error for 4096B block at offset 12288: block header checksum of 1955562709 doesn't match expected checksum of 3146787951
[1488888117:36809][13536:0x7f7b633cd740], file:[login to view URL], connection: [login to view URL]: encountered an illegal file format or internal value
[1488888117:36817][13536:0x7f7b633cd740], file:[login to view URL], connection: the process must exit and restart: WT_PANIC: WiredTiger library panic
lt-wt: WT_PANIC: WiredTiger library panic