【 使用环境 】测试环境(将转生产环境)
虚拟机8CPU、16G内存、100G硬盘
【 OB or 其他组件 】
1)版本:oceanbase-ce-4.2.1.4
2)安装方式:
yum install hostname findutils -y
yum install oceanbase-ce -y
Downloading Packages:
(1/4): oniguruma-6.9.9-1.oe2403.x86_64.rpm 593 kB/s | 164 kB 00:00
(2/4): jq-1.6-4.oe2403.x86_64.rpm 569 kB/s | 165 kB 00:00
(3/4): oceanbase-ce-libs-4.2.1.4-104000052024022918.oe2403.x86_64.rpm 1.0 MB/s | 158 kB 00:00
(4/4): oceanbase-ce-4.2.1.4-104000052024022918.oe2403.x86_64.rpm
3)安装路径
/home/admin/oceanbase
4)数据路劲
/var/lib/oceanbase
5)硬盘使用情况
[root@localhost oceanbase]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/openeuler-root 60G 20G 38G 35% /
devtmpfs 4.0M 0 4.0M 0% /dev
tmpfs 7.6G 0 7.6G 0% /dev/shm
tmpfs 4.0M 0 4.0M 0% /sys/fs/cgroup
tmpfs 3.1G 9.0M 3.1G 1% /run
tmpfs 7.6G 0 7.6G 0% /tmp
/dev/sda2 974M 175M 732M 20% /boot
/dev/mapper/openeuler-home 30G 2.0G 26G 8% /home
6)数据库目录大小
[root@localhost oceanbase]# du -sh *
2.1G data
14G redo
【 使用版本 】oceanbase-ce-4.2.1.4
【问题描述】清晰明确描述问题
系统启动后,通过systemctl status oceanbase启动
报如下信息
[root@localhost oceanbase]# systemctl start oceanbase
Job for oceanbase.service failed because the control process exited with error code.
See “systemctl status oceanbase.service” and “journalctl -xeu oceanbase.service” for details.
[root@localhost oceanbase]# journalctl -xeu oceanbase.service
░░
░░ The job identifier is 1273 and the job result is failed.
Oct 25 16:08:17 localhost.localdomain systemd[1]: oceanbase.service: Scheduled restart job, restart counter is at 1.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ Automatic restarting of the unit oceanbase.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Oct 25 16:08:17 localhost.localdomain systemd[1]: oceanbase.service: Found left-over process 3145 (obshell) in control group while starting unit. Ignoring.
Oct 25 16:08:17 localhost.localdomain systemd[1]: oceanbase.service: This usually indicates unclean termination of a previous run, or service implementatio>
Oct 25 16:08:17 localhost.localdomain systemd[1]: oceanbase.service: Found left-over process 3172 (obshell) in control group while starting unit. Ignoring.
Oct 25 16:08:17 localhost.localdomain systemd[1]: oceanbase.service: This usually indicates unclean termination of a previous run, or service implementatio>
Oct 25 16:08:17 localhost.localdomain systemd[1]: Starting oceanbase…
░░ Subject: A start job for unit oceanbase.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit oceanbase.service has begun execution.
░░
░░ The job identifier is 1368.
Oct 25 16:08:17 localhost.localdomain bash[3220]: oceanbase service started at 2024-10-25 16:08:17
Oct 25 16:08:18 localhost.localdomain bash[3220]: change etc owner to root
Oct 25 16:08:18 localhost.localdomain bash[3220]: daemon process with PID 3145 is running.
Oct 25 16:08:18 localhost.localdomain bash[3220]: The agent service is exist
Oct 25 16:08:18 localhost.localdomain bash[3220]: The observer is already bootstrap, please start it immediately
Oct 25 16:08:18 localhost.localdomain bash[3220]: the start observer trace id is 22886731484028867856
Oct 25 16:08:18 localhost.localdomain bash[3220]: the response state is READY
Oct 25 16:08:18 localhost.localdomain bash[3220]: wait 6s and the retry
进程
root@localhost oceanbase]# ps -aux|grep obs
root 3145 0.0 0.1 1340460 24416 ? Sl 16:07 0:00 /home/admin/oceanbase/bin/obshell daemon --ip 172.16.6.220 --port 2886
root 3172 0.4 0.2 1274116 32424 ? Sl 16:07 0:00 /home/admin/oceanbase/bin/obshell server --ip 172.16.6.220 --port 2886
root 4856 0.0 0.0 21964 2172 pts/0 S+ 16:08 0:00 grep --color=auto obs
状态(感觉一直在反复重启)
[root@localhost oceanbase]# systemctl status oceanbase
● oceanbase.service - oceanbase
Loaded: loaded (/etc/systemd/system/oceanbase.service; disabled; preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Fri 2024-10-25 16:12:08 CST; 8s ago
Process: 10323 ExecStart=/bin/bash /home/admin/oceanbase/profile/oceanbase-service.sh start (code=exited, status=1/FAILURE)
Tasks: 19 (limit: 98657)
Memory: 149.8M ()
CGroup: /system.slice/oceanbase.service
├─3145 /home/admin/oceanbase/bin/obshell daemon --ip 172.16.6.220 --port 2886
└─3172 /home/admin/oceanbase/bin/obshell server --ip 172.16.6.220 --port 2886
[root@localhost oceanbase]# systemctl status oceanbase
● oceanbase.service - oceanbase
Loaded: loaded (/etc/systemd/system/oceanbase.service; disabled; preset: disabled)
Active: activating (start) since Fri 2024-10-25 16:12:08 CST; 11s ago
Cntrl PID: 10871 (bash)
Tasks: 21 (limit: 98657)
Memory: 151.0M ()
CGroup: /system.slice/oceanbase.service
├─ 3145 /home/admin/oceanbase/bin/obshell daemon --ip 172.16.6.220 --port 2886
├─ 3172 /home/admin/oceanbase/bin/obshell server --ip 172.16.6.220 --port 2886
├─10871 /bin/bash /home/admin/oceanbase/profile/oceanbase-service.sh start
└─11411 sleep 6
Oct 25 16:12:18 localhost.localdomain systemd[1]: oceanbase.service: This usually indicates unclean termination of a previous run, or service implementatio>
Oct 25 16:12:18 localhost.localdomain systemd[1]: Starting oceanbase…
Oct 25 16:12:18 localhost.localdomain bash[10871]: oceanbase service started at 2024-10-25 16:12:18
Oct 25 16:12:19 localhost.localdomain bash[10871]: change etc owner to root
Oct 25 16:12:19 localhost.localdomain bash[10871]: daemon process with PID 3145 is running.
Oct 25 16:12:19 localhost.localdomain bash[10871]: The agent service is exist
Oct 25 16:12:19 localhost.localdomain bash[10871]: The observer is already bootstrap, please start it immediately
Oct 25 16:12:19 localhost.localdomain bash[10871]: the start observer trace id is 22886731484028867870
Oct 25 16:12:19 localhost.localdomain bash[10871]: the response state is READY
Oct 25 16:12:19 localhost.localdomain bash[10871]: wait 6s and the retry
【复现路径】问题出现前后相关操作
反复操作systemctl start/stop oceanbase
kill /home/admin/oceanbase/bin/obshell daemon
kill /home/admin/oceanbase/bin/obshell server
【附件及日志】推荐使用OceanBase敏捷诊断工具obdiag收集诊断信息,详情参见链接(右键跳转查看):
【备注】基于 LLM 和开源文档 RAG 的论坛小助手已开放测试,在发帖时输入 [@论坛小助手] 即可召唤小助手,欢迎试用!