tianjun
(Ti D Ber N V2g Jw Kc)
2023 年10 月 31 日 08:53
1
【 TiDB 使用环境】
生产环境
【 TiDB 版本】
v7.1.0
【复现路径】做过哪些操作出现的问题
对系统进行重启。
【遇到的问题:问题现象及影响】
tidb,pd,kv无法启动,pd、kv的日志都存在一个“system time jump backward”的错误,查看了系统日志为
[2023/10/31 16:42:22.651 +08:00] [ERROR] [systimemon.go:38] [“system time jump backward”] [last=1698741767902844769] [error=“[PD:common:ErrIncorrectSystemTime]incorrect system time”]
[2023/10/31 16:42:22.651 +08:00] [ERROR] [server.go:556] [“system time jumps backward”] [error=“[PD:common:ErrIncorrectSystemTime]incorrect system time”]
【资源配置】进入到 TiDB Dashboard -集群信息 (Cluster Info) -主机(Hosts) 截图此页面
【附件:截图/日志/监控】
随缘天空
(Ti D Ber Ivw R7o Pj)
2023 年10 月 31 日 08:56
3
Jolyne
2023 年10 月 31 日 08:57
4
就从上面的错误看着是时间错误,用的啥系统,国产系统?看下时区和时间对不对
那你每台用date命令看下机器的当前时间是否一致,或者ntpq -p看下同步状态
修改CPU时间源参数logs - Linux system time temporally jumps - Unix & Linux Stack Exchange
clocksource= Override the default clocksource
Format: <string>
Override the default clocksource and use the clocksource
with the name specified.
Some clocksource names to choose from, depending on
the platform:
[all] jiffies (this is the base, fallback clocksource)
[ACPI] acpi_pm
...
[X86-64] hpet,tsc
cat /sys/devices/system/clocksource/clocksource*/available_clocksource