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

MongoDB doesn't start on either zfs-fuse or zfs on linux.

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.8.2
    • Component/s: Storage, Usability
    • Labels:
      None
    • Environment:
    • Linux

      zfs-fuse:

      Sun Jul 10 23:38:34 [initandlisten] MongoDB starting : pid=14609
      port=27017 dbpath=/var/lib9/mongodb 64-bit
      Sun Jul 10 23:38:34 [initandlisten] db version v1.8.2, pdfile version
      4.5
      Sun Jul 10 23:38:34 [initandlisten] git version: nogitversion
      Sun Jul 10 23:38:34 [initandlisten] build sys info: Linux xena 2.6.38-
      hardened-r6 #3 SMP Tue Jun 21 10:32:26 CEST 2011 x86_64
      BOOST_LIB_VERSION=1_42
      Sun Jul 10 23:38:34 [initandlisten] journal dir=/var/lib9/mongodb/
      journal
      Sun Jul 10 23:38:34 [initandlisten] recover : no journal files
      present, no recovery needed
      Sun Jul 10 23:38:34 [initandlisten] info preallocateIsFaster couldn't
      run; returning false
      Sun Jul 10 23:38:34 [initandlisten] exception in initAndListen
      std::exception: couldn't open file /var/lib9/mongodb/journal/j._0 for
      writing errno:22 Invalid argument, terminating
      Sun Jul 10 23:38:34 dbexit:
      Sun Jul 10 23:38:34 [initandlisten] shutdown: going to close listening
      sockets...
      Sun Jul 10 23:38:34 [initandlisten] shutdown: going to flush
      diaglog...
      Sun Jul 10 23:38:34 [initandlisten] shutdown: going to close
      sockets...
      Sun Jul 10 23:38:34 [initandlisten] shutdown: waiting for fs
      preallocator...
      Sun Jul 10 23:38:34 [initandlisten] shutdown: lock for final commit...
      Sun Jul 10 23:38:34 [initandlisten] shutdown: final commit...
      Sun Jul 10 23:38:34 [initandlisten] shutdown: closing all files...
      Sun Jul 10 23:38:34 closeAllFiles() finished
      Sun Jul 10 23:38:34 [initandlisten] shutdown: journalCleanup...
      Sun Jul 10 23:38:34 [initandlisten] removeJournalFiles
      Sun Jul 10 23:38:34 [initandlisten] shutdown: removing fs lock...
      Sun Jul 10 23:38:34 dbexit: really exiting now

      zfs:
      Sun Jul 10 23:53:04 [initandlisten] MongoDB starting : pid=22362
      port=27017 dbpath=/home/mage/temp/mongodb 64-bit
      Sun Jul 10 23:53:04 [initandlisten] db version v1.8.2, pdfile version
      4.5
      Sun Jul 10 23:53:04 [initandlisten] git version: nogitversion
      Sun Jul 10 23:53:04 [initandlisten] build sys info: Linux vylie 2.6.38-
      gentoo-r6 #4 SMP Thu Jun 2 11:09:40 CEST 2011 x86_64
      BOOST_LIB_VERSION=1_42
      Sun Jul 10 23:53:04 [initandlisten] journal dir=/home/mage/temp/
      mongodb/journal
      Sun Jul 10 23:53:04 [initandlisten] recover : no journal files
      present, no recovery needed
      Sun Jul 10 23:53:04 [initandlisten] info preallocateIsFaster couldn't
      run; returning false
      Sun Jul 10 23:53:04 [initandlisten] exception in initAndListen
      std::exception: couldn't open file /home/mage/temp/mongodb/journal/
      j._0 for writing errno:22 Invalid argument, terminating
      Sun Jul 10 23:53:04 dbexit:
      Sun Jul 10 23:53:04 [initandlisten] shutdown: going to close listening
      sockets...
      Sun Jul 10 23:53:04 [initandlisten] shutdown: going to flush
      diaglog...
      Sun Jul 10 23:53:04 [initandlisten] shutdown: going to close
      sockets...
      Sun Jul 10 23:53:04 [initandlisten] shutdown: waiting for fs
      preallocator...
      Sun Jul 10 23:53:04 [initandlisten] shutdown: lock for final commit...
      Sun Jul 10 23:53:04 [initandlisten] shutdown: final commit...
      Sun Jul 10 23:53:04 [initandlisten] shutdown: closing all files...
      Sun Jul 10 23:53:04 closeAllFiles() finished
      Sun Jul 10 23:53:04 [initandlisten] shutdown: journalCleanup...
      Sun Jul 10 23:53:04 [initandlisten] removeJournalFiles
      Sun Jul 10 23:53:04 [initandlisten] shutdown: removing fs lock...
      Sun Jul 10 23:53:04 dbexit: really exiting now

      **************

      These are two different computers, different kernels and different zfs forks (for linux).

      The only common thing is the zfs and the errno:22

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            mage Mage
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: