暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

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

rundba 2021-06-28
3581

oceanbase集群部署成功后,启动集群失败,报错Cluster bootstrap x、Cluster init failed,并同时带有两个WARN,本文将处理过程进行展示。

1. 现象

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

    [root@oceanbase ~]# obd cluster start rundba
    Get 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 ok
    observer program health check ok
    Connect to observer ok
    Initialize cluster
    Cluster bootstrap x
    Cluster init failed

    2. 问题原因

    相关参数未设置。

    3. 解决方法

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

    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 -n
            655350

            4. 再次启动集群服务正常

              [oceanbase@oceanbase ~]$ obd cluster start rundba
              Get local repositories and plugins ok
              Start observer ok
              observer program health check ok
              Connect to observer ok
              Initialize cluster
              Cluster bootstrap ok
              Wait for observer init ok
              +---------------------------------------------+
              | observer |
              +-----------+---------+------+-------+--------+
              | ip | version | port | zone | status |
              +-----------+---------+------+-------+--------+
              | 127.0.0.1 | 3.1.0 | 2881 | zone1 | active |
              +-----------+---------+------+-------+--------+


              rundba running

              5. 相关优化参数

              本次未涉及。


              文章转载自rundba,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

              评论