Insufficient free space for journal files on symlinked dir

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Admin
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      I symlinked the var lib mongodb to a drive with space

      sudo mkdir -p /mnt/newdrive2/var/lib/mongodb/journal
      sudo rm -rf /var/lib/mongodb/*
      sudo ln -s /var/lib/mongodb/ /mnt/newdrive2/var/lib/mongodb/
      sudo /etc/init.d/mongodb restart

      yet it still complains:
      ```
      Sun Oct 25 07:28:29.066 [initandlisten] journal dir=/var/lib/mongodb/journal
      Sun Oct 25 07:28:29.066 [initandlisten] recover : no journal files present, no recovery needed
      Sun Oct 25 07:28:29.066 [initandlisten]
      Sun Oct 25 07:28:29.066 [initandlisten] ERROR: Insufficient free space for journal files
      Sun Oct 25 07:28:29.066 [initandlisten] Please make at least 3379MB available in /var/lib/mongodb/journal or use --smallfiles

            Assignee:
            Unassigned
            Reporter:
            james michael dupont
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: