【 TiDB 使用环境】生产环境
【 TiDB 版本】4.0.2
【复现路径】停止tidb报错
【遇到的问题:问题现象及影响】
tiup cluster stop xxx -N xxxxxx
Stopping component tidb
Stopping instance XXXXX
Failed to execute operation: Failed to activate service ‘org.freedesktop.systemd1’: timed out
Failed to execute operation: Failed to activate service ‘org.freedesktop.systemd1’: timed out
Error: failed to stop tidb: failed to stop: XXXXXX tidb-4000.service, please check the instance’s log(/home/tidb/deploy/log) for more detail.: executor.ssh.execute_failed: Failed to execute command over SSH for ‘TIDB@XXXXX’ {ssh_stderr: Failed to execute operation: Failed to activate service ‘org.freedesktop.systemd1’: timed out , ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin /usr/bin/sudo -H bash -c “systemctl daemon-reload && systemctl stop tidb-4000.service”}, cause: Process exited with status 1
由于systemd服务超时,导致不可用。最终导致无法停止tidb服务。
如果不通过tiup在服务器安全关闭tidb,tikv,pd,(systemctl 不可用情况下)应该如何操作?
【资源配置】进入到 TiDB Dashboard -集群信息 (Cluster Info) -主机(Hosts) 截图此页面
【附件:截图/日志/监控】