升级到 MySQL 8.4,MySQL 启动报错:io_setup() failed with EAGAIN
问题最近碰到一个 case,一台主机上,部署了多个实例。之前使用的是 MySQL 8.0,启动时没有任何问题。但升级到 MySQL 8.4 后,部分实例在启动时出现了以下错误。
io_setup() failed with EAGAIN. Will make 5 attempts before giving up.
io_setup() attempt 1.
io_setup() attempt 2.
io_setup() attempt 3.
io_setup() attempt 4.
io_setup() attempt 5.
io_setup() failed with EAGAIN after 5 attempts.
Cannot initialize AIO sub-system
Plugin initialization aborted with error Generic error.
Failed to initialize DD Storage Engine
Data Dictionary initialization failed.
Aborting
/usr/local/mysql/bin/mysqld: Shutdown complete (mysqld 8.4.0) MySQL Community Server - GPL.
MySQL Server - end.下面我们来分析下这个报错的具体原因及解决方法。
定位过程
首先搜索下这个报错是在哪个文件产生的。
# grep "io_setup() failed" -r /usr/src/mysql-8.4.0
/usr/src/mysql-8.4.0/storage/innobase/os/os0file.cc: ib::warn(ER_IB_MSG_757)
页:
[1]