Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.1.32, 10.2.14
-
Docker for Mac, Docker for Win
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:
- Debian-based official _/mariadb
- Alpine-based wodby/mariadb
Attachments
Issue Links
- is duplicated by
-
MDEV-20594 InnoDB ibdata1 preallocation fails on 9p fs. mount
- Closed
- relates to
-
MDEV-11520 Extending an InnoDB data file unnecessarily allocates a large memory buffer on Windows
- Closed
-
MDEV-15882 Error starting MariaDB Server 10.2.14 within Docker with mounted volume
- Closed