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

      Hello!

      Our MongoDB base is corrupted by problems with hard drive. We recover our disk with database and MongoDB server

      We check config and MongoDB database folder. Config ok and have a right dbpath.

      In dbpath directory we have many files like this:

      total 2.5G
      rwxrwxr- 1 mongodb mongodb 21 Apr 16 2017 WiredTiger.lock
      rwxrwxr- 1 mongodb mongodb 95 Apr 16 2017 storage.bson
      rwxrwxr- 1 mongodb mongodb 16K Apr 16 2017 index-4--2017253496148277652.wt
      rwxrwxr- 1 mongodb mongodb 52K Oct 10 2017 index-15-6056211751025971878.wt
      rwxrwxr- 1 mongodb mongodb 36K May 20 02:33 _mdb_catalog.wt.1
      rwxrwxr- 1 mongodb mongodb 16K May 20 02:33 collection-2--2017253496148277652.wt
      rwxrwxr- 1 mongodb mongodb 36K May 20 02:33 collection-2--3777467847017729897.wt
      rwxrwxr- 1 mongodb mongodb 72K May 20 02:33 collection-18-6056211751025971878.wt
      rwxrwxr- 1 mongodb mongodb 52K May 20 02:33 collection-14-6056211751025971878.wt
      rwxrwxr- 1 mongodb mongodb 100K May 20 02:33 collection-0--4753795739824518231.wt
      rwxrwxr- 1 mongodb mongodb 16K May 20 02:33 index-3--2017253496148277652.wt
      rwxrwxr- 1 mongodb mongodb 16K May 20 02:33 index-3--3777467847017729897.wt
      rwxrwxr- 1 mongodb mongodb 36K May 20 02:34 index-1--2017253496148277652.wt
      rwxrwxr- 1 mongodb mongodb 40K May 20 02:34 collection-0--2017253496148277652.wt
      rwxrwxr- 1 mongodb mongodb 44K May 20 02:38 index-19-6056211751025971878.wt
      rwxrwxr- 1 mongodb mongodb 16K May 20 02:38 index-1--4753795739824518231.wt
      rwxrwxr- 1 mongodb mongodb 40K May 20 02:51 index-11-6056211751025971878.wt
      rwxrwxr- 1 mongodb mongodb 16K May 20 06:49 index-1-7644913279549684036.wt
      rwxrwxr- 1 mongodb mongodb 32K Jun 5 11:53 index-3-6056211751025971878.wt
      rwxrwxr- 1 mongodb mongodb 36K Jun 5 11:53 collection-2-6056211751025971878.wt
      rwxrwxr- 1 mongodb mongodb 52K Jun 17 08:26 index-13-6056211751025971878.wt
      rwxrwxr- 1 mongodb mongodb 132K Jun 22 10:14 collection-12-6056211751025971878.wt
      rwxrwxr- 1 mongodb mongodb 68K Aug 8 03:35 index-25-6056211751025971878.wt
      rwxrwxr- 1 mongodb mongodb 322M Aug 8 03:35 collection-24-6056211751025971878.wt
      rwxrwxr- 1 mongodb mongodb 36K Aug 13 15:24 index-9--3777467847017729897.wt
      rwxrwxr- 1 mongodb mongodb 60K Aug 13 15:24 collection-8--3777467847017729897.wt
      rwxrwxr- 1 mongodb mongodb 368K Aug 15 10:06 index-21-6056211751025971878.wt
      rwxrwxr- 1 mongodb mongodb 1.2M Aug 15 10:06 collection-20-6056211751025971878.wt
      rwxrwxr- 1 mongodb mongodb 84K Aug 16 10:23 index-7-6056211751025971878.wt
      rwxrwxr- 1 mongodb mongodb 192K Aug 16 10:23 collection-6-6056211751025971878.wt
      rwxrwxr- 1 mongodb mongodb 772K Aug 16 14:49 index-5-6056211751025971878.wt
      rwxrwxr- 1 mongodb mongodb 148K Aug 16 14:49 index-23-6056211751025971878.wt
      rwxrwxr- 1 mongodb mongodb 6.1M Aug 16 14:49 collection-4-6056211751025971878.wt
      rwxrwxr- 1 mongodb mongodb 1.1M Aug 16 14:49 collection-22-6056211751025971878.wt
      rwxrwxr- 1 mongodb mongodb 324K Aug 16 14:49 collection-10-6056211751025971878.wt
      rwxrwxr- 1 mongodb mongodb 36K Aug 16 14:49 collection-0-7644913279549684036.wt
      rwxrwxr- 1 mongodb mongodb 2.2M Aug 17 11:50 index-17-6056211751025971878.wt
      rwxrwxr- 1 mongodb mongodb 16M Aug 17 11:50 collection-16-6056211751025971878.wt
      rwxrwxr- 1 mongodb mongodb 468K Aug 17 16:59 index-7--3777467847017729897.wt
      rwxrwxr- 1 mongodb mongodb 864K Aug 17 16:59 collection-6--3777467847017729897.wt
      rwxrwxr- 1 mongodb mongodb 23M Aug 18 00:16 index-1--3777467847017729897.wt
      rwxrwxr- 1 mongodb mongodb 2.1G Aug 18 00:16 collection-0--3777467847017729897.wt
      rwxrwxr- 1 mongodb mongodb 968K Aug 18 00:17 index-5--3777467847017729897.wt
      rwxrwxr- 1 mongodb mongodb 124K Aug 18 00:59 WiredTiger.wt.1
      rwxrwxr- 1 mongodb mongodb 49 Aug 28 09:12 WiredTiger
      rwxrwxr- 1 mongodb mongodb 1.6M Aug 28 09:12 collection-4--3777467847017729897.wt
      rw-rr- 1 mongodb nogroup 16K Aug 28 09:37 index-1-7056954381577752709.wt
      rwxrwxr- 1 mongodb mongodb 6 Aug 28 09:38 mongod.lock
      drwxrwxr-- 2 mongodb mongodb 4.0K Aug 28 09:39 journal
      rw-rr- 1 mongodb nogroup 1000 Aug 28 09:40 WiredTiger.turtle
      drwxrwxr-- 2 mongodb mongodb 4.0K Aug 28 10:54 diagnostic.data
      rwxrwxr- 1 mongodb mongodb 36K Aug 28 10:55 _mdb_catalog.wt
      rw-rr- 1 mongodb nogroup 32K Aug 28 10:55 index-2-7056954381577752709.wt
      rw-rr- 1 mongodb nogroup 16K Aug 28 10:55 index-0-7056954381577752709.wt
      rwxrwxr- 1 mongodb mongodb 16K Aug 28 10:55 collection-2-3814419529578137210.wt
      rwxrwxr- 1 mongodb mongodb 36K Aug 28 10:55 collection-0-3814419529578137210.wt
      rwxrwxr- 1 mongodb mongodb 92K Aug 28 10:55 WiredTiger.wt
      rw-rr- 1 mongodb nogroup 4.0K Aug 28 10:55 WiredTigerLAS.wt
      rwxrwxr- 1 mongodb mongodb 36K Aug 28 10:55 sizeStorer.wt

      Its looks like a database!

      Our mongod daemon started and we can enter in it by Robo3t, but we see only admin and local databases.

      We try to repair it by "mongod --repair --dbpath (path)" key and its nothing gave to as

      We try "./wt -v -h ../mongo-bak -C "extensions=[./ext/compressors/snappy/.libs/libwiredtiger_snappy.so]" -R salvage collection-2657-1723320556100349955.wt" on all collections in dbpath directory (by WiredTiger utility) and its nothing gave to as again

      Can you help as with this problem? Thanks!

      Have a good day!

        1. log.txt
          28 kB
        2. WiredTiger.turtle
          1.0 kB
        3. WiredTiger.wt
          92 kB
        4. WiredTiger.wt.1
          124 kB

            Assignee:
            nick.brewer Nick Brewer
            Reporter:
            it@iidf.ru it@iidf.ru
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: