【 使用环境 】测试环境
【 obd 组件 】
【 使用版本 】4.3.5
【问题描述】运行obd cluster start demo
出现报错
observer program health check x
[WARN] OBD-2002: Failed to start 127.0.0.1 observer
See https://www.oceanbase.com/product/ob-deployer/error-codes .
按官方提示:
通常情况下 memory_limt/3 ≤ system_memory ≤ memory_limt/2
yaml改为
memory_limt 10G
system_memory 4Gz
一样的结果,
服务器CPU 16X2 共32核心
内存4X8G 共32G
是不是多核服务器不能用mini-single模式?
mini-single.yaml 配置如下
oceanbase-ce:
servers:
# Please don’t use hostname, only IP can be supported
- 192.168.1.3
global:
# The working directory for OceanBase Database. OceanBase Database is started under this directory. This is a required field.
home_path: /root/observer
# The directory for data storage. The default value is $home_path/store.
# data_dir: /data
# The directory for clog, ilog, and slog. The default value is the same as the data_dir value.
# redo_dir: /redo
# 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 is set, the observer will first use this parameter for the configuration, regardless of the ‘devname’ parameter.
# If only the ‘devname’ parameter is set, the observer will use the ‘devname’ parameter for the configuration.
# If neither the ‘devname’ nor the ‘local_ip’ parameters are set, the ‘local_ip’ parameter will be automatically assigned the IP address configured above.
# devname: eth0
mysql_port: 2881 # 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.
obshell_port: 2886 # Operation and maintenance port for Oceanbase Database. The default value is 2886. This parameter is valid only when the version of oceanbase-ce is 4.2.2.0 or later.
zone: zone1
cluster_id: 1
# please set memory limit to a suitable value which is matching resource.
memory_limit: 10G # The maximum running memory for an observer
system_memory: 4G # 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: 20G # the auto extend max size. Please enter an capacity, such as 20G
log_disk_size: 14G # The size of disk space used by the clog files.
cpu_count: 16
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.
max_syslog_file_count: 4 # The maximum number of reserved log files before enabling auto recycling. The default value is 0.
# root_password: # root user password, can be empty
/data/obdata/sstable/block_file,权限问题?
围观学习~
权限755,root,应不是权限问题。
我在其他桌面电脑麒麟系统安装,没有出现这种问题。
没出现过这个问题,是不是还是资源不足啊,OB很吃资源的,你这个CPU和内存都怎么配置的
cpu 32核心,内存32G
yaml配置:
memory_limit: 10G
system_memory: 4G
cpu_count: 16
是按intel版本安装的麒麟v10 sp1
内存cpu分配的没问题。需要提供一份obd详细日志 cd ~/.obd/log下
root@SXDC-pc:~/.obd/log# tail -n 50 ./obd
[2025-09-01 15:33:05.099] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] – update enable_record_trace_log to False because of scenario
[2025-09-01 15:33:05.100] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] – update enable_syslog_recycle to 1 because of scenario
[2025-09-01 15:33:05.100] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] – update max_syslog_file_count to 300 because of scenario
[2025-09-01 15:33:05.100] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - sub start_pre ref count to 0
[2025-09-01 15:33:05.100] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - export start_pre
[2025-09-01 15:33:05.100] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - plugin oceanbase-ce-py_script_start_pre-4.2.5.0 result: True
[2025-09-01 15:33:05.100] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - Searching start plugin for components …
[2025-09-01 15:33:05.100] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - Searching start plugin for oceanbase-ce-4.3.5.3-103000092025080818.el7-8120a146d35cd47a9289d91990c8b44a8c21675d
[2025-09-01 15:33:05.101] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - Found for oceanbase-ce-py_script_start-3.1.0 for oceanbase-ce-4.3.5.3
[2025-09-01 15:33:05.101] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - Call plugin oceanbase-ce-py_script_start-3.1.0 for oceanbase-ce-4.3.5.3-103000092025080818.el7-8120a146d35cd47a9289d91990c8b44a8c21675d
[2025-09-01 15:33:05.102] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - import start
[2025-09-01 15:33:05.103] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - add start ref count to 1
[2025-09-01 15:33:05.103] [e5004e02-8705-11f0-98ef-add8c2864f8d] [INFO] Start observer
[2025-09-01 15:33:05.104] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] – starting 127.0.0.1 observer
[2025-09-01 15:33:05.104] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] – SXDC@127.0.0.1 export LD_LIBRARY_PATH=’/root/observer/lib:’
[2025-09-01 15:33:05.105] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] – local execute: cd /root/observer; /root/observer/bin/observer -r ‘127.0.0.1:2882:2881’ -p 2881 -P 2882 -z ‘zone1’ -n ‘demo82’ -c 1 -d ‘/data/obdata’ -I ‘127.0.0.1’ -o __min_full_resource_pool_memory=2147483648,memory_limit=‘8G’,system_memory=‘2G’,datafile_size=‘2G’,datafile_next=‘2G’,datafile_maxsize=‘20G’,log_disk_size=‘10G’,cpu_count=8,enable_syslog_wf=True,max_syslog_file_count=4,datafile_disk_percentage=60,large_query_threshold=‘600s’,enable_record_trace_log=False,enable_syslog_recycle=1
[2025-09-01 15:33:07.280] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] – exited code 0
[2025-09-01 15:33:07.281] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] – SXDC@127.0.0.1 delete env LD_LIBRARY_PATH
[2025-09-01 15:33:07.319] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] – need_bootstrap: True
[2025-09-01 15:33:07.319] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - sub start ref count to 0
[2025-09-01 15:33:07.319] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - export start
[2025-09-01 15:33:07.319] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - plugin oceanbase-ce-py_script_start-3.1.0 result: True
[2025-09-01 15:33:07.320] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - Searching health_check plugin for components …
[2025-09-01 15:33:07.320] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - Searching health_check plugin for oceanbase-ce-4.3.5.3-103000092025080818.el7-8120a146d35cd47a9289d91990c8b44a8c21675d
[2025-09-01 15:33:07.321] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - Found for oceanbase-ce-py_script_health_check-3.1.0 for oceanbase-ce-4.3.5.3
[2025-09-01 15:33:07.321] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - Call plugin oceanbase-ce-py_script_health_check-3.1.0 for oceanbase-ce-4.3.5.3-103000092025080818.el7-8120a146d35cd47a9289d91990c8b44a8c21675d
[2025-09-01 15:33:07.321] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - import health_check
[2025-09-01 15:33:07.322] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - add health_check ref count to 1
[2025-09-01 15:33:07.323] [e5004e02-8705-11f0-98ef-add8c2864f8d] [INFO] observer program health check
[2025-09-01 15:33:10.326] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] – 127.0.0.1 program health check
[2025-09-01 15:33:10.326] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] – local execute: cat /root/observer/run/observer.pid
[2025-09-01 15:33:10.331] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] – exited code 0
[2025-09-01 15:33:10.331] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] – local execute: ls /proc/11375
[2025-09-01 15:33:10.336] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] – exited code 2, error output:
[2025-09-01 15:33:10.336] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] ls: 无法访问’/proc/11375’: 没有那个文件或目录
[2025-09-01 15:33:10.336] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG]
[2025-09-01 15:33:10.448] [e5004e02-8705-11f0-98ef-add8c2864f8d] [WARNING] [WARN] OBD-2002: Failed to start 127.0.0.1 observer
[2025-09-01 15:33:10.448] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - sub health_check ref count to 0
[2025-09-01 15:33:10.448] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - export health_check
[2025-09-01 15:33:10.449] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - plugin oceanbase-ce-py_script_health_check-3.1.0 result: False
[2025-09-01 15:33:10.452] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 1
[2025-09-01 15:33:10.452] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 0
[2025-09-01 15:33:10.452] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - unlock /root/.obd/lock/mirror_and_repo
[2025-09-01 15:33:10.452] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - exclusive lock /root/.obd/lock/deploy_demo82 release, count 0
[2025-09-01 15:33:10.453] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - unlock /root/.obd/lock/deploy_demo82
[2025-09-01 15:33:10.453] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - share lock /root/.obd/lock/global release, count 0
[2025-09-01 15:33:10.453] [e5004e02-8705-11f0-98ef-add8c2864f8d] [DEBUG] - unlock /root/.obd/lock/global
[2025-09-01 15:33:10.453] [e5004e02-8705-11f0-98ef-add8c2864f8d] [INFO] See https://www.oceanbase.com/product/ob-deployer/error-codes .
[2025-09-01 15:33:10.453] [e5004e02-8705-11f0-98ef-add8c2864f8d] [INFO] Trace ID: e5004e02-8705-11f0-98ef-add8c2864f8d
[2025-09-01 15:33:10.453] [e5004e02-8705-11f0-98ef-add8c2864f8d] [INFO] If you want to view detailed obd logs, please run: obd display-trace e5004e02-8705-11f0-98ef-add8c2864f8d
Failed to start 127.0.0.1 observer启动异常问题。
cpu是什么架构的 如果是x86指令集需要avx
围观学习
学习一下
谢谢指导,
我安装的intel版X86 麒麟系统,安装检测失败,observer.log日志显示,读写clog没有权限报错,
换海光版麒麟系统就没有这个报错了,看来是CPU架构的问题。