【 TiDB 使用环境`】生产
【 TiDB 版本】:5.0-5.2.3
【架构咨询】::
问题:如何更改部署目录?
已有集群,扩容一个新的目录的实例,tidb,pd,tikv等,如何配置成新的目录?
tiup的配置:
global:
user: tidb
ssh_port: 22
ssh_type: builtin
deploy_dir: /opt/soft/tidb666/
data_dir: data
os: linux
monitored:
node_exporter_port: 6661
blackbox_exporter_port: 6662
deploy_dir: /opt/soft/tidb37022/monitor-6661
data_dir: /opt/soft/tidb37022/monitor-6661/data/monitor-6661
log_dir: /opt/soft/tidb37022/monitor-6661/log
想把/opt/soft 改成 /opt/dba
直接edit-config:
New topology could not be saved: immutable field changed: global.DeployDir changed from ‘/opt/soft/tidb666/’ to ‘/opt/dba/tidb666/’