无法正常添加tiflash节点

为提高效率,请提供以下信息,问题描述清晰能够更快得到解决:

【TiDB 版本】
Cluster version: v5.0.0

【问题描述】
无法正常添加tiflash节点

步骤如下:

  • step1
# tiup ctl pd -u 172.16.12.167:2379 config set enable-placement-rules true
The component `ctl` version  is not installed; downloading from repository.
# tiup ctl:v5.0.0 pd -u 172.16.12.167:2379 config set enable-placement-rules true
The component `ctl` version v5.0.0 is not installed; downloading from repository.
download https://tiup-mirrors.pingcap.com/ctl-v5.0.0-linux-amd64.tar.gz 191.28 MiB / 191.28 MiB 100.00% 4.44 MiB p/s 
Starting component `ctl`: /root/.tiup/components/ctl/v5.0.0/ctl pd -u 172.16.12.167:2379 config set enable-placement-rules true
Success!
  • step2
# tiup cluster edit-config tidb-cluster
...
server_configs:
  pd:
    replication.enable-placement-rules: true 
  • step3
# tiup cluster  restart  tidb-cluster
  • step4
# tiup cluster scale-out tidb-cluster  scale-out.yaml 
Starting component `cluster`: /root/.tiup/components/cluster/v1.4.2/tiup-cluster scale-out tidb-cluster scale-out.yaml

Error: Deploy directory overlaps to another instance (spec.deploy.dir_overlap)

The directory you specified in the topology file is:
  Directory: data directory /home/tidb/tidb-data/pd-2379
  Component: pd 172.16.12.167

It overlaps to another instance:
  Other Directory: data directory /home/tidb/tidb-data
  Other Component: tikv 172.16.12.167

Please modify the topology file and try again.
Error: run `/root/.tiup/components/cluster/v1.4.2/tiup-cluster` (wd:/root/.tiup/data/SVr6JIW) failed: exit status 1

资料补充

scale-out.yaml

# cat scale-out.yaml
tiflash_servers:
  - host: 172.16.12.214

免密互信

# ssh 172.16.12.214 hostname
ti-flash.novalocal

更新

20210429 更新至v5.0.1 问题依然无法升级

# tiup cluster  display tidb-cluster 
Starting component `cluster`: /root/.tiup/components/cluster/v1.4.2/tiup-cluster display tidb-cluster
Cluster type:       tidb
Cluster name:       tidb-cluster
Cluster version:    v5.0.1
SSH type:           builtin
Dashboard URL:      http://172.16.12.167:2379/dashboard
ID                   Role          Host           Ports        OS/Arch       Status   Data Dir                                Deploy Dir
--                   ----          ----           -----        -------       ------   --------                                ----------
172.16.12.186:9093   alertmanager  172.16.12.186  9093/9094    linux/x86_64  Up       /home/tidb/tidb-data/alertmanager-9093  /home/tidb/tidb-deploy/alertmanager-9093
172.16.12.186:3000   grafana       172.16.12.186  3000         linux/x86_64  Up       -                                       /home/tidb/tidb-deploy/grafana-3000
172.16.12.167:2379   pd            172.16.12.167  2379/2380    linux/x86_64  Up|L|UI  /home/tidb/tidb-data/pd-2379            /home/tidb/tidb-deploy/pd-2379
172.16.12.186:9090   prometheus    172.16.12.186  9090         linux/x86_64  Up       /home/tidb/tidb-data/prometheus-9090    /home/tidb/tidb-deploy/prometheus-9090
172.16.12.186:4000   tidb          172.16.12.186  4000/10080   linux/x86_64  Up       -                                       /home/tidb/tidb-deploy/tidb-4000
172.16.12.166:20160  tikv          172.16.12.166  20160/20180  linux/x86_64  Up       /home/tidb/tidb-data/tikv-20160         /home/tidb/tidb-deploy/tikv-20160
172.16.12.167:20160  tikv          172.16.12.167  20160/20180  linux/x86_64  Up       /home/tidb/tidb-data                    /home/tidb/tidb-deploy
172.16.12.186:20160  tikv          172.16.12.186  20160/20180  linux/x86_64  Up       /home/tidb/tidb-data                    /home/tidb/tidb-deploy
Total nodes: 8



若提问为性能优化、故障排查类问题,请下载脚本运行。终端输出的打印结果,请务必全选并复制粘贴上传。

新加tiflash的部署目录没办法和/home/tidb/tidb-data在一起,可以参考一下yaml文件,修改路径再scale-out

tiflash_servers:

  • host: 172.16.4.206
    ssh_port: 22
    tcp_port: 7108
    http_port: 7109
    flash_service_port: 7110
    flash_proxy_port: 7111
    flash_proxy_status_port: 7112
    metrics_port: 7113
    deploy_dir: /home/szy/tidb5/tidb-deploy/tiflash-7108
    data_dir: /home/szy/tidb5/tidb-data/tiflash-7108
  • host: 172.16.4.215
    ssh_port: 22
    tcp_port: 7108
    http_port: 7109
    flash_service_port: 7110
    flash_proxy_port: 7111
    flash_proxy_status_port: 7112
    metrics_port: 7113
    deploy_dir: /home/szy/tidb5/tidb-deploy/tiflash-7108
    data_dir: /home/szy/tidb5/tidb-data/tiflash-7108
1 个赞

非常感谢,
根据提示应该是PD节点部署了PD以及TIKV 导致 部署的目录冲突,因此不能添加tiflash组件。
现在正在迁移目录

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