Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: tiup更改部署目录
【TiDB Usage Environment】: Production
【TiDB Version】: 5.0-5.2.3
【Architecture Consultation】:
Question: How to change the deployment directory?
Existing cluster, expanding an instance with a new directory, such as tidb, pd, tikv, etc., how to configure it to the new directory?
Tiup configuration:
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
Want to change /opt/soft to /opt/dba
Directly edit-config:
New topology could not be saved: immutable field changed: global.DeployDir changed from ‘/opt/soft/tidb666/’ to ‘/opt/dba/tidb666/’