InnoDB: Errornumber 24 means 'Too many open files'. InnoDB: Some operatingsystem error numbers are described at InnoDB: http://dev.MySQL.com/doc/mysql/en/Operating_System_error_codes.html InnoDB: File name/home/nice/backup/mysql/var.20121211021656/user_db_20121123/tuser_like_core.ibd InnoDB: File operationcall: 'open'. InnoDB: Cannot continueoperation. innobackup:Error:
openfiles 开的小了。 mysql的open_file_limit受制于以下几个参数 max_connections、 table_open_cache 、open_files_limit 以及 /etc/security/limits.conf中的配置。 max_connections和 table_open_cache 与open_files_limit 的关系: max_1 = 10 + max_connections + table_cache * 2; max_2 = max_connections * 5; max_3 = max_os_open_files;//操作系统单个进程最大允许打开文件句柄(文件描述符)。 open_files_limit= max( max_1, max_2 ) > max_3 ? max_3 : max ( max_1, max_2); 综合分析发现,open_files_limit | 10240 而目前ibd表已经10800个了。
core file size (blocks, -c) unlimited data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited pending signals (-i) 1024 max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 stack size (kbytes, -s) 10240 cpu time (seconds, -t) unlimited max user processes (-u) 137216 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited
mysql soft nofile 8192 mysql hard nofile 20480
ulimit -a core file size (blocks, -c) unlimited data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited pending signals (-i) 1024 max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 stack size (kbytes, -s) 10240 cpu time (seconds, -t) unlimited max user processes (-u) 137216 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited
ulimit -S -c unlimited > /dev/null 2>&1
ulimit -n 20480 >/dev/null 2>&1
InnoDB: Errornumber 24 means 'Too many open files'. InnoDB: Some operatingsystem error numbers are described at InnoDB: http://dev.mysql.com/doc/mysql/en/Operating_System_error_codes.html
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30317998/viewspace-2653929/ ,如需转载,请注明出处,否则将追究法律责任。