0061.O OB集群启动失败fs.aio-max-nr must not be less than-open files nu

网友投稿 1070 2022-10-04

本站部分文章、图片属于网络上可搜索到的公开信息,均用于学习和交流用途,不能代表睿象云的观点、立场或意见。我们接受网民的监督,如发现任何违法内容或侵犯了您的权益,请第一时间联系小编邮箱jiasou666@gmail.com 处理。

0061.O OB集群启动失败fs.aio-max-nr must not be less than-open files nu

oceanbase集群部署成功后,启动集群失败,报错Cluster bootstrap x、Cluster init failed,并同时带有两个WARN。

[root@oceanbase ~]# obd cluster start rundbaGet local repositories and plugins ok[WARN] (192.168.80.20) fs.aio-max-nr must not be less than 1048576 (Current value: 65536)[WARN] (192.168.80.20) open files number must not be less than 655350 (Current value: 1024)Start observer okobserver program health check okConnect to observer okInitialize clusterCluster bootstrap xCluster init failed

相关参数未设置。

消除告警,修改配置文件,增加参数。

1)sysctl.conf添加内容

echo "fs.aio-max-nr=1048576" >> /etc/sysctl.conf

配置生效

sysctl -p

2) open files参数修改

vim etc/security/limits.conf #添加内容* soft nofile 655350* hard nofile 655350

退出会话,重新登录,再次运行即可。

open files限制已生效。

[root@oceanbase ~]# ulimit -n655350

[oceanbase@oceanbase ~]$ obd cluster start rundbaGet local repositories and plugins okStart observer okobserver program health check okConnect to observer okInitialize clusterCluster bootstrap okWait for observer init ok+---------------------------------------------+| observer |+-----------+---------+------+-------+--------+| ip | version | port | zone | status |+-----------+---------+------+-------+--------+| 127.0.0.1 | 3.1.0 | 2881 | zone1 | active |+-----------+---------+------+-------+--------+rundba running

5. 相关优化参数

本次未涉及。

上一篇:自动化运维工具Ansible-常用模块使用(二)
下一篇:运维开发DU命令,助力文件系统清理
相关文章

 发表评论

暂时没有评论,来抢沙发吧~