tidb3.0.16 其中一个tikv节点主机启动之后 tikv服务无法启动

tidb3.0.16 其中一个tikv节点主机启动之后 tikv服务无法启动,其他服务正常

TASK [wait until the TiKV port is up] ***********************************************************
ok: [tikv138]
ok: [tikv139]
ok: [tikv140]
ok: [tikv141]
fatal: [tikv142]: FAILED! => {“changed”: false, “elapsed”: 300, “msg”: “the TiKV port 20171 is not up”}

ERROR MESSAGE SUMMARY ***************************************************************************
[tikv142]: Ansible FAILED! => playbook: start.yml; TASK: wait until the TiKV port is up; message: {“changed”: false, “elapsed”: 300, “msg”: “the TiKV port 20171 is not up”}

Ask for help:
Contact us: support@pingcap.com
It seems that you encounter some problems. You can send an email to the above email address, attached with the tidb-ansible/inventory.ini and tidb-ansible/log/ansible.log files and the error message, or new issue on https://github.com/pingcap/tidb-ansible/issues. We’ll try our best to help you deploy a TiDB cluster. Thanks. :slight_smile:

对应的tikv日志发一下

tikv0915.log (3.5 MB)

谢谢

sync-log 看下这个参数是什么

这个文件下
/data/tikv/conf/tikv.toml
sync-log = false

sync-log = false 符合预期,因为断电重启 导致的。根据这个尝试恢复一下

好的 我尝试一下

» region 55140
{
“id”: 55140,
“start_key”: “”,
“end_key”: “7480000000000000FF175F728000000000FF0012D90000000000FA”,
“epoch”: {
“conf_ver”: 14,
“version”: 34
},
“peers”: [
{
“id”: 55141,
“store_id”: 1
},
{
“id”: 55143,
“store_id”: 6
},
{
“id”: 90221,
“store_id”: 4
}
],
“leader”: {
“id”: 55141,
“store_id”: 1
},
“written_bytes”: 790,
“read_bytes”: 504332,
“written_keys”: 13,
“read_keys”: 6709,
“approximate_size”: 119,
“approximate_keys”: 198304
}

»
请问 由以上信息是不是可以判断```
<region_id> 为55140
<store_id>为 1

tikv-ctl --db /path/to/tikv/db bad-regions 可以通过这个检查

[root@tidb133 bin]# ./tikv-ctl --db /path/to/tikv/db bad-regions
all regions are healthy

没有找到bad-regions

根据日志 region 55140

您好 我在
./tikv-ctl --db /path/to/tikv/db tombstone -p 10.54.156.137:2379 -r 55140
操作时报错
Debugger::set_region_tombstone: Not Found “No store ident key”

operator add remove-peer 55140 1 操作是成功的

你在哪个tikv执行的?

啊 tikv-ctl需要在tikv节点执行么
我是用的安装包下面的tikv-ctl 在tidb节点。。。

在对应的tikv上执行

非常感谢,问题已经顺利解决 tikv成功启动:grinning:

1 个赞

ok 可以尝试更新版本了

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。