3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

DockerでMariaDBが起動しない【 InnoDB: Failed to set O_DIRECT on file ./ibdata1: OPEN: Invalid argument, continuing anyway. O_DIRECT is known to result in 'Invalid argument' on Linux on tmpfs】

Posted at

Dockerにて、下記のエラーによりMariaDBが起動しない時の対処した方法です。

[Warning] InnoDB: Failed to set O_DIRECT on file ./ibdata1: OPEN: Invalid argument, continuing anyway. O_DIRECT is known to result in 'Invalid argument' on Linux on tmpfs
[ERROR] Plugin 'InnoDB' init function returned error.
mariadb_1 
[ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
mariadb_1  
[Note] Plugin 'FEEDBACK' is disabled.
mariadb_1  
[ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
mariadb_1 
[ERROR] Unknown/unsupported storage engine: InnoDB
mariadb_1   
[ERROR] Aborting

docker-compose.ymlを修正することで解決

docker-compose.yml
mariadb:
    build: ./mariadb
    volumes:
      - ./mariadb/data:/var/lib/mysql
    ports:
      - 3306:3306

↓↓↓↓↓↓↓

docker-compose.yml
mariadb:
    build: ./mariadb
    volumes:
      - ./mariadb/data:/var/lib/mariadb #変更
    ports:
      - 3306:3306

/var/lib/mysql/var/lib/mariadbに変更することでMariaDBを起動することができました。

3
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?