为提高效率,请提供以下信息,问题描述清晰能够更快得到解决:
【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
若提问为性能优化、故障排查类问题,请下载脚本运行。终端输出的打印结果,请务必全选并复制粘贴上传。