xtrabackup备份失败

xtrabackup备份失败

xtrabackup备份失败

  xtrabackup备份失败(error writing file 'UNOPENED')-LMLPHP

  解决了,是因为limit open files值设置太小了

(3)修改资源限制参数

xtrabackup备份失败(error writing file 'UNOPENED')-LMLPHP
vi /etc/security/limits.conf

    nproc:用户创建进程数限制  建议65535

    nofile:进程打开文件次数限制 建议65535

    stack:存放变量的指针 建议65535

    软硬限制(soft/hard,软限制到了阈值会警告,硬限制则就是不能再继续做了),*代表所有用户

* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535
* soft stack 65535
* hard stack 65535

  xtrabackup备份失败(error writing file 'UNOPENED')-LMLPHP

--可以通过以下代码去检验
ulimit -a
  

xtrabackup备份失败(error writing file 'UNOPENED')-LMLPHP

 
#进程数限制,默认有限制,默认清空

echo "* - nproc 65535" > /etc/security/limits.d/90-nproc.conf
05-07 15:19