【TiDB 版本】
5.0
【问题描述】
原来有3个TiKV的节点,现在各多装了块硬盘,想在原实例上进行扩容,扩容配置文件如下
tidb-scale-out.yml
tikv_servers:
- host: 192.168.1.229
port: 20161
status_port: 20181
deploy_dir: “/data/tikv-20161”
data_dir: “/data/tikv-20161”
log_dir: “/home/tidb/tidb-deploy/tikv-20161/log”
numa_node: “1” - host: 192.168.1.230
port: 20161
status_port: 20181
deploy_dir: “/data/tikv-20161”
data_dir: “/data/tikv-20161”
log_dir: “/home/tidb/tidb-deploy/tikv-20161/log”
numa_node: “1” - host: 192.168.1.231
port: 20161
status_port: 20181
deploy_dir: “/data/tikv-20161”
data_dir: “/data/tikv-20161”
log_dir: “/home/tidb/tidb-deploy/tikv-20161/log”
numa_node: “1”
运行:
tiup cluster scale-out tidb-test tidb-scale-out.yml
返回错误信息如下:
Found cluster newer version:
The latest version: v1.4.2
Local installed version: v1.4.1
Update current component: tiup update cluster
Update all components: tiup update --all
Starting component cluster
: /root/.tiup/components/cluster/v1.4.1/tiup-cluster scale-out tidb-test tidb-scale-out.yml
Error: Failed to parse topology file tidb-scale-out.yml (topology.parse_failed)
caused by: directory conflict for ‘/data/tikv-20161’ between ‘tikv_servers:192.168.1.229.data_dir’ and ‘tikv_servers:192.168.1.229.deploy_dir’
Please check the syntax of your topology file tidb-scale-out.yml and try again.
Error: run /root/.tiup/components/cluster/v1.4.1/tiup-cluster
(wd:/root/.tiup/data/SVsdMbH) failed: exit status 1
我想问下,这种操作方式是否支持?如果支持,是否我的扩容配置文件写的有问题?
引申一步的问题:如果我想把原来实例的数据迁移到另外一个硬盘的另外一个目录,应该怎么操作?
菜鸟问题,还望大佬们指点
若提问为性能优化、故障排查类问题,请下载脚本运行。终端输出的打印结果,请务必全选并复制粘贴上传。