添加新zone,在新zone添加observer时遇到问题

【 使用环境 】 测试环境
【 OB or 其他组件 】OBserver
【 使用版本 】社区3.1.5 oceanbase-ce-3.1.5-100000252023041721.el7.x86_64
【问题描述】
集群架构:
zone1: 192.168.0.201
zone2: 192.168.0.202
zone3: 192.168.0.203

1-1-1 模型部署

目前在做实验,想要新加zone4,下掉zone1
zone4: 192.168.0.204

根据帮助文档:
https://www.oceanbase.com/docs/community-observer-cn-10000000001880331

命令:
mysql> ALTER SYSTEM ADD ZONE zone4:
mysql> ALTER SYSTEM START ZONE zone4;
mysql> select * from __all_zone where zone=‘zone4’;
±---------------------------±---------------------------±------±--------------------±-----------------±---------------+
| gmt_create | gmt_modified | zone | name | value | info |
±---------------------------±---------------------------±------±--------------------±-----------------±---------------+
| 2023-10-11 11:35:41.453073 | 2023-10-11 11:35:41.453073 | zone4 | all_merged_version | 10 | |
| 2023-10-11 11:35:41.453073 | 2023-10-11 11:35:41.453073 | zone4 | broadcast_version | 10 | |
| 2023-10-11 11:35:41.453073 | 2023-10-11 11:35:41.453073 | zone4 | idc | 0 | |
| 2023-10-11 11:35:41.453073 | 2023-10-11 11:35:41.453073 | zone4 | is_merge_timeout | 0 | |
| 2023-10-11 11:35:41.453073 | 2023-10-11 11:35:41.453073 | zone4 | is_merging | 0 | |
| 2023-10-11 11:35:41.453073 | 2023-10-11 11:35:41.453073 | zone4 | last_merged_time | 1696995341451968 | |
| 2023-10-11 11:35:41.453073 | 2023-10-11 11:35:41.453073 | zone4 | last_merged_version | 10 | |
| 2023-10-11 11:35:41.453073 | 2023-10-11 11:35:41.453073 | zone4 | merge_start_time | 1696995341451968 | |
| 2023-10-11 11:35:41.453073 | 2023-10-11 11:35:41.453073 | zone4 | merge_status | 0 | IDLE |
| 2023-10-11 11:35:41.453073 | 2023-10-11 11:35:41.453073 | zone4 | recovery_status | 0 | NORMAL |
| 2023-10-11 11:35:41.453073 | 2023-10-11 11:35:41.453073 | zone4 | region | 0 | default_region |
| 2023-10-11 11:35:41.452547 | 2023-10-11 11:35:56.171636 | zone4 | status | 2 | ACTIVE |
| 2023-10-11 11:35:41.453073 | 2023-10-11 11:35:41.453073 | zone4 | storage_type | 0 | LOCAL |
| 2023-10-11 11:35:41.453073 | 2023-10-11 11:35:41.453073 | zone4 | suspend_merging | 0 | |
| 2023-10-11 11:35:41.453073 | 2023-10-11 11:35:41.453073 | zone4 | zone_type | 0 | LOCAL |
±---------------------------±---------------------------±------±--------------------±-----------------±---------------+
15 rows in set (0.01 sec)

在 zone4: 192.168.0.204 机器启动obseer:
cd /home/admin/oceanbase && /home/admin/oceanbase/bin/observer -i enp0s3 -P 2882 -p 2881 -z zone1 -d /home/admin/oceanbase/store/obdemo -r ‘192.168.0.201:2882:2881;192.168.0.202:2882:2881;192.168.0.203:2882:2881’ -c 10001 -n obdemo -o “__min_full_resource_pool_memory=1073741824,memory_limit=10G,system_memory=1G,datafile_size=50G,config_additional_dir=/data/1/obdemo/etc3;/data/log1/obdemo/etc2”

目前 observer.log 日志报错内容

-bash-4.2$ grep ERROR observer.log
[2023-10-11 14:08:30.101776] INFO [SHARE.SCHEMA] ob_schema_struct.cpp:168 [2480][0][Y0-0000000000000000] [lt=3] [dc=0] set tenant space table name(key=15656453541099564691, table={database_id:6, name_case_mode:2, table_name:“ALL_VIRTUAL_ERROR_AGENT”})
[2023-10-11 14:08:30.102954] INFO [SHARE.SCHEMA] ob_schema_struct.cpp:168 [2480][0][Y0-0000000000000000] [lt=3] [dc=0] set tenant space table name(key=2868000062764514379, table={database_id:6, name_case_mode:2, table_name:“ALL_VIRTUAL_TENANT_ERROR_REAL_AGENT”})
[2023-10-11 14:08:30.505400] ERROR [SERVER.OMT] init (ob_multi_tenant.cpp:184) [2480][0][Y0-0000000000000000] [lt=5] [dc=0] node quota should greater than 1(node_quota_=0.000000000000000000e+00, ret=-4002) BACKTRACE:0x9b8f29e 0x99624d1 0x232b86f 0x232b4bb 0x232b282 0x4f5f4a6 0x937ff52 0x945a435 0x944f106 0x22ed145 0x7f7074a84555 0x22ebe29
[2023-10-11 14:08:30.505439] ERROR [SERVER] init_multi_tenant (ob_server.cpp:1206) [2480][0][Y0-0000000000000000] [lt=36] [dc=0] init multi tenant fail(ret=-4002) BACKTRACE:0x9b8f29e 0x99624d1 0x22f0af4 0x22f05db 0x22f0341 0x22eefd8 0x945b352 0x944f106 0x22ed145 0x7f7074a84555 0x22ebe29
[2023-10-11 14:08:30.505452] ERROR [SERVER] init (ob_server.cpp:318) [2480][0][Y0-0000000000000000] [lt=9] [dc=0] init multi tenant fail(ret=-4002) BACKTRACE:0x9b8f29e 0x99624d1 0x22f0af4 0x22f05db 0x22f0341 0x22eefd8 0x9451181 0x22ed145 0x7f7074a84555 0x22ebe29
[2023-10-11 14:09:32.115709] ERROR [SERVER] main (main.cpp:494) [2480][0][Y0-0000000000000000] [lt=1] [dc=0] observer init fail(ret=-4002) BACKTRACE:0x9b8f29e 0x99624d1 0x22f0af4 0x22f05db 0x22f0341 0x22eefd8 0x22ed44a 0x7f7074a84555 0x22ebe29

问题1:这个 -r 参数,是需要把 zone1 zone2 zone3 zone4 的IP地址都写上吗?

如操作步骤有误,麻烦指正。

不要手动部署吧,非常容易出问题,直接用obd吧,或者用OCP操作

嗯,感谢回复。
问下这个 -r 参数,是需要把 zone1 zone2 zone3 zone4 的IP地址都写上吗? 我对 -r 这个参数还是不太明白

需要,他会跟这几个节点通讯

zone4 节点启动参数写错了 -z zone1 改为 -z zone4 。 -r 跟其他节点保持一致。
参考:https://mp.weixin.qq.com/s/L0uBV8s5gXagiylz4vYyOg