mini-local-example.yaml 配置文件如下
oceanbase-ce:
version: 3.1.5
servers:
# Please don't use hostname, only IP can be supported
- 127.0.0.1
global:
# The working directory for OceanBase Database. OceanBase Database is started under this directory. This is a required field.
home_path: /home/oceanbase/observer
# The directory for data storage. The default value is $home_path/store.
data_dir: /home/oceanbase/data
# The directory for clog, ilog, and slog. The default value is the same as the data_dir value.
redo_dir: /oblog
# Please set devname as the network adaptor's name whose ip is in the setting of severs.
# if set severs as "127.0.0.1", please set devname as "lo"
# if current ip is 192.168.1.10, and the ip's network adaptor's name is "eth0", please use "eth0"
devname: lo
mysql_port: 23300 # External port for OceanBase Database. The default value is 2881. DO NOT change this value after the cluster is started.
rpc_port: 2882 # Internal port for OceanBase Database. The default value is 2882. DO NOT change this value after the cluster is started.
zone: zone1
cluster_id: 1
# please set memory limit to a suitable value which is matching resource.
# 最小可用模式下固定为 6G。
# 最大占用模式下 memory_limit = max(6G, 可用内存*0.9),当磁盘可用空间不足的情况下会被重新调整,最小值为 6G。
memory_limit: 6G # The maximum running memory for an observer
# 最小可用模式下固定为 1G。
# 最大占用模式下该配置项根据 memory_limit 配置的大小调整。对应关系如下表所示。
# memory_limit [6G, 8G) [8G, 16G) [16G, 32G) [32G,48G) [48G, 64G]
# system_memory 2G 3G 5G 7G 10G
system_memory: 2G # The reserved system memory. system_memory is reserved for general tenants. The default value is 30G.
# datafile_size: 2G # Size of the data file.
# datafile_next: 2G # the auto extend step. Please enter an capacity, such as 2G
datafile_maxsize: 96G # the auto extend max size. Please enter an capacity, such as 20G
# log_disk_size: 13G # The size of disk space used by the clog files.
cpu_count: 4
production_mode: false
enable_syslog_wf: false # Print system logs whose levels are higher than WARNING to a separate log file. The default value is true.
enable_syslog_recycle: true # Enable auto system log recycling or not. The default value is false.
max_syslog_file_count: 4 # The maximum number of reserved log files before enabling auto recycling. The default value is 0.
执行 obd cluster deploy 3.1.5 --clean -U - f
返回如下
+--------------------------------------------------------------------------------------------+
| Packages |
+--------------+---------+------------------------+------------------------------------------+
| Repository | Version | Release | Md5 |
+--------------+---------+------------------------+------------------------------------------+
| oceanbase-ce | 3.1.5 | 100020022023091114.el7 | 25cfee62ccdd625323d3a835e90d27e87677fe54 |
+--------------+---------+------------------------+------------------------------------------+
Repository integrity check ok
Parameter check ok
Initializes observer work home ok
Remote oceanbase-ce-3.1.5-100020022023091114.el7-25cfee62ccdd625323d3a835e90d27e87677fe54 repository install ok
Remote oceanbase-ce-3.1.5-100020022023091114.el7-25cfee62ccdd625323d3a835e90d27e87677fe54 repository lib check x
See https://www.oceanbase.com/product/ob-deployer/error-codes .
Trace ID: 8b6a29fe-1720-11ef-8e8e-00505688baf5
If you want to view detailed obd logs, please run: obd display-trace 8b6a29fe-1720-11ef-8e8e-00505688baf5
obd display-trace 中没有看到具体错误细节
...
[2024-05-21 11:16:43.311] [DEBUG] -- local execute: cat /home/oceanbase/.obd/repository/oceanbase-ce/3.1.5/25cfee62ccdd625323d3a835e90d27e87677fe54/.data
[2024-05-21 11:16:43.315] [DEBUG] -- exited code 0
[2024-05-21 11:16:43.316] [DEBUG] -- 127.0.0.1 oceanbase-ce-3.1.5-100020022023091114.el7-25cfee62ccdd625323d3a835e90d27e87677fe54 install check
[2024-05-21 11:16:43.319] [DEBUG] -- 127.0.0.1 oceanbase-ce-3.1.5-100020022023091114.el7-25cfee62ccdd625323d3a835e90d27e87677fe54 has installed
[2024-05-21 11:16:43.320] [DEBUG] -- oceanbase@127.0.0.1 set env _repo_dir to '/home/oceanbase/.obd/repository/oceanbase-ce/3.1.5/25cfee62ccdd625323d3a835e90d27e87677fe54'
[2024-05-21 11:16:43.320] [DEBUG] -- oceanbase@127.0.0.1 set env _home_path to '/home/oceanbase/observer'
[2024-05-21 11:16:43.320] [DEBUG] -- local execute: mkdir -p ${_home_path} && cd ${_repo_dir} && find -type d | xargs -i mkdir -p ${_home_path}/{}
[2024-05-21 11:16:43.332] [DEBUG] -- exited code 0
[2024-05-21 11:16:43.333] [DEBUG] -- oceanbase@127.0.0.1 set env source to '/home/oceanbase/.obd/repository/oceanbase-ce/3.1.5/25cfee62ccdd625323d3a835e90d27e87677fe54/bin/observer'
[2024-05-21 11:16:43.333] [DEBUG] -- oceanbase@127.0.0.1 set env target to '/home/oceanbase/observer/bin/observer'
[2024-05-21 11:16:43.333] [DEBUG] -- local execute: ln -fs ${source} ${target}
[2024-05-21 11:16:43.338] [DEBUG] -- exited code 0
[2024-05-21 11:16:43.339] [DEBUG] -- oceanbase@127.0.0.1 set env source to '/home/oceanbase/.obd/repository/oceanbase-ce/3.1.5/25cfee62ccdd625323d3a835e90d27e87677fe54/bin'
[2024-05-21 11:16:43.339] [DEBUG] -- oceanbase@127.0.0.1 set env target to '/home/oceanbase/observer/bin'
[2024-05-21 11:16:43.339] [DEBUG] -- local execute: ls -1 ${source}
[2024-05-21 11:16:43.345] [DEBUG] -- exited code 0
[2024-05-21 11:16:43.346] [DEBUG] -- local execute: cd ${source} && find -type f | xargs -i ln -fs ${source}/{} ${target}/{}
[2024-05-21 11:16:43.354] [DEBUG] -- exited code 0
[2024-05-21 11:16:43.355] [DEBUG] -- local execute: cd ${source} && find -type l | xargs -i ln -fs ${source}/{} ${target}/{}
[2024-05-21 11:16:43.361] [DEBUG] -- exited code 0
[2024-05-21 11:16:43.361] [DEBUG] -- oceanbase@127.0.0.1 set env source to '/home/oceanbase/.obd/repository/oceanbase-ce/3.1.5/25cfee62ccdd625323d3a835e90d27e87677fe54/etc'
[2024-05-21 11:16:43.361] [DEBUG] -- oceanbase@127.0.0.1 set env target to '/home/oceanbase/observer/etc'
[2024-05-21 11:16:43.361] [DEBUG] -- local execute: ls -1 ${source}
[2024-05-21 11:16:43.367] [DEBUG] -- exited code 0
[2024-05-21 11:16:43.367] [DEBUG] -- local execute: cd ${source} && find -type f | xargs -i cp -f ${source}/{} ${target}/{}
[2024-05-21 11:16:43.396] [DEBUG] -- exited code 0
[2024-05-21 11:16:43.397] [DEBUG] -- local execute: cd ${source} && find -type l | xargs -i cp -f ${source}/{} ${target}/{}
[2024-05-21 11:16:43.403] [DEBUG] -- exited code 0
[2024-05-21 11:16:43.437] [INFO] Remote oceanbase-ce-3.1.5-100020022023091114.el7-25cfee62ccdd625323d3a835e90d27e87677fe54 repository lib check
[2024-05-21 11:16:43.438] [DEBUG] -- 127.0.0.1 oceanbase-ce-3.1.5-100020022023091114.el7-25cfee62ccdd625323d3a835e90d27e87677fe54 repository lib check
[2024-05-21 11:16:43.438] [DEBUG] -- oceanbase@127.0.0.1 set env LD_LIBRARY_PATH to '/home/oceanbase/observer/lib:'
[2024-05-21 11:16:43.438] [DEBUG] -- local execute: ldd /home/oceanbase/observer/bin/observer
[2024-05-21 11:16:43.449] [DEBUG] -- exited code 0
[2024-05-21 11:16:43.450] [DEBUG] -- oceanbase@127.0.0.1 set env LD_LIBRARY_PATH to ''
[2024-05-21 11:16:43.569] [DEBUG] - sub install_repo ref count to 0
[2024-05-21 11:16:43.569] [DEBUG] - export install_repo
[2024-05-21 11:16:43.572] [INFO] See https://www.oceanbase.com/product/ob-deployer/error-codes .
[2024-05-21 11:16:43.572] [INFO] Trace ID: 8b6a29fe-1720-11ef-8e8e-00505688baf5
[2024-05-21 11:16:43.572] [INFO] If you want to view detailed obd logs, please run: obd display-trace 8b6a29fe-1720-11ef-8e8e-00505688baf5
[2024-05-21 11:16:43.573] [DEBUG] - exclusive lock /home/oceanbase/.obd/lock/mirror_and_repo release, count 2
[2024-05-21 11:16:43.573] [DEBUG] - exclusive lock /home/oceanbase/.obd/lock/mirror_and_repo release, count 1
[2024-05-21 11:16:43.573] [DEBUG] - exclusive lock /home/oceanbase/.obd/lock/mirror_and_repo release, count 0
[2024-05-21 11:16:43.573] [DEBUG] - try to get share lock /home/oceanbase/.obd/lock/mirror_and_repo
[2024-05-21 11:16:43.573] [DEBUG] - share lock /home/oceanbase/.obd/lock/mirror_and_repo release, count 0
[2024-05-21 11:16:43.573] [DEBUG] - unlock /home/oceanbase/.obd/lock/mirror_and_repo
[2024-05-21 11:16:43.573] [DEBUG] - exclusive lock /home/oceanbase/.obd/lock/deploy_3.1.5 release, count 0
[2024-05-21 11:16:43.573] [DEBUG] - unlock /home/oceanbase/.obd/lock/deploy_3.1.5
[2024-05-21 11:16:43.573] [DEBUG] - share lock /home/oceanbase/.obd/lock/global release, count 0
[2024-05-21 11:16:43.573] [DEBUG] - unlock /home/oceanbase/.obd/lock/global