shanji
(Shanji)
2020 年10 月 29 日 02:51
1
扩容tikv节点,之前使用ansible部署集群的时候,tidb和pd复用了同一台服务器,deploy_dir都是/data/deploy,现在升级到tiup,扩容的时候就会提示拓扑结构中的目录有冲突,无法使用 scale-out命令扩容
具体错误如下:
Starting component cluster
: /root/.tiup/components/cluster/v1.2.0/tiup-cluster edit-config tidb-cluster
New topology could not be saved: Failed to parse topology file: directory conflict for ‘/data/deploy’ between ‘tidb_servers:10.36.1.36.deploy_dir’ and ‘pd_servers:10.36.1.36.deploy_dir’
这道题我不会
(Lizhengyang@PingCAP)
2020 年10 月 29 日 05:08
2
请问你是扩容 pd 节点还是 tikv 节点报目录冲突?看报错信息是你 edit-config 配置文件时写错路径了。
shanji
(Shanji)
2020 年10 月 29 日 06:01
3
Ricklee:
pd 节点还是
扩容tikv节点,之前使用ansible部署集群的时候,tidb和pd复用了同一台服务器,deploy_dir都是/data/deploy,现在升级到tiup,扩容的时候就会提示拓扑结构中的目录有冲突,无法使用 scale-out命令扩容
这道题我不会
(Lizhengyang@PingCAP)
2020 年10 月 29 日 06:26
4
原先在 depoly_dir 目录下 pd 和 tidb 正常还有一层子目录的,你可以通过下面方式调整下:
1.停止下集群
2.tiup cluster edit-config 修改 pd 和 tidb 的 deploy_dir 一直写到子目录,比如:
3.重新加载下集群:tiup cluster reload {cluster-name} --force
4.重启下集群
shanji
(Shanji)
2020 年10 月 29 日 06:35
5
我之前部署的没有子目录,配置和执行文件以及日志都混在一起了,现在看没有好办法剥离开了
这道题我不会
(Lizhengyang@PingCAP)
2020 年10 月 29 日 06:39
6
可以考虑先将这台 tidb server 节点缩容掉,让当前 depoly_dir 成为 pd 专用的路径,后面再将 tidb-server 扩容上,扩容时指定另外的 deploy_dir 路径。
shanji
(Shanji)
2020 年10 月 29 日 07:03
7
考虑过了,缩容会删除目录,现在目录都是共用的,会导致别的模块数据丢失
这道题我不会
(Lizhengyang@PingCAP)
2020 年10 月 29 日 08:48
8
1.方便把你当前的集群的拓扑文件发下吗?可以使用 tiup cluster edit-config {cluster-name}
2.扩容的配置文件也发出来看下,谢谢。
shanji
(Shanji)
2020 年10 月 29 日 12:14
9
当前拓扑
global:
user: tidb
ssh_port: 22
ssh_type: builtin
deploy_dir: /data/deploy
data_dir: data
os: linux
arch: amd64
monitored:
node_exporter_port: 9100
blackbox_exporter_port: 9115
deploy_dir: /data/deploy
data_dir: /data/deploy/data
log_dir: /data/deploy/log
tidb_servers:
host: 10.36.1.36
ssh_port: 22
port: 4000
status_port: 10080
deploy_dir: /data/deploy
log_dir: /data/deploy/log
arch: amd64
os: linux
host: 10.36.2.72
ssh_port: 22
port: 4000
status_port: 10080
deploy_dir: /data/deploy
log_dir: /data/deploy/log
arch: amd64
os: linux
tikv_servers:
host: 10.36.1.32
ssh_port: 22
port: 20160
status_port: 20180
deploy_dir: /data/deploy
data_dir: /data/deploy/data
log_dir: /data/deploy/log
arch: amd64
os: linux
host: 10.36.2.70
ssh_port: 22
port: 20160
status_port: 20180
deploy_dir: /data/deploy
data_dir: /data/deploy/data
log_dir: /data/deploy/log
arch: amd64
os: linux
host: 10.36.1.31
ssh_port: 22
port: 20160
status_port: 20180
deploy_dir: /data/deploy
data_dir: /data/deploy/data
log_dir: /data/deploy/log
arch: amd64
os: linux
tiflash_servers: []
pd_servers:
host: 10.36.1.36
ssh_port: 22
name: pd_tidb001
client_port: 2379
peer_port: 2380
deploy_dir: /data/deploy
data_dir: /data/deploy/data.pd
log_dir: /data/deploy/log
arch: amd64
os: linux
host: 10.36.2.72
ssh_port: 22
name: pd_tidb002
client_port: 2379
peer_port: 2380
deploy_dir: /data/deploy
data_dir: /data/deploy/data.pd
log_dir: /data/deploy/log
arch: amd64
os: linux
host: 10.36.1.37
ssh_port: 22
name: pd_tidb003
client_port: 2379
peer_port: 2380
deploy_dir: /data/deploy
data_dir: /data/deploy/data.pd
log_dir: /data/deploy/log
arch: amd64
os: linux
monitoring_servers:
host: 10.36.1.36
ssh_port: 22
port: 9090
deploy_dir: /data/deploy
data_dir: /data/deploy/prometheus2.0.0.data.metrics
log_dir: /data/deploy/log
storage_retention: 30d
arch: amd64
os: linux
grafana_servers:
host: 10.36.1.36
ssh_port: 22
port: 3000
deploy_dir: /data/deploy
arch: amd64
os: linux
这道题我不会
(Lizhengyang@PingCAP)
2020 年10 月 30 日 02:15
14
请问下升级后你是通过什么方式 imported:true 从配置文件中去掉的?