环境
Centos 7.6 + OB 4.2.1
角色 IP 配置 备注
OBD/OBClient 192.168.18.11 8G+100G 中控机+客户端
OBServer/OBProxy 192.168.18.166 2G+30G 节点1
OBServer/OBProxy 192.168.18.167 2G+30G 节点2
OBServer/OBProxy 192.168.18.168 2G+30G 节点3
1.创建用户(192.168.18.11/166/167/168)
useradd admin
passwd admin
2.创建目录(192.168.18.166/167/168)
mkdir -p /obdata/{observer,data,redo}
chown -R admin:admin /obdata
3.关闭防火墙、关闭selinux(192.168.18.11/166/167/168)
4.安装all in包
下载地址:https://www.oceanbase.com/softwarecenter
tar -xzf oceanbase-all-in-one-*.tar.gz
cd oceanbase-all-in-one/bin/
./install.sh
source ~/oceanbase-all-in-one/bin/env.sh
5.OBD配置
#禁用远程仓库
obd mirror disable remote
#将安装包添加至本地镜像库
obd mirror clone *.rpm
obd mirror list local
#配置文件
# Only need to configure when remote login is required
user:
username: admin
# password: your password if need
key_file: /home/admin/.ssh/id_rsa.pub
# port: your ssh port, default 22
# timeout: ssh connection timeout (second), default 30
oceanbase-ce:
servers:
- name: node1
# Please don't use hostname, only IP can be supported
ip: 192.168.18.166
- name: node2
ip: 192.168.18.167
- name: node3
ip: 192.168.18.168
global:
# Starting from observer version 4.2, the network selection for the observer is based on the 'local_ip' parameter, and the 'devname' parameter is no longer mandatory.
# If the 'local_ip' parameter i