Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-28228

Mongodb Restore using wt file is failing

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: WiredTiger
    • Linux

      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

      and we are getting the following errors

      http://www.alexbevi.com/blog/2016/02/10/recovering-a-wiredtiger-collection-from-a-corrupt-mongodb-installation/

      wget http://source.wiredtiger.com/releases/wiredtiger-2.7.0.tar.bz2
      tar xvf wiredtiger-2.7.0.tar.bz2
      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/libwiredtiger_snappy.so]" -R salvage collection-2657--1723320556100349955.wt
      
      Error -
      
      ./wt -v -h ../mongo-bak -C "extensions=[./ext/compressors/snappy/.libs/libwiredtiger_snappy.so]" -R salvage collection-246--7553069514495955510.wt
      [1488888117:36780][13536:0x7f7b633cd740], file:WiredTiger.wt, 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:WiredTiger.wt, connection: WiredTiger.wt: encountered an illegal file format or internal value
      [1488888117:36817][13536:0x7f7b633cd740], file:WiredTiger.wt, connection: the process must exit and restart: WT_PANIC: WiredTiger library panic
      lt-wt: WT_PANIC: WiredTiger library panic
      

        1. SERVER-28228-repair.tar.gz
          2 kB
        2. WiredTiger.turtle
          0.9 kB
        3. WiredTiger.wt
          44 kB

            Assignee:
            mark.agarunov Mark Agarunov
            Reporter:
            chaidar Chaitanya Peddi
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: