Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-16015

Unhandled EOPNOTSUPP of posix_fallocate() causes bogus "Probably out of disk space error"

    XMLWordPrintable

Details

    Description

      I'm not sure whether you're aware of this issue experienced by docker users: https://github.com/docker-library/mariadb/issues/95

      When you start latest stable MariaDB with Docker for Mac/Win and /var/lib/mysql mounted from the host machine it fails with error:

      + mysql_install_db --datadir=/var/lib/mysql/ --rpm
      [ERROR] InnoDB: preallocating 10485760 bytes for file ./ibdata1 failed with error 95
      [ERROR] InnoDB: Could not set the file size of './ibdata1'. Probably out of disk space
      [ERROR] InnoDB: Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again.
      [ERROR] Plugin 'InnoDB' init function returned error.
      [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
      [ERROR] Unknown/unsupported storage engine: InnoDB
      [ERROR] Aborting
      

      As noted by tianon in the github issue:

      Docker and MariaDB work fine together; the bit that doesn't work is the custom filesystem employed by Docker for Windows and Docker for Mac for sharing files across the VM boundary, which is not all that surprising for a database, which often use features like mmap for performance but thus also require support from the underlying filesystem. There are many reports of similar issues with vboxsf, for example.

      Any fixes would have to happen either in Docker's shared filesystem or in MariaDB itself (not something we can really fix in this Docker image), so I'd recommend checking their respective upstream bugtrackers for any discussion of fixing the problem.

      Also, it worth saying that older MariaDB versions work fine, for example 10.1.22

      Docker images where the problem happens:

      Attachments

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              chingis Chingis
              Votes:
              10 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.