tikv缩容一直pending状态

为提高效率,请提供以下信息,问题描述清晰能够更快得到解决:
【 TiDB 使用环境】
【概述】场景+问题概述
【背景】做过哪些操作
【现象】业务和数据库现象
【业务影响】
【TiDB 版本】
【附件】

  1. TiUP Cluster Display 信息

  2. TiUP Cluster Edit Config 信息

  3. 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 文件是空的

应该是磁盘空间问题,参考这个帖子https://asktug.com/t/topic/92821

如果是不重要的测试数据,可以试试加–force参数强制缩掉

1 个赞

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