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

Insufficient free space for journal files on symlinked dir

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

      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 Unassigned
            Reporter:
            jamesmikedupont@gmail.com james michael dupont
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: