【 使用环境 】测试环境
【 OB or 其他组件 】
【 使用版本 】oceanbase/oceanbase-ce latest
【问题描述】在用docker-compose部署 mini模式的时候,如果挂载了目录就会启动失败,不挂载目录就可以启动成功,操作系统是mac。
【复现路径】docker-compose内容如下:
version: ‘3.8’
services:
oceanbase:
container_name: oceanbase
image: oceanbase/oceanbase-ce:latest
restart: unless-stopped
volumes:
- ./data/oceanbase/ob:/root/ob
- ./data/oceanbase/obd/cluster:/root/.obd/cluster
ports:
- 2881:2881
【附件及日志】
do normal boot
oceanbase-ce-4.3.5.3 already installed.
±-------------------------------------------------------------------------------------------+
| Packages |
±-------------±--------±-----------------------±-----------------------------------------+
| Repository | Version | Release | Md5 |
±-------------±--------±-----------------------±-----------------------------------------+
| oceanbase-ce | 4.3.5.3 | 103000092025080818.el8 | 7e5fb28a8d79854ee8a541258a3cd154ecb62a4c |
±-------------±--------±-----------------------±-----------------------------------------+
Repository integrity check ok
Load param plugin ok
Open ssh connection ok
Initializes observer work home ok
Parameter check ok
Remote oceanbase-ce-4.3.5.3-103000092025080818.el8-7e5fb28a8d79854ee8a541258a3cd154ecb62a4c repository install ok
Remote oceanbase-ce-4.3.5.3-103000092025080818.el8-7e5fb28a8d79854ee8a541258a3cd154ecb62a4c repository lib check !!
Try to get lib-repository
oceanbase-ce-libs-4.3.5.3 already installed.
Remote oceanbase-ce-libs-4.3.5.3-103000092025080818.el8-f0f6be38f8228c33ce14ccaf8c8e938f965dfaad repository install ok
Remote oceanbase-ce-4.3.5.3-103000092025080818.el8-7e5fb28a8d79854ee8a541258a3cd154ecb62a4c repository lib check ok
obcluster deployed
Please execute obd cluster start obcluster
to start
Trace ID: 99a57cd2-7e56-11f0-aa3b-0242ac150002
If you want to view detailed obd logs, please run: obd display-trace 99a57cd2-7e56-11f0-aa3b-0242ac150002
Get local repositories ok
Load cluster param plugin ok
Open ssh connection ok
[WARN] OBD-1007: (172.21.0.2) The recommended number of core file size is unlimited (Current value: 0)
[WARN] OBD-1007: (172.21.0.2) The recommended number of stack size is unlimited (Current value: 8192)
[WARN] OBD-1017: (172.21.0.2) The value of the “vm.max_map_count” must be within [327600, 1310720] (Current value: 262144, Recommended value: 655360)
[WARN] OBD-1017: (172.21.0.2) The value of the “vm.overcommit_memory” must be 0 (Current value: 1, Recommended value: 0)
[WARN] OBD-1017: (172.21.0.2) The value of the “fs.file-max” must be greater than 6573688 (Current value: 524288, Recommended value: 6573688)
[WARN] OBD-1012: (172.21.0.2) clog and data use the same disk (/root/ob)
cluster scenario: express_oltp
Start observer ok
observer program health check x
[WARN] OBD-2002: Failed to start 172.21.0.2 observer
See https://www.oceanbase.com/product/ob-deployer/error-codes .
Trace ID: 9c35a440-7e56-11f0-b222-0242ac150002
If you want to view detailed obd logs, please run: obd display-trace 9c35a440-7e56-11f0-b222-0242ac150002
boot failed!
find obd deploy information, skip configuring…
start ob cluster …
Get local repositories ok
Load cluster param plugin ok
Open ssh connection ok
[WARN] OBD-1007: (172.21.0.2) The recommended number of core file size is unlimited (Current value: 0)
[WARN] OBD-1007: (172.21.0.2) The recommended number of stack size is unlimited (Current value: 8192)
[WARN] OBD-1017: (172.21.0.2) The value of the “vm.max_map_count” must be within [327600, 1310720] (Current value: 262144, Recommended value: 655360)
[WARN] OBD-1017: (172.21.0.2) The value of the “vm.overcommit_memory” must be 0 (Current value: 1, Recommended value: 0)
[WARN] OBD-1017: (172.21.0.2) The value of the “fs.file-max” must be greater than 6573688 (Current value: 524288, Recommended value: 6573688)
[WARN] OBD-2000: (172.21.0.2) not enough memory. (Free: 6G, Need: 6G)
[WARN] OBD-1012: (172.21.0.2) clog and data use the same disk (/root/ob)
cluster scenario: express_oltp
Start observer ok
observer program health check x
[WARN] OBD-2002: Failed to start 172.21.0.2 observer
See https://www.oceanbase.com/product/ob-deployer/error-codes .
Trace ID: 9fb7875a-7e56-11f0-9e0e-0242ac150002
If you want to view detailed obd logs, please run: obd display-trace 9fb7875a-7e56-11f0-9e0e-0242ac150002
Thu Aug 21 06:18:20 UTC 2025
boot success!
@论坛小助手