为提高效率,请提供以下信息,问题描述清晰能够更快得到解决:
【TiDB 版本】
16:13:54 test> select tidb_version()\G
*************************** 1. row ***************************
tidb_version(): Release Version: v5.0.0
Edition: Community
Git Commit Hash: bdac0885cd11bdf571aad9353bfc24e13554b91c
Git Branch: heads/refs/tags/v5.0.0
UTC Build Time: 2021-04-06 16:36:29
GoVersion: go1.13
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
1 row in set (0.00 sec)
16:13:57 test>
【问题描述】
tidb环境测试pd扩缩容实验,能正常缩容,再次扩容的时候执行失败。
失败告警如下
[root@flinkslave2 test]# tiup update cluster
component cluster version v1.4.1 is already installed
Updated successfully!
[root@flinkslave2 test]# tiup cluster scale-out tidb-test scale-out.yaml
Starting component `cluster`: /root/.tiup/components/cluster/v1.4.1/tiup-cluster scale-out tidb-test scale-out.yaml
Error: Deploy directory overlaps to another instance (spec.deploy.dir_overlap)
The directory you specified in the topology file is:
Directory: monitor data directory /vdb/test/data/monitored-9600
Component: pd 10.228.131.85
It overlaps to another instance:
Other Directory: monitor log directory /vdb/test/data/monitored-9600/log
Other Component: pd 10.228.131.85
Please modify the topology file and try again.
Error: run `/root/.tiup/components/cluster/v1.4.1/tiup-cluster` (wd:/root/.tiup/data/SVISgBk) failed: exit status 1
[root@flinkslave2 test]#
[root@flinkslave2 test]# cat scale-out.yaml
pd_servers:
- host: 10.228.131.95
ssh_port: 22
client_port: 2379
peer_port: 2380
deploy_dir: /vdb/test/deploy/pd-2379
data_dir: /vdb/test/data/pd-2379
- host: 10.228.131.68
ssh_port: 22
client_port: 2379
peer_port: 2380
deploy_dir: /vdb/test/deploy/pd-2379
data_dir: /vdb/test/data/pd-2379
[root@flinkslave2 test]#
参考该文档:扩容tiflash报错 未解决问题。
tidb部署:
[root@flinkslave2 test]# tiup cluster display tidb-test
Starting component `cluster`: /root/.tiup/components/cluster/v1.4.1/tiup-cluster display tidb-test
Cluster type: tidb
Cluster name: tidb-test
Cluster version: v5.0.0
SSH type: builtin
Dashboard URL: http://10.228.131.85:2379/dashboard
ID Role Host Ports OS/Arch Status Data Dir Deploy Dir
-- ---- ---- ----- ------- ------ -------- ----------
10.228.131.68:9093 alertmanager 10.228.131.68 9093/9094 linux/x86_64 Up /vdb/test/data/alertmanager-9093 /vdb/test/deploy/alertmanager-9093
10.228.131.68:8300 cdc 10.228.131.68 8300 linux/x86_64 Up - /vdb/test/deploy/cdc-8300
10.228.131.85:8300 cdc 10.228.131.85 8300 linux/x86_64 Up - /vdb/test/deploy/cdc-8300
10.228.131.95:8300 cdc 10.228.131.95 8300 linux/x86_64 Up - /vdb/test/deploy/cdc-8300
10.228.131.68:3000 grafana 10.228.131.68 3000 linux/x86_64 Up - /vdb/test/deploy/grafana-3000
10.228.131.85:2379 pd 10.228.131.85 2379/2380 linux/x86_64 Up|L|UI /vdb/test/data/pd-2379 /vdb/test/deploy/pd-2379
10.228.131.68:9090 prometheus 10.228.131.68 9090 linux/x86_64 Up /vdb/test/data/prometheus-9090 /vdb/test/deploy/prometheus-9090
10.228.131.68:4001 tidb 10.228.131.68 4001/10081 linux/x86_64 Up - /vdb/test/deploy/tidb-4001
10.228.131.85:4001 tidb 10.228.131.85 4001/10081 linux/x86_64 Up - /vdb/test/deploy/tidb-4001
10.228.131.95:4001 tidb 10.228.131.95 4001/10081 linux/x86_64 Up - /vdb/test/deploy/tidb-4001
10.228.131.71:20160 tikv 10.228.131.71 20160/20180 linux/x86_64 Up /vdb/test/data/tikv-20160 /vdb/test/deploy/tikv-20160
10.228.131.72:20160 tikv 10.228.131.72 20160/20180 linux/x86_64 Up /vdb/test/data/tikv-20160 /vdb/test/deploy/tikv-20160
10.228.131.75:20160 tikv 10.228.131.75 20160/20180 linux/x86_64 Up /vdb/test/data/tikv-20160 /vdb/test/deploy/tikv-20160
Total nodes: 13
[root@flinkslave2 test
若提问为性能优化、故障排查类问题,请下载脚本运行。终端输出的打印结果,请务必全选并复制粘贴上传。