5.1.1 scale-out 添加tiflash不成功

为提高效率,请提供以下信息,问题描述清晰能够更快得到解决:
【 TiDB 使用环境】
支付场景

【概述】 支付场景 + 添加tiflash不成功
【背景】 tiup scale-out扩容tiflash

【现象】tiflash添加失败

【问题】 当前遇到的问题

【业务影响】 tiflash不可用

【 TiDB 版本】 5.1.1

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

mysql> select version();
±-------------------+
| version() |
±-------------------+
| 5.7.25-TiDB-v5.1.1 |
±-------------------+
1 row in set (0.01 sec)

(venv2.7) [root@dba-relay tidb]# tiup cluster scale-out tidb-pay scale-out.yaml
Starting component cluster: /root/.tiup/components/cluster/v1.5.6/tiup-cluster scale-out tidb-pay scale-out.yaml
Please confirm your topology:
Cluster type: tidb
Cluster name: tidb-pay
Cluster version: v5.0.3
Role Host Ports OS/Arch Directories


tiflash 10.1.13.37 9000/8123/3930/20170/20292/8234 linux/x86_64 /data0/tidb-pay/tiflash,/data0/tidb-pay-data/tiflash,/data1/tidb-pay-data/tiflash
tiflash 10.1.13.49 9000/8123/3930/20170/20292/8234 linux/x86_64 /data0/tidb-pay/tiflash,/data0/tidb-pay-data/tiflash,/data1/tidb-pay-data/tiflash
Attention:
1. If the topology is not what you expected, check your yaml file.
2. Please confirm there is no port/directory conflicts in same host.
Do you want to continue? [y/N]: (default=N) y

  • [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/tidb-pay/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/tidb-pay/ssh/id_rsa.pub


Cluster version: v5.0.3加粗示例,升级时显示的版本不一致,目标机器上的tifilash已经在运行了

tiup cluster display 显示的什么版本? tiup mirror show 镜像路径是什么


这里也不对


背景:这个集群,从5.0.3升级到5.1.1,现在在5.1.1添加tiflash还是5.0.3这个怎么解决?升级使用的是tiup upgrade

具体升级过程什么步骤?没有报错吗? select * from information_schema.cluster_info; 看下版本


升级没问题,升级之后再添加tiflash,升级之前没有tiflash,升级的时候重启prometheus失败,对这个有影响嘛,因为prometheus我们这边有进行特殊处理

tiup update cluster
```  upgrade前这步做了吗?

看下~/.tiup/storage/clusters/cluster/cluster-name/meta.yaml 里的版本号,文件修改时间是不是升级时间,如果不正确手动编辑修改为正确版本然后tiup display看看


看历史记录没有执行这个操作


文件不存在

cluster-name替换为你的集群名



开始grep错了,tiup update cluster 在升级之前做过


还是不对

~/.tiup/storage/clusters/cluster/集群名/meta.yaml 看下版本和文件修改时间


要手动修改嘛

手动修改


这里正常了,tiflash我重装一下?

可以试试

重新,好了

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