重新在虚机安装OCP4.2.1 社区版本,ulimit就是预检查不过

OBD-1007: (10.225.212.133) The value of the ulimit parameter “open files” must not be less than 655350 (Current value: 1024)

配置如下:

  1. vim /etc/security/limits.conf
    root soft nofile 655350
    root hard nofile 655350
  • soft nofile 655350
  • hard nofile 655350
  • soft stack unlimited
  • hard stack unlimited
  • soft nproc 655360
  • hard nproc 655360
  • soft core unlimited
  • hard core unlimited

2)ulimit -a
[root@speech20 ~]# ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 255466
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 655350
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) unlimited
cpu time (seconds, -t) unlimited
max user processes (-u) 655360
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

3)根据报错提示修复
[root@speech20 ~]# cat /etc/security/limits.d/nofile.conf

  • soft nofile 655350
  • hard nofile 655350

部署时用的是什么用户呢。root还是自建用户呢。
参考 (可选)配置 limits.conf-OceanBase 数据库-OceanBase文档中心-分布式数据库使用文档

部署用的 admin 用户,admin 用户sudo权限正常

使用sudo 配置到admin用户下试试看呢。
这个检测没有其他方式可以跳过。

1713411282733

已解决,是openssh导致