为提高效率,请提供以下信息,问题描述清晰能够更快得到解决:
【 TiDB 使用环境】
【概述】场景+问题概述
【背景】做过哪些操作
【现象】业务和数据库现象
【业务影响】
【TiDB 版本】
【附件】
- 相关日志 和 监控
-
TiUP Cluster Display 信息
-
TiUP Cluster Edit Config 信息
-
TiDB- Overview 监控
- 对应模块日志(包含问题前后1小时日志)
tikv 日志一直有这样的报错输出
[2021/09/19 04:59:41.036 +08:00] [WARN] [lib.rs:512] [“environment variable TZ
is missing, using /etc/localtime
“]
[2021/09/19 04:59:41.037 +08:00] [WARN] [server.rs:1095] [“check: kernel”] [err=“kernel parameters net.core.somaxconn got 4096, expect 32768”]
[2021/09/19 04:59:41.037 +08:00] [WARN] [server.rs:1095] [“check: kernel”] [err=“kernel parameters net.ipv4.tcp_syncookies got 1, expect 0”]
[2021/09/19 04:59:41.037 +08:00] [WARN] [server.rs:1095] [“check: kernel”] [err=“kernel parameters vm.swappiness got 10, expect 0”]
[2021/09/19 04:59:41.069 +08:00] [ERROR] [server.rs:866] [“failed to init io snooper”] [err_code=KV:Unknown] [err=”“IO snooper is not started due to not compiling with BCC””]
[2021/09/19 04:59:41.069 +08:00] [FATAL] [server.rs:362] [“panic_mark_file /tidb/deploy/data/tikv-27071/panic_mark_file exists, there must be something wrong with the db. Do not remove the panic_mark_file and force the TiKV node to restart. Please contact TiKV maintainers to investigate the issue. If needed, use scale in and scale out to replace the TiKV node. https://docs.pingcap.com/tidb/stable/scale-tidb-using-tiup”]
执行缩容一直处于pending状态,查看/tidb/deploy/data/tikv-27071/panic_mark_file 文件是空的