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

the machine reboot so that mongodb can't gain the correct data and the reason is about WiredTiger.wt

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • None
    • 3.0.4
    • Admin, WiredTiger
    • None
    • centos 6.4
    • Linux

    Description

      hello:
      my machine system is centos6.4,after an unexpected reboot my mongodb can't be start correctly.and the data is 285G,I am repair two days and detect it can't start correctly may because of WiredTiger.wt was damaged.the following is my manage process!

      [work@bjs-ihotel-ichartmongodb-01 mongodb]$ ./bin/mongod -f ./conf/mongod.conf
      about to fork child process, waiting until server is ready for connections.
      forked process: 26446
      ERROR: child process failed, exited with error number 14
      [work@bjs-ihotel-ichartmongodb-01 data]$ rm -fr /home/work/ichartmongodb/mongodb/data/mongod.lock 
      [work@bjs-ihotel-ichartmongodb-01 data]$ rm -fr /home/work/ichartmongodb/mongodb/data/mongod/mongod.lock 
      [work@bjs-ihotel-ichartmongodb-01 data]$ rm -fr /home/work/ichartmongodb/mongodb/data/mongod/WiredTiger.lock 
      [work@bjs-ihotel-ichartmongodb-01 data]$ /home/work/ichartmongodb/mongodb/bin/mongod --dbpath=/home/work/ichartmongodb/mongodb/data --port=27017 --logpath=/home/work/ichartmongodb/mongodb/log/mongodb.log --repair --fork   
      about to fork child process, waiting until server is ready for connections.
      forked process: 27873
      child process started successfully, parent exiting
       
      [work@bjs-ihotel-ichartmongodb-01 data]$ /home/work/ichartmongodb/mongodb/bin/mongod -f /home/work/ichartmongodb/mongodb/conf/mongod.conf
      about to fork child process, waiting until server is ready for connections.
      forked process: 28042
      ERROR: child process failed, exited with error number 14
       
      [work@bjs-ihotel-ichartmongodb-01 ~]$ mv /home/work/ichartmongodb/mongodb/data/mongod/WiredTiger* /home/work/lei.zhang/new/now
       
      [work@bjs-ihotel-ichartmongodb-01 ~]$ du -sh /home/work/lei.zhang/new/now/WiredTiger.wt 
      16M     /home/work/lei.zhang/new/now/WiredTiger.wt
       
      [work@bjs-ihotel-ichartmongodb-01 ~]$ /home/work/ichartmongodb/mongodb/bin/mongod --dbpath=/home/work/ichartmongodb/mongodb/data --port=27017 --logpath=/home/work/ichartmongodb/mongodb/log/mongodb.log --repair --fork
      about to fork child process, waiting until server is ready for connections.
      forked process: 29078
      child process started successfully, parent exiting
       
      [work@bjs-ihotel-ichartmongodb-01 ~]$ /home/work/ichartmongodb/mongodb/bin/mongod -f /home/work/ichartmongodb/mongodb/conf/mongod.conf
      about to fork child process, waiting until server is ready for connections.
      forked process: 29206
      child process started successfully, parent exiting
       
      [work@bjs-ihotel-ichartmongodb-01 ~]$ /home/work/ichartmongodb/mongodb/bin/mongod -f /home/work/ichartmongodb/mongodb/conf/arbiter.conf 
      about to fork child process, waiting until server is ready for connections.
      forked process: 30051
      child process started successfully, parent exiting
       
      [work@bjs-ihotel-ichartmongodb-01 ~]$ du -sh /home/work/ichartmongodb/mongodb/data/mongod/WiredTiger.wt 
      76K     /home/work/ichartmongodb/mongodb/data/mongod/WiredTiger.wt
      

      but my page show

      {"errno":505,"timestamp":1470813472,"errmsg":"Failed to connect to: 192.168.110.221:27017: ismaster: got unknown node type"}
      

      and i think this because WiredTiger.wt damaged because machine reboot,and i need to recover WiredTiger.wt. please help me ,i had try my best to repair it ,but all is useless。thank you,the attachment is the old WiredTiger.wt

      Attachments

        1. mongod.conf
          0.5 kB
        2. mongod.log
          72 kB
        3. new_mongod.log
          6.65 MB
        4. repair_attempt.tar
          1.15 MB
        5. repair_attempt-2.tar.gz
          1.17 MB
        6. WiredTiger.tar.gz
          1.17 MB
        7. WiredTiger.turtle
          0.9 kB
        8. WiredTiger.wt
          15.23 MB

        Activity

          People

            kelsey.schubert@mongodb.com Kelsey Schubert
            ao.zhang ao.zhang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: