[admin@localhost example]$ obd cluster start obtest
Get local repositories ok
Load cluster param plugin ok
Open ssh connection ok
[WARN] OBD-1011: (10.132.2.143) The recommended value of fs.aio-max-nr is 1048576 (Current value: 65536)
[WARN] OBD-1007: (10.132.2.143) The recommended number of open files is 655350 (Current value: 20000)
[WARN] OBD-1007: (10.132.2.143) The recommended number of max user processes is 655350 (Current value: 120000)
[WARN] OBD-1017: (10.132.2.143) The value of the “vm.max_map_count” must be within [327600, 1310720] (Current value: 65530, Recommended value: 655360)
[WARN] OBD-2000: (10.132.2.143) not enough memory. (Free: 3G, Need: 6G)
[WARN] OBD-1012: (10.132.2.143) clog and data use the same disk (/)
[ERROR] oceanbase-ce-py_script_environment_check-4.2.0.0 RuntimeError: ‘10.132.2.143’
See https://www.oceanbase.com/product/ob-deployer/error-codes .
Trace ID: f6197c5c-046c-11f0-884a-000c29082e7f
If you want to view detailed obd logs, please run: obd display-trace f6197c5c-046c-11f0-884a-000c29082e7f
obd日志: 默认保存在安装obd的用户home路径: cd ~/.obd/log/
obd cluster edit-config obtest --保存提供一下
看着像是内存不足导致的
1 个赞
有技术大神指导一下吗?在线急等,可付费
Only need to configure when remote login is required
user:
username: admin
password: Root@1234
key_file: your ssh-key file path if need
port: 22
timeout: ssh connection timeout (second), default 30
oceanbase-ce:
servers:
# Please don’t use hostname, only IP can be supported
- 10.132.2.143
global:The working directory for OceanBase Database. OceanBase Database is started under this directory. This is a required field.
home_path: /home/admin/observerThe directory for data storage. The default value is $home_path/store.
data_dir: /oceanbase/dataThe directory for clog, ilog, and slog. The default value is the same as the data_dir value.
redo_dir: /oceanbase/redoStarting 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: ens160
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: 1please set memory limit to a suitable value which is matching resource.
memory_limit: 6G # The maximum running memory for an observer
system_memory: 1G # The reserved system memory. system_memory is reserved for general tenants. The default value is 30G.
datafile_size: 2G # Size of the data file.
“/tmp/tmputyixcep.yaml” 41L, 2777B
内存看了目前是够用的,可用内存有8G
我看内存memory_limit: 6G 只有6g 如果内存大这个设置16G system_memory: 1G 这个尽量设置3G
用这个命令修改 obd cluster edit-config obtest
设置了这两个属性,已经生效了,启动还是报错
可以obd display-trace f6197c5c-046c-11f0-884a-000c29082e7f看下具体报错信息详情
看一下 启动报什么错 发一下日志
obd日志: 默认保存在安装obd的用户home路径: cd ~/.obd/log/