手工部署 observer初始化报错:data file size is too large

【产品名称】

oceanbase社区版

【产品版本】

oceanbase-ce-3.1.2-10000392021123010.el7.x86_64.rpm

【问题描述】

参考官方文档,执行手工初始化,到了下面这一步:

cd ~/oceanbase && bin/observer -i eth0 -p 2881 -P 2882 -z zone3 -d ~/oceanbase/store/obdemo -r ‘10.211.55.55:2882:2881;10.211.55.56:2882:2881;10.211.55.57:2882:2881’ -c 20210912 -n obdemo -o “memory_limit=8G,cache_wash_threshold=1G,__min_full_resource_pool_memory=268435456,system_memory=3G,memory_chunk_cache_size=128M,cpu_count=16,net_thread_count=4,datafile_size=50G,stack_size=1536K,config_additional_dir=/data/obdemo/etc3;/redo/obdemo/etc2” -d ~/oceanbase/store/obdem

出现的报错日志如下:

[2022-03-23 10:46:54.761115] ERROR [STORAGE] open (ob_local_file_system.cpp:395) [1198][0][Y0-0000000000000000] [lt=2] [dc=0] data file size is too large, (ret=-4184, free_space=44462501888, data_file_size_=53687091200) BACKTRACE:0x97b78ce 0x970a211 0x2228026 0x2227c6b 0x22279e3 0x221bb69 0x80b2b4c 0x80b1c75 0x8683a59 0x7b87931 0x91414b1 0x9137127 0x21e7705 0x2b66de66c555 0x21e63e9

free_space=44462501888, data_file_size_=53687091200

剩余空间有点小。

谢谢您,问题原因找到了,是我初始化的文件太大了,我把初始化参数改成10G,然后把原来生成的文件删除以后重新初始化就成功了。

空间设置太大了