【 使用环境 】linux服务器
【 OB or 其他组件 】
【 使用版本 】
【问题描述】单机all-in-one部署oceanbase后想要扩容为单机三节点,在初始化第二个observer的时候出现问题,导致后续 alter system add server 语句出现错误
部署语句:
…/oceanbase-ce/bin/observer -r 127.0.0.1:2882:2881 -o __min_full_resource_pool_memory=268435456,memory_limit=8G,system_memory=4G,stack_size=512K,cpu_count=16,cache_wash_threshold=1G,workers_per_cpu_quota=10,schema_history_expire_time=1d,net_thread_count=4,sys_bkgd_migration_retry_num=3,minor_freeze_times=10,enable_separate_sys_clog=0,enable_merge_by_turn=False,datafile_size=50G,enable_syslog_recycle=True,max_syslog_file_count=10 -z zone2 -p 3881 -P 3882 -c 1 -d ./store -i eth0 -l INFO
【复现路径】问题出现前后相关操作
【附件及日志】推荐使用OceanBase敏捷诊断工具obdiag收集诊断信息,详情参见链接(右键跳转查看):
[2024-07-25 14:52:55.051191] ERROR issue_dba_error (ob_log.cpp:1923) [3055092][observer][T0][Y0-0000000000000000-0-0] [lt=4][errcode=-4388] Unexpected internal error happen, please checkout the internal errcode(errcode=-4002, file=“ob_server.cpp”, line_no=532, info="[OBSERVER_NOTICE] fail to init observer")
[2024-07-25 14:52:55.051203] EDIAG [SERVER] init (ob_server.cpp:532) [3055092][observer][T0][Y0-0000000000000000-0-0] [lt=11][errcode=-4002] [OBSERVER_NOTICE] fail to init observer(ret=-4002, ret=“OB_INVALID_ARGUMENT”) BACKTRACE:0x15861df8 0xd8f4c7c 0xdb10804 0xdb101f0 0xdb10120 0xdb0ff5c 0x9e59b70 0x9e4b4d8 0x69a9b90 0xffffb4cdaf40 0x4d31038
[2024-07-25 14:52:55.051235] ERROR init (ob_server.cpp:533) [3055092][observer][T0][Y0-0000000000000000-0-0] [lt=26][errcode=-4393] observer start process failure(msg=“observer init() has failure”, ret=-4002, ret=“OB_INVALID_ARGUMENT”)
[2024-07-25 14:52:55.051251] ERROR issue_dba_error (ob_log.cpp:1923) [3055092][observer][T0][Y0-0000000000000000-0-0] [lt=14][errcode=-4388] Unexpected internal error happen, please checkout the internal errcode(errcode=-4002, file=“main.cpp”, line_no=586, info=“observer init fail”)
[2024-07-25 14:52:55.051260] EDIAG [SERVER] main (main.cpp:586) [3055092][observer][T0][Y0-0000000000000000-0-0] [lt=9][errcode=-4002] observer init fail(ret=-4002) BACKTRACE:0x15861df8 0xd8f4c7c 0xdb0f1b4 0xdb0eb68 0xdb0ea98 0xdb0e8d4 0x69aad80 0x69a9eac 0xffffb4cdaf40 0x4d31038
ob版本是多少呢
1 个赞
minor_freeze_times, enable_separate_sys_clog, enable_merge_by_turn 这些变量从V4.0.0开始已经被弃用了。
谢谢您,解决了
谢谢啦,官网下的最新版,4.3.1.0。因为想部署单机三节点,看的教程是21年的,对着新变量设置一遍就好了
1 个赞