首批通过分布式安全可靠测评,为关键业务系统打造
OBServer 启动报错:-4015, super block v1 size not match
更新时间:2026-05-12 08:31
适用版本
OceanBase 数据库 2.x 和 3.x 版本
问题描述
OBserver 在启动时遇到如下错误。
[2022-10-19 19:43:50.825124] ERROR [STORAGE] deserialize (ob_block_sstable_struct.cpp:222) [113168][0][Y0-0000000000000000] [lt=12] [dc=0] super block v1 size not match(ret=-4015, header_={super_block_size:0, version:0, magic:0, attr:0}, super_block_size=232) BACKTRACE:0xcc27f3a 0xcb47322 0x6f920ad 0x6f92681 0x6f7b9ac 0x6f78489 0x6f78609 0x71a8247 0x718b7bd 0x718b89f 0x6fdc794 0x804cde3 0x93a4705 0x93abdb4 0x31aa06e 0x7fbe2bd85555 0x3197029
问题原因
OBserver 的 SSTable 文件损坏导致。
解决方法
把该问题 OBServer 先做永久下线处理,再对 OBServer 上的 sstable 和 clog 做清空,然后重启 OBServer 进行副本的重建。
通过修改下线永久下线时间,把问题机器上的副本永久下线。
obclient [(none)]> SHOW PARAMETERS LIKE 'server_permanent_offline_time';obclient [(none)]> ALTER SYSTEM SET server_permanent_offline_time = '60s';可以通过删除
/data/1/<cluster_name>/sstable/block_file,同时删除ilog、clog、slog文件夹内的所有文件来解决。如果您使用的是 V2.x 版本,还需要删除
clog_shm和ilog_shm文件。[admin@hostname ~]$ rm -rf /data/1/<cluster_name>/sstable/block_file [admin@hostname ~]$ rm -rf /home/admin/oceanbase/store/<cluster_name>/ilog [admin@hostname ~]$ rm -rf /home/admin/oceanbase/store/<cluster_name>/clog [admin@hostname ~]$ rm -rf /home/admin/oceanbase/store/<cluster_name>/slog [admin@hostname ~]$ rm -rf /home/admin/oceanbase/store/<cluster_name>/clog_shm [admin@hostname ~]$ rm -rf /home/admin/oceanbase/store/<cluster_name>/ilog_shm重启 OBServer 进程。