【 使用环境 】生产环境 or 测试环境
【 OB or 其他组件 】
【 使用版本 】4.3.5.3
【问题描述】[2026-01-21 16:55:26.279] [ERROR] [ERROR] OBD-5000: create resource pool wyx_pool unit=‘wyx_unit1’, unit_num=1, zone_list=(‘zone1’) execute failed
[2026-01-21 16:55:26.280] [ERROR] [ERROR] create resource pool failed
[2026-01-21 16:55:26.322] [INFO] [ERROR] OBD-5000: create resource pool wyx_pool unit=‘wyx_unit1’, unit_num=1, zone_list=(‘zone1’) execute failed
[2026-01-21 16:55:26.334] [INFO] [ERROR] create resource pool failed
【复现路径】问题出现前后相关操作
【附件及日志】推荐使用OceanBase敏捷诊断工具obdiag收集诊断信息,详情参见链接(右键跳转查看):
【SOP系列 22 】——故障诊断第一步(自助诊断和诊断信息收集)
【备注】基于 LLM 和开源文档 RAG 的论坛小助手已开放测试,在发帖时输入 [@论坛小助手 ] 即可召唤小助手,欢迎试用!
2 个赞
论坛小助手
2026 年1 月 21 日 17:08
#3
根据您的描述,您遇到了创建业务租户失败的问题,错误信息提示“OBD-5000: create resource pool wyx_pool unit=‘wyx_unit1’, unit_num=1, zone_list=(‘zone1’) execute failed”和“create resource pool failed”。这可能是由于资源池配置不当或资源不足导致的。我们可以通过 obdiag 工具来进一步收集日志和分析问题。
推荐您使用 obdiag 工具进行日志采集,这将帮助我们获取更详细的日志信息以便分析问题所在。
日志采集场景: 创建资源池失败
日志采集命令:
obdiag gather scene run --scene=observer.unit_data_imbalance
该命令会收集与资源池和单元分配相关的日志信息,有助于我们诊断问题。
为了更好地帮助您,请提供以下信息:
您的集群当前的资源使用情况,特别是各个 Zone 的资源占用情况。
您尝试创建的资源池的具体配置参数,例如 max_cpu、min_cpu、max_memory 等。
您的集群是否已经存在其他资源池,如果有,请提供这些资源池的配置信息。
您的操作步骤,包括创建租户和资源池的命令及其执行时间。
如果可能,请提供创建租户和资源池时的完整错误日志。
通过这些信息,我们可以更准确地定位问题并提供解决方案。感谢您的配合!
附上敏捷诊断工具 obdiag 使用帮助链接
[luq@localhost ~]$ obdiag gather scene run --scene=observer.unit_data_imbalance
bash: obdiag: 未找到命令…
旭辉
2026 年1 月 21 日 18:20
#5
使用OBD命令创建租户失败是吧?
查下serever资源信息
select /*+ READ_CONSISTENCY(WEAK) */
a.zone,
a.svr_ip,
b.status,
cpu_capacity,
cpu_assigned_max,
cpu_capacity-cpu_assigned_max as cpu_free,
round(memory_limit /1024/1024/1024 ,2) as memory_total_gb,
round(mem_capacity /1024/1024/1024 ,2) as mem_capacity,
round((memory_limit-mem_capacity) /1024/1024/1024 ,2) as system_memory_gb,
round(mem_assigned /1024/1024/1024 ,2) as mem_assigned_gb,
round((mem_capacity-mem_assigned) /1024/1024/1024 ,2) as memory_free_gb,
round(log_disk_capacity /1024/1024/1024 ,2) as log_disk_capacity_gb,
round(log_disk_assigned /1024/1024/1024 ,2) as log_disk_assigned_gb,
round((log_disk_capacity-log_disk_assigned) /1024/1024/1024 ,2) as log_disk_free_gb,
round((data_disk_capacity /1024/1024/1024 ),2) as data_disk_capacity_gb,
round((DATA_DISK_ALLOCATED /1024/1024/1024 ),2) as data_disk_allocate_gb,
round((data_disk_in_use /1024/1024/1024 ),2) as data_disk_used_gb,
round((data_disk_capacity-data_disk_in_use) /1024/1024/1024 ,2) as data_disk_free_gb
from oceanbase.gv$ob_servers a
join oceanbase.DBA_OB_SERVERS b on a.zone=b.zone\G;
旭辉:
select /*+ READ_CONSISTENCY(WEAK) */
a.zone,
a.svr_ip,
b.status,
cpu_capacity,
cpu_assigned_max,
cpu_capacity-cpu_assigned_max as cpu_free,
round(memory_limit /1024/1024/1024 ,2) as memory_total_gb,
round(mem_capacity /1024/1024/1024 ,2) as mem_capacity,
round((memory_limit-mem_capacity) /1024/1024/1024 ,2) as system_memory_gb,
round(mem_assigned /1024/1024/1024 ,2) as mem_assigned_gb,
round((mem_capacity-mem_assigned) /1024/1024/1024 ,2) as memory_free_gb,
round(log_disk_capacity /1024/1024/1024 ,2) as log_disk_capacity_gb,
round(log_disk_assigned /1024/1024/1024 ,2) as log_disk_assigned_gb,
round((log_disk_capacity-log_disk_assigned) /1024/1024/1024 ,2) as log_disk_free_gb,
round((data_disk_capacity /1024/1024/1024 ),2) as data_disk_capacity_gb,
round((DATA_DISK_ALLOCATED /1024/1024/1024 ),2) as data_disk_allocate_gb,
round((data_disk_in_use /1024/1024/1024 ),2) as data_disk_used_gb,
round((data_disk_capacity-data_disk_in_use) /1024/1024/1024 ,2) as data_disk_free_gb
from oceanbase.gv$ob_servers a
join oceanbase.DBA_OB_SERVERS b on a.zone=b.zone\G;
*************************** 1. row ***************************
zone: zone_wyx
svr_ip: 192.168.1.107
status: ACTIVE
cpu_capacity: 12
cpu_assigned_max: 2
cpu_free: 10
memory_total_gb: 8.00
mem_capacity: 7.00
system_memory_gb: 1.00
mem_assigned_gb: 1.00
memory_free_gb: 6.00
log_disk_capacity_gb: 21.00
log_disk_assigned_gb: 2.00
log_disk_free_gb: 19.00
data_disk_capacity_gb: 21.00
data_disk_allocate_gb: 20.00
data_disk_used_gb: 0.08
data_disk_free_gb: 20.92
1 row in set (0.258 sec)
ERROR: No query specified
[2026-01-23 09:35:40.971] [DEBUG] - Get Deploy by name
[2026-01-23 09:35:40.972] [DEBUG] - exclusive lock /home/luq/.obd/lock/deploy_wyx, count 12
[2026-01-23 09:35:41.094] [DEBUG] - Deploy status judge
[2026-01-23 09:35:41.095] [DEBUG] - Get deploy config
[2026-01-23 09:35:41.798] [INFO] Get local repositories
[2026-01-23 09:35:41.813] [DEBUG] - Get local repository oceanbase-standalone-4.3.5.3-bde199f2413270cfafca855be9c5ae54cadf7024
[2026-01-23 09:35:41.813] [DEBUG] - Searching param plugin for components …
[2026-01-23 09:35:41.813] [DEBUG] - Search param plugin for oceanbase-standalone
[2026-01-23 09:35:41.880] [DEBUG] - Found for oceanbase-standalone-param-4.3.3.0 for oceanbase-standalone-4.3.5.3
[2026-01-23 09:35:41.882] [DEBUG] - Applying oceanbase-standalone-param-4.3.3.0 for oceanbase-standalone-4.3.5.3-103050012025100922.el8-bde199f2413270cfafca855be9c5ae54cadf7024
[2026-01-23 09:35:41.885] [INFO] Open ssh connection
[2026-01-23 09:35:41.889] [DEBUG] - host: 192.168.1.107, port: 22, user: luq, password: ******
[2026-01-23 09:35:43.505] [DEBUG] - Searching create_tenant template for components …
[2026-01-23 09:35:43.509] [DEBUG] - Call workflow oceanbase-standalone-py_script_workflow_create_tenant-4.3.5.2 for oceanbase-standalone-4.3.5.3-103050012025100922.el8-bde199f2413270cfafca855be9c5ae54cadf7024
[2026-01-23 09:35:43.510] [DEBUG] - import create_tenant
[2026-01-23 09:35:43.565] [DEBUG] - add create_tenant ref count to 1
[2026-01-23 09:35:43.582] [DEBUG] - sub create_tenant ref count to 0
[2026-01-23 09:35:43.587] [DEBUG] - export create_tenant
[2026-01-23 09:35:43.597] [DEBUG] - plugin oceanbase-standalone-py_script_workflow_create_tenant-4.3.5.2 result: True
[2026-01-23 09:35:43.598] [DEBUG] - Found for oceanbase-standalone-py_script_workflow_create_tenant-4.3.5.2 for oceanbase-standalone-4.3.5.2
[2026-01-23 09:35:43.598] [DEBUG] - Searching create_tenant_pre plugin for components …
[2026-01-23 09:35:43.598] [DEBUG] - Searching create_tenant_pre plugin for oceanbase-standalone-4.3.5.3-103050012025100922.el8-bde199f2413270cfafca855be9c5ae54cadf7024
[2026-01-23 09:35:43.664] [DEBUG] - Found for oceanbase-standalone-py_script_create_tenant_pre-3.1.0 for oceanbase-standalone-4.3.5.3
[2026-01-23 09:35:43.682] [DEBUG] - Call plugin oceanbase-standalone-py_script_create_tenant_pre-3.1.0 for oceanbase-standalone-4.3.5.3-103050012025100922.el8-bde199f2413270cfafca855be9c5ae54cadf7024
[2026-01-23 09:35:43.682] [DEBUG] - import create_tenant_pre
[2026-01-23 09:35:43.693] [DEBUG] - add create_tenant_pre ref count to 1
[2026-01-23 09:35:43.696] [DEBUG] - sub create_tenant_pre ref count to 0
[2026-01-23 09:35:43.696] [DEBUG] - export create_tenant_pre
[2026-01-23 09:35:43.696] [DEBUG] - plugin oceanbase-standalone-py_script_create_tenant_pre-3.1.0 result: True
[2026-01-23 09:35:43.696] [DEBUG] - Searching scenario_check plugin for components …
[2026-01-23 09:35:43.698] [DEBUG] - Searching scenario_check plugin for oceanbase-standalone-4.3.5.3-103050012025100922.el8-bde199f2413270cfafca855be9c5ae54cadf7024
[2026-01-23 09:35:43.704] [DEBUG] - Found for oceanbase-standalone-py_script_scenario_check-4.2.5.0 for oceanbase-standalone-4.3.5.3
[2026-01-23 09:35:43.704] [DEBUG] - Call plugin oceanbase-standalone-py_script_scenario_check-4.2.5.0 for oceanbase-standalone-4.3.5.3-103050012025100922.el8-bde199f2413270cfafca855be9c5ae54cadf7024
[2026-01-23 09:35:43.710] [DEBUG] - import scenario_check
[2026-01-23 09:35:43.723] [DEBUG] - add scenario_check ref count to 1
[2026-01-23 09:35:43.729] [DEBUG] – set scenario htap.
[2026-01-23 09:35:43.733] [DEBUG] - sub scenario_check ref count to 0
[2026-01-23 09:35:43.734] [DEBUG] - export scenario_check
[2026-01-23 09:35:43.734] [DEBUG] - plugin oceanbase-standalone-py_script_scenario_check-4.2.5.0 result: True
[2026-01-23 09:35:43.734] [DEBUG] - Searching connect plugin for components …
[2026-01-23 09:35:43.734] [DEBUG] - Searching connect plugin for oceanbase-standalone-4.3.5.3-103050012025100922.el8-bde199f2413270cfafca855be9c5ae54cadf7024
[2026-01-23 09:35:43.736] [DEBUG] - Found for oceanbase-standalone-py_script_connect-3.1.0 for oceanbase-standalone-4.3.5.3
[2026-01-23 09:35:43.736] [DEBUG] - Call plugin oceanbase-standalone-py_script_connect-3.1.0 for oceanbase-standalone-4.3.5.3-103050012025100922.el8-bde199f2413270cfafca855be9c5ae54cadf7024
[2026-01-23 09:35:43.742] [INFO] Connect to observer
[2026-01-23 09:35:43.752] [DEBUG] – mysql connect 192.168.1.107 -P2881 -uroot -p******
[2026-01-23 09:35:43.815] [DEBUG] – mysql execute sql: select 1. args: None
[2026-01-23 09:35:43.831] [DEBUG] - plugin oceanbase-standalone-py_script_connect-3.1.0 result: True
[2026-01-23 09:35:43.833] [DEBUG] - Searching create_tenant plugin for components …
[2026-01-23 09:35:43.834] [DEBUG] - Searching create_tenant plugin for oceanbase-standalone-4.3.5.3-103050012025100922.el8-bde199f2413270cfafca855be9c5ae54cadf7024
[2026-01-23 09:35:43.836] [DEBUG] - Found for oceanbase-standalone-py_script_create_tenant-4.0.0.0 for oceanbase-standalone-4.3.5.3
[2026-01-23 09:35:43.836] [DEBUG] - Call plugin oceanbase-standalone-py_script_create_tenant-4.0.0.0 for oceanbase-standalone-4.3.5.3-103050012025100922.el8-bde199f2413270cfafca855be9c5ae54cadf7024
[2026-01-23 09:35:43.836] [DEBUG] - import create_tenant
[2026-01-23 09:35:43.892] [DEBUG] - add create_tenant ref count to 1
[2026-01-23 09:35:43.912] [DEBUG] – mysql execute sql: select * from oceanbase.DBA_OB_UNIT_CONFIGS order by name. args: None
[2026-01-23 09:35:44.028] [DEBUG] – mysql execute sql: select * from oceanbase.DBA_OB_TENANTS where TENANT_NAME = %s. args: [‘luq’]
[2026-01-23 09:35:44.755] [INFO] Create tenant luq
[2026-01-23 09:35:44.760] [DEBUG] – mysql execute sql: select zone, count() num from oceanbase.__all_server where status = ‘active’ group by zone. args: None
[2026-01-23 09:35:44.852] [DEBUG] – mysql execute sql: select count( ) num from oceanbase.__all_server where status = ‘active’ and start_service_time > 0. args: None
[2026-01-23 09:35:45.027] [DEBUG] – mysql execute sql: SELECT * FROM oceanbase.GV$OB_SERVERS where zone in (‘zone_wyx’). args: None
[2026-01-23 09:35:45.110] [DEBUG] – mysql execute sql: create resource unit luq_unit max_cpu 5.0, memory_size 3221225472, min_cpu 5.0, log_disk_size 6442450944. args: None
[2026-01-23 09:35:46.050] [DEBUG] – mysql execute sql: create resource pool luq_pool unit=‘luq_unit’, unit_num=1, zone_list=(‘zone_wyx’). args: None
[2026-01-23 09:35:47.146] [DEBUG] – mysql execute sql: create tenant luq replica_num=1,zone_list=(‘zone_wyx’),primary_zone=‘RANDOM’,resource_pool_list=(‘luq_pool’), charset = ‘gbk’, collate = ‘gbk_chinese_ci’set ob_tcp_invited_nodes=’%’, ob_compatibility_mode = ‘oracle’. args: None
[2026-01-23 09:37:46.293] [ERROR] [ERROR] OBD-5000: create tenant luq replica_num=1,zone_list=(‘zone_wyx’),primary_zone=‘RANDOM’,resource_pool_list=(‘luq_pool’), charset = ‘gbk’, collate = ‘gbk_chinese_ci’set ob_tcp_invited_nodes=’%’, ob_compatibility_mode = ‘oracle’ execute failed
[2026-01-23 09:37:46.293] [ERROR] [ERROR] create tenant failed
[2026-01-23 09:37:46.293] [INFO] [ERROR] OBD-5000: create tenant luq replica_num=1,zone_list=(‘zone_wyx’),primary_zone=‘RANDOM’,resource_pool_list=(‘luq_pool’), charset = ‘gbk’, collate = ‘gbk_chinese_ci’set ob_tcp_invited_nodes=’%’, ob_compatibility_mode = ‘oracle’ execute failed
[2026-01-23 09:37:46.295] [INFO] [ERROR] create tenant failed
[2026-01-23 09:37:46.297] [INFO]
[2026-01-23 09:37:46.297] [DEBUG] - sub create_tenant ref count to 0
[2026-01-23 09:37:46.297] [DEBUG] - export create_tenant
[2026-01-23 09:37:46.297] [DEBUG] - plugin oceanbase-standalone-py_script_create_tenant-4.0.0.0 result: False
这个是整个部署日志
旭辉
2026 年1 月 23 日 10:35
#10
你选的那个应该是企业版,可以部署社区版,也可以是单机的