折戟万里长征第一步安装报错-请速来围观ppt数据库

【产品名称】oceanbase

【产品版本】3.1.0

【问题描述】本机在线部署,中控机器和目标机器是同一台机器。

参考:OceanBase 社区

[可忽略该行]从ob1.4,ob2.2,到ob社区版3.1,一个安装部署频繁异常的国产新贵,建议加强集成,实施,维护层面的实力,不要停留在ppt层面。

进入正题:

  1. 启动集群服务报错,重新部署启动报错:

[root@localhost ~]# obd cluster redeploy rundba Get local repositories and plugins ok observer work dir cleaning ok rundba destroyed oceanbase-ce-3.1.0 already installed ±------------------------------------------------------------------+ | Packages | ±-------------±--------±-----------------------------------------+ | Repository | Version | Md5 | ±-------------±--------±-----------------------------------------+ | oceanbase-ce | 3.1.0 | 56f57e9843e719d830ec03c206d914f4b3adc82b | ±-------------±--------±-----------------------------------------+ Open ssh connection ok Remote oceanbase-ce-3.1.0-56f57e9843e719d830ec03c206d914f4b3adc82b repository install ok Remote oceanbase-ce-3.1.0-56f57e9843e719d830ec03c206d914f4b3adc82b repository lib check ok 127.0.0.1 initializes cluster work home rundba deployed Get local repositories and plugins ok [WARN] (127.0.0.1) fs.aio-max-nr must not be less than 1048576 (Current value: 65536) [WARN] (127.0.0.1) 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) 环境:

CPU 8C MEMOERY 32G DISK 200G(/ob) IP 192.168.80.20 OS CentOS7.7(内核3.10.0以上) oceanbase oceambase社区版3.1.0 部署方式 本机在线部署,中控机器和目标机器是同一台机器。

  1. 配置文件:

jp 换成实际的ip, dev 换成实际的网卡名。再试试。

该问题已解决。

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

1)sysctl.conf添加内容
echo "fs.aio-max-nr=1048576" >> /etc/sysctl.conf

配置生效
sysctl -p

2open files参数修改
vim /etc/security/limits.conf		#添加内容
*    soft  nofile 655350
*    hard  nofile 655350

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

[root@oceanbase ~]# ulimit -n
655350


再次启动集群服务正常。

OceanBase 社区版部署示例 - OceanBase

至少8g ,其它是告警

我的配置:2C 8G,问题已解决,详细步骤,详见:

https://mp.weixin.qq.com/s/oF9CzQnXdhdMyZvpAQIpxA