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

Insufficient free space for journal files on symlinked dir

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Admin
    • Labels:
      None
    • Operating System:
      ALL

      Description

      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

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: